Dan Wright
Published © GPL3+

Boxing Stretchy Training Device

For making sure you have good technique even when your coach isn't around.

EasyWork in progress46
Boxing Stretchy Training Device

Things used in this project

Hardware components

Spark Core
Particle Spark Core
×1
Corporate Swag 5v USB battery
×1
Instacart reusable shopping bag handles.
Repurposed to be used as mounting straps
×1
Stretch sensors (Adafruit)
http://www.adafruit.com/products/519
×1

Story

Read more

Code

Basic sketch.

C/C++
Simple simple stuff!

This should also work with an Arduino if you prefer. Will become way more complicated when I start using accelerrometers
int led = D0;
int buzzer = D1;
int rubberband = A0; // 
int stretchval;

void setup() {
    pinMode(led, OUTPUT);
    pinMode(buzzer, OUTPUT);
    pinMode(rubberband, INPUT);
    Serial.begin(9600);

}

void loop() {
    stretchval = analogRead(rubberband);
    delay(1);               
    Serial.println(stretchval);
    
    if (stretchval > 1400) {
        digitalWrite(buzzer, HIGH);
        digitalWrite(led, HIGH);    // Turn OFF the LED pins
        delay(100);
        digitalWrite(buzzer, LOW);
        digitalWrite(led, LOW);
    }

}

Credits

Dan Wright

Dan Wright

2 projects • 2 followers
DAN IS PROGRAMMER MAN OR SOMETHING WHO GOES WRITES THE CODE ON COMPUTER
Contact

Comments