Username:     
Password:     
             

Contest 2013/2014
Contest 2011
Contest 2009
Contest 2008
EnergyMeter 1.1
 
EnergyMeter is a pedometer application that gives an indication of energy consumption while walking or stationary. It also provides a visualisation of the food equivalent of the total energy consumption, in this case in pints of beer.

Code size:23k Author:Frisnit
Source files included:yes Version:1.1
Use circleOS:yes (1.7) Creation date:2008-02-15 02:21:49
Hardware modification:no Modification date:2010-09-01 13:34:42
Based on the STM32 Primer:Primer2
   
Downloads:2320 Views:30059
   
Vote:
Average ratings:2.9/5 (981 rates)

Download:    EnergyMeter-1.1.zip (41 KB)

Description:

Revision 1.1 by Raisonance :

Project source(s) were modified to ensure compatability with Primer2. The archive is updated with a Ride project adapted to Primer2. 
(Searches a free entry in the handler list, before adding a new one).

Features :

EnergyMeter is a pedometer application that gives an indication of energy consumption while walking or stationary.

The application uses the shock counter of the CircleOS MEMS handler to calculate the number of steps taken in a 10 second period. From this and the stride length the walking speed can be calculated. Using the data in [1] the metabolic equivalent rate (MET)* value for the activity can be calculated. From the MET value and the mass of the individual the energy consumption during the time period can be calculated using the equation:

e = 1.1622 * m * t * MET;

Where 'e' is the energy in Joules, 'm' is the individual's mass in kg, 't' is the time in seconds and MET is the MET value of the activity during this time.

From this the following data is presented on the screen of the STM32 Primer:

  i) The MET value of the current activity (green)
 ii) The power output in Watts (red)
iii) The total number of steps taken since the application was started (magenta)
 iv) The total energy consumed since the application was started in kJoules (yellow)
  v) The total energy in iv) displayed as the equivalent number of pints of beer

The idea behind EnergyMeter is to enable the relative energy required for various activities to be easily compared. It also allows this energy consumption to be related to the equivalent amount of food or drink (in this case pints of beer). It is hoped that this will allow people to more easily visualise their energy intake compared to their energy output.


Notes:

Currently the individual's stride length and mass are hard-coded to 0.5m and 69kg.
If the STM32 Primer is not shocked within 25 seconds then the backlight is turned off to conserve battery power.


*A MET value of 1 is the basal metabolic rate (the rate whilst idle) and this increases with the vigour of the activity. See [1] for a full list of activities and their MET values.

[1] Ainsworth et al, "Compendium of Physical Activities: an update of activity codes and MET intensities", Medicine & Science in Sports & Exercise 2000;9:S498-S516 (http://personal.uncc.edu/jtlightf/classmats/assessment/ainsworth_MSSE_32_2000.pdf)
[2] http://www.nutracheck.co.uk/calories/calories_in_alcohol/calories_in_beer.html