Greetings,
I need to create a sketch that can use the Servo Library and at the same time have a timer that will kick off another task. My first try at this was a disaster as I was trying to use the TimerOne library which, as i have come to find out, is used by the Servo library for its functioning. When i tried to use those 2 libraries together I got mutually exclusive behavior.
Is there another approach I can take here? Maybe use a different Timer like Timer2? Or maybe use a different Servo library?
i am using the Servo library to control a speed controller. The timing on the Servo library "writeMicroseconds" needs to be in a range of 1ms to 2ms and have to be very exact as does the delay between pulses (20ms). i was hoping to accomplish an asynchronous timer that would not get in the way of those timings.
What does the use of micros() or millis() have to do with servo timing. That is taken care of by the servo library. I guess I don't understand what you are trying to do.