Would love to see this. Not just for using servos, but also electronic speed controllers.
There are two corresponding Arduino functions involved.:
Also, ‘servo’ above must be written as a variable of type ‘Servo’.
I’m having trouble though writing a new object 'servowrite' expression. I'm just a novice and having trouble dealing with those complications.
Is there anything similar done in lisp.ino that I might look to for insight? (I can't see anything. Analogwrite is much more straightforward for example).
Any help appreciated.
edit - I see there may be even more to it than I originally thought. - http://playground.arduino.cc/Code/MegaServo
Also, an alternative approach might be to somehow convert the PWM of analogwrite to the needed PPM of servowrite using a hardware based solution. If anyone has any experience of this, please advise. Thanks again.