Tuesday, December 8, 2009

posted Dec 8, 2009, 8:35 AM by Unknown user   [ updated Dec 8, 2009, 9:15 AM ]
code:       delay(1000);                       // waits 1s for the servo to reach the position

corrected code;     delay(15);                       // waits 15ms for the servo to reach the position

We shortened the delay so that the mouse would have no time to escape when the sensor is set off.

Also, we are starting to add a photocell sensor to accompany the tilt sensor. We are learning how to use both of them in the same circuit. We're not sure how to write the code yet, but we will by the end of the week.