Quote:
|
Originally Posted by doyler
How would i make the program loop somewhat faster
Also, what will the servo do when the program executes so i know i did it right
|
The first sound you heard was the servo moving to it's "0" position.
The servo will then take
1.4 minutes to move very slowly through a 60 degree turn before it quickly whips back to the "0" position and repeats.
You can speed this up by changing the delay we built in.
Code:
if (counter < 20) // about 1/3 second in the slow loop for one ~60/255 degree turn
Make it "counter < 2" and it'll take about
17ms to complete a cycle.