Solar Arduino Snake

by sam soma in Workshop > Solar

13616 Views, 6 Favorites, 0 Comments

Solar Arduino Snake

Photo-0040.jpg

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

Take Paper Cups

Photo-0051.jpg
Photo-0062.jpg

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

Take Thin Sticks

Photo-0064.jpg

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

Fixing All Cups

Photo-0065.jpg
Photo-0043.jpg
Photo-0040.jpg

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.

Sticking the Servo Motor

Photo-0031.jpg

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

Connecting the Arduino

R.jpg

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)

Programing the Ardvino

Photo-0039.jpg

// 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

}

}

Solar Panel(brown Dog Solar Panel)

Photo-0042.jpg

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