// SPEED FREAK EYE // This version of the software behaves like the eyes of // a Speed Freak - darting about quickly, unable to remain // focused on one thing for more than an instant // Derived from // Sweep // by BARRAGAN #include //include the servo libary Servo myservo; // create servo object to control a servo int pos = 0; // variable to store the servo position int delay1 = 1000; void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } void loop() { pos=random(65,115); // ramdomly set the servo arm postion between 65 & 115 degrees delay1=random(50, 500); // randomly set delay between servo movement myservo.write(pos); // tell servo to go to position specified by variable Œposı value delay(delay1); // waits randomly between 50ms and 500 ms between servo movements }