New library for the PCA9685 16-channel PWM driver module, feedback welcomed!


hello,

in past month, have forked , rewritten library control pca9685 16-channel pwm driver board. library can found , downloaded here: https://github.com/nachtravevl/pca9685-arduino

the module i'm referring can viewed/bought here: https://www.amazon.com/adafruit-16-channel-12-bit-servo-driver/dp/b00e4wexo4 (although there lot of different manufacturers make same module).

the reasoning behind rewriting library had fact many of existing ones poorly coded , did not handle entire functionality of chip.

for example, popular adafruit library (available here), absolutely must set pwm frequency in order library work - if not never sets auto-increment value correctly other functions work. sets prescaler value incorrectly, , when sets it uses commands unnecessary , makes delay of 3ms instead of 0.5ms stated in datasheet (for oscillator , running). additionally, not load distributing across entire phase width, causing large sink across channels @ start of phase cycle. forces use wire1 due/zero/etc. instead of allowing specify i2c line wish use.

other libraries seem have these various other issues, took upon myself fix things , make them lot happier. library have adapted , modified fixes lot of issues while exposing entire functionality chip provides, providing additional assistants (such servo control) , other goodies.

additionally, library supports softwarei2clibrary interface processors attiny85, don't have standardized i2c ports. long processor can run @ minimum of 4mhz run minimum required 100khz baud rate of module (in standard i2c mode), can set boards talk module.

feedback of course welcomed, requests additional functionality, etc.

on side note, have replaced 10v 1000uf capacitor pre-installed on board 10v 3300uf capacitor, seems have helped larger 2a servos i've been playing around with.



thanks looking!

hi nachtravevl

please add examples inside directory named "examples" inside github?
this help, , it's more compliant arduino library structure.

i suggest activate issues on github. track issues , receive feedback others.

giorgio   


Arduino Forum > Development > Other Software Development > New library for the PCA9685 16-channel PWM driver module, feedback welcomed!


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'