Slouch-Alert Vest
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
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
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
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
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.