Tuesday, December 8, 2009
Post date: Dec 08, 2009 4:35:27 PM
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.