Slouch-Alert Vest

by TwirlingGoddess in Circuits > Arduino

294 Views, 0 Favorites, 0 Comments

Slouch-Alert Vest

IMG_1964.jpg
IMG_1925.JPG

I was inspired by this youtube tutorial,

https://www.youtube.com/watch?v=x0ARLDQyJco

but, in my experience, it was really difficult for me as a first time arduino user to see where exactly the pins should connect, so I will clarify the process below.

Supplies

IMG_1927.JPG
IMG_1928.JPG
source.gif
IMG_1921.jpg

I bought this Arduino Uno Super Starter Kit. It has everything we'll need for this build, and more. it's highly suggested for beginners. Elegoo Super Starter Kit

Before I started building I printed out this nifty tray to house my breadboard and arduino uno, using the Lulzbot Taz Mini, PolyMaker's Polylite 3mm PLA, and this 3D model https://www.thingiverse.com/thing:3932101 in a color that matched the scheme of my starter kit. *insert wink*

From the Starter Kit we'll be using:

1. UNO R3 Controller Board

2. 830 Tie-Points Breadboard

3. Tilt Ball Switch

4. 1-Resistor

5. 6-Breadboard Jumper Wires

6. Active Buzzer

7. 9V Battery with Snap-on Connector Clip

Assemble Hardware

IMG_1929.JPG
IMG_1930.JPG
IMG_1931.JPG
IMG_1932.JPG
IMG_1933.JPG
IMG_1934.JPG
IMG_1935.JPG
IMG_1936.JPG
IMG_1937.JPG
IMG_1938.JPG
IMG_1940.JPG
IMG_1941.jpg
IMG_1943.JPG
IMG_1942.JPG
IMG_1946.JPG
IMG_1947.JPG
IMG_1948.JPG

1. Power up Arduino (i did this first, but maybe it should be last)

2. Connect Arduino's ground to power the breadboard's ground

3. Connect 5V to where one leg of the Ball Switch will be powered

4. Connect other leg of Ball Switch to communicate with digital output #6

5. Add one leg of resistor in-line with the digital output leg of the Ball Switch

6. The other resistor leg is inserted 4 spaces away from its partner

7. Connect the estranged leg to the breadboard's ground

8. Place the active buzzer on the breadboard

9. Connect positive (+) leg of buzzer with the digital output #5

10. Connect the other leg directly to the breadboard's ground

Software Download and Programming

Screen Shot 2020-05-10 at 11.58.50 AM.png
Screen Shot 2020-05-10 at 11.59.24 AM.png
Screen Shot 2020-05-10 at 12.00.19 PM.png
Screen Shot 2020-05-10 at 12.00.31 PM.png
Screen Shot 2020-05-10 at 12.13.30 PM.png
Screen Shot 2020-05-10 at 12.13.39 PM.png
IMG_1951.jpg
IMG_1952.jpg

1. Download Arduino at https://www.arduino.cc/en/Main/Software

When you open it you's see the Arduino IDE that allows you to write your program

2. Insert this code

void setup() {

// put your setup code here, to run once:

pinMode(5, OUTPUT);

}

void loop() {

// put your main code here, to run repeatedly:

int note = 0;

int r = digitalRead(6);

if(r == LOW){

noTone(5);

} else {

tone(5, 2000);

}

}

3. Press the upload button in the top left of the screen and wait for the terminal window at the bottom to read "Done"

4. Your arduino should now have the code on it, and start buzzing if it's still laying flat on your desk.

5. Test the functionality

Make It Wearable

IMG_1960.JPG
IMG_1959.JPG
IMG_1953.JPG
IMG_1954.JPG
IMG_1955.JPG
IMG_1956.JPG
IMG_1957.JPG

1. Take your favorite vest, because you'll wear it more often

2. Find or create some sort a pouch mechanism that is close in size to the tray

3. Hot glue the top seam of the pouch to the top seam INSIDE of the vest

4. Plug in the 9V battery mechanism for external power

5. Insert the tray and battery into the pouch with the electronics facing the back of the pouch.

6. Begin your journey toward better posture.

Final Result