Introduction: Solar Arduino Snake

Maker:Somshekar

Materials:

paper cup

Thin sticks

Pullies

Medium size gear belt

Gear

Solar panel

Arduino

Jumper wires

Servo motor

Tolls:

Cutter

Hot glue gun

Step 1: Take Paper Cups

Take 13 paper cups and make two holes on both sides of the cups.Make holes on bottom of the cups

Step 2: Take Thin Sticks

Take 13 thin sticks , 5 pullies , 2 gears and fix them to the sticks. Take gear belt and insert in the cup .Now take 1 gear stick and fix it in the first hole of the cup

Step 3: Fixing All Cups

Now take all the cups ,pullies,thin sticks.take cup and fix it to the first cup.Use sticks to fix the cups ,in between add pullies ,like one pullie stick and normal stick like this divide them in 5 set ,just remember sticks should inside the gear belt.

Step 4: Sticking the Servo Motor

Take one gear and glue it on the servo motor .Now take big servo motor and fix it in the last cup and fix the belt properly to the servo motor

Step 5: Connecting the Arduino

Now take the arduino and three jumper wires . connect three jumper wires in servo motor,now connect wires in 9,ground and 5v in the arduino.

(you can see yellow,red and purple color wires in servo motor.Connect now connect the wires to arduino using jumper wires,connect yellow to 9,red to 5vand purple to ground)

Step 6: Programing the Ardvino

// Sweep
// by BARRAGAN

// This example code is in the public domain.

#include

Servo myservo; // create servo object to control a servo

// a maximum of eight servo objects can be created

int pos = 0; // variable to store the servo position

void setup()

{

myservo.attach(9); // attaches the servo on pin 9 to the servo object

}

void loop()

{

for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees

{ // in steps of 1 degree

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(10); // waits 15ms for the servo to reach the position

}

for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees

{

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(10); // waits 15ms for the servo to reach the position

}

}

Step 7: Solar Panel(brown Dog Solar Panel)

Take solar panel and connect the arduino by using arduino cable. Take the project out side were the sun light is more