Intro

For JavaOne I thought it would be fun to keep track of the number steps each person had taken daily. This application turned out to be fun to play with on the show floor, and the hardware was very simple to build.

Hardware

I built a very simple belt loop for the JCreate, using Velcro.



Software

The software was really simple to write. The basic idea is to sample the accelerometer until there is an event that looks like a step and then increment a counter for the number of steps taken. The count and the mote id are then sent in a message to the client receiver application. The next little improvement that I think would be good, would be to store the number of steps in the flash. By storing the count in flash, the user could turn the mote on and off, or change the batteries without losing the number of steps that they have taken.

Here is the code if you want to take a look.



##Intro
For JavaOne I thought it would be fun to keep track of the number steps each person had taken daily. This application turned out to be fun to play with on the show floor, and the hardware was very simple to build.
##Hardware
I built a very simple belt loop for the JCreate, using Velcro.

!{300,}[BeltLoop][[JCreateBeltLoop]]
<br clear="all"/>
!{300,}[on_belt][[JCreateOnBelt]]
<br clear="all"/>
##Software
The software was really simple to write. The basic idea is to sample the accelerometer until there is an event that looks like a step and then increment a counter for the number of steps taken. The count and the mote id are then sent in a message to the client receiver application. The next little improvement that I think would be good, would be to store the number of steps in the flash. By storing the count in flash, the user could turn the mote on and off, or change the batteries without losing the number of steps that they have taken.

@[Here][[MotePedometer.java]] is the code if you want to take a look.