softi2c for 16-Channel 12-bit PWM/Servo Driver

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
JorgeRobles
 
Posts: 4
Joined: Sun Sep 14, 2014 4:58 am

softi2c for 16-Channel 12-bit PWM/Servo Driver

Post by JorgeRobles »

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!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: softi2c for 16-Channel 12-bit PWM/Servo Driver

Post by adafruit_support_bill »

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.

User avatar
JorgeRobles
 
Posts: 4
Joined: Sun Sep 14, 2014 4:58 am

Re: softi2c for 16-Channel 12-bit PWM/Servo Driver

Post by JorgeRobles »

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!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: softi2c for 16-Channel 12-bit PWM/Servo Driver

Post by adafruit_support_bill »

There are several libraries out there. This is the best one I know of: https://github.com/greiman/DigitalIO

User avatar
JorgeRobles
 
Posts: 4
Joined: Sun Sep 14, 2014 4:58 am

Re: softi2c for 16-Channel 12-bit PWM/Servo Driver

Post by JorgeRobles »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”