- Arduino Uno
- Robot Kit
- AA+ batteries
- So this actually took me awhile because I had to actually screw things together and "build" the robot.
- After that I Added the external Arduino Uno that doesn't come with the kit and put in batteries so it could run without the wire...however the batteries were dead and I am flat broke so I had to keep the wire in.
#include <Servo.h>
Servo servoLeft;
Servo servoRight;
void setup() {
tone(4, 3000, 1000);
delay(1000);
servoLeft.attach(13);
servoRight(12);
servoLeft.writeMicroseconds(1700);
servoRight.writeMicroseconds(1300);
}
Reflection
I really enjoyed building this. All it did was go in a circle and even so I was very happy that it worked and that I had programmed and built it right. It did exactly what I wanted it too... I only wish I had more time to play around with it. My robots name was ROBOcop
No comments:
Post a Comment