Introduction: The Waving Hand Project

This is a fun and simple project that makes everyone feel good for being noticed.This project is simply a blown up glove that waves at you as you walk by.

Step 1: Materials

To start off you are going to need

1 Popsicle Stick

2.Male Male wire (at least 10 to be safe)


4.Bread Board

5.Tape(any kind works as long as its strong)

6.Latex Glove

7.Servo Motor

8.Distance Sensor

9.Plastic attachments for servo motor

Step 2: Arduino/Servo Motor

The very first task is to set up your wiring on your Arduino.If you look at your servo motor you can see that is already has wires attached to it with little holes so that you can attach more wires to it,if I had to guess it would be for you to be able to hook it up to something.So thats exactly what we are going to be doing,first get the Red and a Black wire connect them to the bread board (red on the positive side black on the negative side).Look at the Red wire and connected to your servo motor now and get a separate Red wire which you should have(it doesn't technically need to be Red to work its just easier for you so that you aren't confused)and plug it into the little hole that alines with the red wire on the Servo Motor.Do that with the remaining Yellow and Brown/Black wires.Once you have done that you need to connect the Red wire to your Arduino,place the wire in Pin # 2 ,place your yellow wire in positive side on the bread board,and place black on GND(ground).Now that you have everything wired correctly get your servo motor attachment and put it on.

Step 3: Distance Sensor

Wiring the distance sensor is a little different than wiring the Servo Motor.The first step is to get out 3 (red,black and yellow)wires and obviously the sensor itself.Now put the Distance Sensor down on any place in the middle of the bread board.Once you have down that hook up the wires.Black goes to the Negative side,Red goes to Pin Number 4 and Yellow goes to the Positive side.( Sorry I don't have a picture of the Distance Sensor)

Step 4: Coding

Now it's time to code.The coding is fairly complicated for beginners(which includes myself) so I didn't want to make this project to difficult for some people wanting to make a glove wave without using their body.The code is placed below.

// Include the Servo library
#include // Declare the Servo pin int servoPin = 3; // Create a servo object Servo Servo1;

const int trigPin = 2; const int echoPin = 4; void setup() { // We need to attach the servo to the used pin number Servo1.attach(servoPin); Serial.begin(9600); } void loop(){ // establish variables for duration of the ping, // and the distance result in inches and centimeters: long duration, inches, cm;

// The sensor is triggered by a HIGH pulse of 10 or more microseconds. // Give a short LOW pulse beforehand to ensure a clean HIGH pulse: pinMode(trigPin, OUTPUT); digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW);

// Read the signal from the sensor: a HIGH pulse whose // duration is the time (in microseconds) from the sending // of the ping to the reception of its echo off of an object. pinMode(echoPin, INPUT); duration = pulseIn(echoPin, HIGH);

// convert the time into a distance inches = microsecondsToInches(duration); cm = microsecondsToCentimeters(duration); Serial.print(inches); Serial.print("in, "); Serial.print(cm); Serial.print("cm"); Serial.println();

if(cm<15) { // Make servo go to 0 degrees Servo1.write(0); delay(1000); // Make servo go to 90 degrees Servo1.write(180 ); delay(1000); // Make servo go to 180 degrees Servo1.write(180); delay(1000); }

delay(100); }

long microsecondsToInches(long microseconds) { // According to Parallax's datasheet for the PING))), there are // 73.746 microseconds per inch (i.e. sound travels at 1130 feet per // second). This gives the distance travelled by the ping, outbound // and return, so we divide by 2 to get the distance of the obstacle. // See: return microseconds / 74 / 2; }

long microsecondsToCentimeters(long microseconds) { // The speed of sound is 340 m/s or 29 microseconds per centimeter. // The ping travels out and back, so to find the distance of the // object we take half of the distance travelled. return microseconds / 29 / 2;


Step 5: Now the Easy Part

Get your glove and blow it up with air,then tie it off.Get out your tape and you Popsicle stick,grab the now blown up glove and tape it to one end of the popsicle stick.After you have done that tape it to the attachment on you servo motor.And you're done!!!

Step 6: Fritzing Diagram

This is only for clarification.