V. The Electronics and Software
The electronics used for this prototype consisted of: An Arduino Uno, Arduino motor shield, 3 jumper wires, and a 360 degree motor.
Figure 13: Electronics Used for Prototype
Arduino code used for constant counterclockwise motion:
#include <Servo.h>
#define Servo_PWM 6
Servo myservo;
int pos= 0;
void setup() {
myservo.attach (6);
}
void loop()
{
myservo.writeMicroseconds (2500);
millis();
}
Welcome to the University Wiki Service! Please use your IID (yourEID@eid.utexas.edu) when prompted for your email address during login or click here to enter your EID. If you are experiencing any issues loading content on pages, please try these steps to clear your browser cache.