Get Up and Move!

by SarahSaharra in Circuits > Wearables

1095 Views, 8 Favorites, 0 Comments

Get Up and Move!

20170503_102633.jpg
20170503_092849.jpg

A wearable ouch that vibrates if you've been sitting down for too long.

Materials

20170430_214710.jpg
20170430_214325.jpg

Adafruit Gemma

Battery case and batteries

Photoresistor

Vibration motor

Resistor for photo sensor (brown orange black) 10K

resistor for vibration motor (red red brown) 220k

PN222 Transistor for vibration motor

1N4001 Diode for vibration motor

Cushion fabric to hold the circuit

Thread and a whole lot of solder

Fabric for pouch for battery case

Clip

JST connector to connect to the battery

Heat shrink tubing

Tears (not pictured)

Get the Easy Part Out of the Way

20170430_215038.jpg

The first thing you're gonna want to do is attach the 1N4001 diode to the vibrating motor. Just remember, the red wire should be attached to the cathode (the side with the stripe. There, I saved you a google.)

The Circuit

20170502_171242-1.jpg

I used a modified version of Becky Stern's Mindfulness bracelet from Adafruit's learn page and added a photoresistor and some different code.

Prototyping

20170430_232404.jpg

Now, I know we already soldered stuff, but that would have been attached anyway and it's easier to connect them this way. Also note: in this image you can see that there is a little sticky pull away strip on the back of the motor. Very useful.

The Code (dramatic Music)

This is the code to the universe. Just kidding , but it will tell the arduino what to do so..

const int motorPin = 0;

int pr= 1;

int dark=15;

int lvl=0;

void setup() {

pinMode(motorPin,OUTPUT); }

void loop() {

lvl = analogRead(pr);

if (lvl < dark){

digitalWrite(motorPin, HIGH);

delay(1000);

digitalWrite(motorPin,LOW);

delay(10000); } //you can edit these numbers (the're in milliseconds) to make the time different

//it's recommended to get up and move for about twenty minutes after forty minutes of sitting down

}

Almost Done!

20170503_094922-1.jpg

This is what the finished circuit should look like. Just sew the edges of the cushioned fabric to the pouch and sew the circuit down.

Attach the Clip

20170503_094939-1.jpg

Once you make sure that your circuit works, glue the clip to the battery pack.

Wear It!

20170503_102653.jpg
20170503_102633.jpg

I added a few little bits to make it interesting. If you know you're going to be on the computer a lot, just clip this on so you will be reminded to move every once in a while. Have fun!