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();
}