Running Trainer

by brandon shen0725 in Circuits > Arduino

51 Views, 2 Favorites, 0 Comments

Running Trainer

IMG_2527.jpeg

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

IMG_2569.jpeg
image.jpg

ADXL345 VCC → Arduino 5V

ADXL345 GND → Arduino GND

ADXL345 SDA → Arduino SDA

ADXL345 SCL → Arduino SCL

Scratch

螢幕擷取畫面 (287).png
螢幕擷取畫面 (288).png
螢幕擷取畫面 (289).png

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

image.jpg

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)

Finish

跑步訓練器