Hi:
I'm having trouble making the 16-channel servo driver with the TimerOne and TimerThree libraries.
Seems there is a conflict as the Adafruit Servo Driver library uses Wire.h, that uses interrupts too.
Is there any library or mod to the library to work with, Wire.h free ? maybe softi2c?
Thanks!
softi2c for 16-Channel 12-bit PWM/Servo Driver
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- JorgeRobles
- Posts: 4
- Joined: Sun Sep 14, 2014 4:58 am
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: softi2c for 16-Channel 12-bit PWM/Servo Driver
You should be able to modify the library to work with soft i2c. You'll probably need to do a bit of hacking in the constructor and begin functions to specify the pins. But the rest of the API is compatible with wire.
- JorgeRobles
- Posts: 4
- Joined: Sun Sep 14, 2014 4:58 am
Re: softi2c for 16-Channel 12-bit PWM/Servo Driver
Hi again.
Could you point me to the soft i2c library you mention? The ones I found are not compatible.
May any of your gurus take a look on this? I think would be a good addition to the Adafruit Library
Thanks!
Could you point me to the soft i2c library you mention? The ones I found are not compatible.
May any of your gurus take a look on this? I think would be a good addition to the Adafruit Library
Thanks!
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: softi2c for 16-Channel 12-bit PWM/Servo Driver
There are several libraries out there. This is the best one I know of: https://github.com/greiman/DigitalIO
- JorgeRobles
- Posts: 4
- Joined: Sun Sep 14, 2014 4:58 am
Re: softi2c for 16-Channel 12-bit PWM/Servo Driver
Thank you again!
It's embarrasing. I'm sorry I was not clear.
The real issue is that Adafruit library uses i2c through the wire.h library. I'm looking for a replacement for wire.h using software i2c (not using i2c standalone).
I tried SoftI2CMaster from http://todbot.com/blog/ and SoftTWI (https://github.com/BANNED/MMA7660 ... oftTWI.cpp)
with no luck (I'm a rather poor programming CPP)
But thanks anyways. Any idea is welcome.
It's embarrasing. I'm sorry I was not clear.
The real issue is that Adafruit library uses i2c through the wire.h library. I'm looking for a replacement for wire.h using software i2c (not using i2c standalone).
I tried SoftI2CMaster from http://todbot.com/blog/ and SoftTWI (https://github.com/BANNED/MMA7660 ... oftTWI.cpp)
with no luck (I'm a rather poor programming CPP)
But thanks anyways. Any idea is welcome.
Please be positive and constructive with your questions and comments.