Running Trainer
This is a running trainer that uses the ADXL345 as the main sensor. The brain of this machine is controlled by an Arduino Leonardo. When you strap the ADXL345 to your leg and lift your leg 20 times, the cat on the computer screen will move forward one step. You win when the cat touches the red block.
Downloads
Supplies
Some Dupont wires
Corrugated plastic board
Arduino Leonardo (can't use Arduino UNO)
Breadboard
ADXL345
LED lights
Some resistors
Code
Remember to install the libraries
Downloads
Circuit and Program
ADXL345 VCC → Arduino 5V
ADXL345 GND → Arduino GND
ADXL345 SDA → Arduino SDA
ADXL345 SCL → Arduino SCL
Scratch
Pressing the right arrow key will move forward, and the cat on the computer screen will take a step forward. You win when the cat touches the red block!
https://scratch.mit.edu/projects/1060355402
Assembly Appearance
2 ,20*17.5 cm boards 1 ,17.5*14 cm boards 2 ,14*20 cm boards Cut a small hole in the 17.5*14cm board.(6*7) Then use a hot glue gun to stick them together.4 5*5cm Then use a hot glue gun to stick them together.(corrugated plastic board)