netlabtoolkit / VarSpeedServo

Arduino library for servos that extends the standard servo.h library with the ability to set speed, and wait for position to complete
GNU Lesser General Public License v2.1
291 stars 127 forks source link

Different ATmega speeds #37

Open mergdavy opened 4 years ago

mergdavy commented 4 years ago

I want to run my ATmega328p using the 8MHz internal oscillator rather than the 16MHz Xtal (to gain extra I/O). Does varspeedservo run independent of the chip's clock speed, or do I need to alter the varspeedservo code somewhere?

pvanallen commented 2 years ago

Sorry, but it would be too much work to update this library for all the different hardware (I'd be happy to turn this repository over to somewhat can put in the effort though). You might check out my new library VarSpeedPython which serves a similar purpose. Of course it is for Python platforms like CircuitPython and MicroPython which are supported on many different hardware platforms. VarSpeedPython supports timed transitions from one value to another with options for easing and the number of steps used in the transition. The move() and sequence() calls are designed to be called within an event loop, and do not block. Hope this helps!