Introduction: Get Up and Move!

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

Step 1: Materials

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)

Step 2: Get the Easy Part Out of the Way

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.)

Step 3: The Circuit

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

Step 4: Prototyping

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.

Step 5: 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

}

Step 6: Almost Done!

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.

Step 7: Attach the Clip

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

Step 8: Wear It!

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!