

Servo8bit is a library for AVR microcontrollers that allows you to drive servo motors without the need for a 16-bit timer. Obviously, this is quite useful for smaller chips that only have 8-bit timers and it is specifically targeted at the ATtiny45 and ATtiny85 microcontrollers. The library offers 256 steps of resolution, and can drive up to five servos at one time. Servo control pulses can be generated between 512 and 2560 microseconds and if you don’t mind increasing the time between these pulses [Liya] says it would be possible to increase the 5-servo limit.
The library is quite easy to use, but in its current state it would take just a bit of work to port to another device. It’s been written for an 8 Mhz clock signal with PortB used to drive the motors. Using find-and-replace to change the PORTB keywords to use a DEFINE variable should be easy enough, but we don’t know how hard it would be to change the clock frequency.
We wonder if it’s possible to make this a slave device, perhaps implementing a 1-wire protocol?
Subscribe for weekly videos
Epic! (And useful…) ^^
I have always been looking for a good multi-servo driver chip. I have tried making my own (failed), getting a PICAXE 08M to do it (only support 2 servos) and even considered buing one of these “servo controller” chips that are just a 8 pin PIC programmed with some proprietary code on which I don’t want to depend.
When I mean making my own, I referred to programming some PIC to do it.
I have an open source driver for 32 servos, I just modified the code last week to compiler for 32/16/8 servos…
http://www.mculabs.com
Hi guys
does any of you guys have source code for servo motor interface with ATTiny2313 microcontroller?
please email me on deejay_cool20@hotmail.com
it is very urgent andd important for me. please help me out