In computing this week, we have been developing a pedometer. Pedometers are devices that track the number of steps you take. They contain an internal mechanism or arm that moves up and down in response to the motion of your hips. With each step, your body tilts to one side and your leg swings forward. As your body shifts the other way, your other leg moves forward as well. Each tilt of your hips, along with the forward swing of your legs, is counted as a step.
In our first lesson, we developed our code – the children needed to fix a few problems with their initial algorithms. We had to use decomposition to help us debug it. Then, we downloaded our pedometer code to our micro:bits and checked to see if they worked. We had do some trial and errors and tweak the sensitivity of our pedometers.
We then put our pedometers to the test outside.