Here is a quick video showing it working: http://youtu.be/tSD9hpXyfDY
After the sweep is completed how do we drive the servo back to the maxLuxPosition using the analog feedback function to make sure it actually gets there.
I tried adding the following code but it would drive the servo to the maxLuxPosition with every 5 degree step. I tried it outside the for loop and nothing happened.
Code: Select all
Seek(myservo, 0, maxLuxPosition);
Thanks for your help again Bill, I wouldn't be this far along if it wasn't for your help.