Solar Arduino Snake
![Photo-0040.jpg](/proxy/?url=https://content.instructables.com/FER/5441/I916EVX2/FER5441I916EVX2.jpg&filename=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](/proxy/?url=https://content.instructables.com/FY0/WL66/I916EW39/FY0WL66I916EW39.jpg&filename=Photo-0051.jpg)
![Photo-0062.jpg](/proxy/?url=https://content.instructables.com/F39/180X/I916EW3O/F39180XI916EW3O.jpg&filename=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](/proxy/?url=https://content.instructables.com/F6R/KZY6/I916EX9P/F6RKZY6I916EX9P.jpg&filename=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](/proxy/?url=https://content.instructables.com/FD4/2HVT/I916EXU9/FD42HVTI916EXU9.jpg&filename=Photo-0065.jpg)
![Photo-0043.jpg](/proxy/?url=https://content.instructables.com/F6M/QYCP/I916EXUN/F6MQYCPI916EXUN.jpg&filename=Photo-0043.jpg)
![Photo-0040.jpg](/proxy/?url=https://content.instructables.com/FQ5/WWZH/I916EXUO/FQ5WWZHI916EXUO.jpg&filename=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](/proxy/?url=https://content.instructables.com/FC3/Z1US/I916EY63/FC3Z1USI916EY63.jpg&filename=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](/proxy/?url=https://content.instructables.com/FQZ/5KNZ/I916F6NZ/FQZ5KNZI916F6NZ.jpg&filename=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](/proxy/?url=https://content.instructables.com/FW3/GLIN/I916EZSY/FW3GLINI916EZSY.jpg&filename=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](/proxy/?url=https://content.instructables.com/F51/E8B7/I916F6S9/F51E8B7I916F6S9.jpg&filename=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