In Computing, this week, we have been creating a pedometer. Pedometers are devices that measure the steps you walk. They have a device or arm inside that moves up and down with your hip motion. Each time you walk, your body tilts to one side, and you swing a leg moving forward. Your body then shifts the other way, and you swing your other leg forward as well.
Every tilt of your hips coupled with a shift of your legs counts as a step.
In our first lesson, our code did not go to plan. We had to use decomposition to help debug our code. So, in our next lesson, we used logical thinking to help create a different code. Thankfully, this one worked! Being a happy and healthy school, we put our pedometers to the test – some groups got up to 500 steps!!
Help at home: Why not have a go at creating a program on Makecode?