This is the code to make a normal lightup shoes measure step count when you walk and play music when you reach some milestones. We hacked the sensors on a light-up shoe and attached it with a 7-segment display and a speaker. Now, walking is more fun than usual!
To run the code, just open ShoeHitSensor.ino in the Arduino IDE.