Wearable activity monitor, based on a ARM Cortex M0 embedded processor