๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday October 14, 2019 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday October 11 will go out Tuesday October 15 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

Editing PWMServoDriver to include I2C timeouts
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Editing PWMServoDriver to include I2C timeouts

by jbeng on Fri May 24, 2019 3:56 pm

We are currently seeing lockups of a Mega2560 board, interfacing to the PCA9685 IC utilising PWMServoDriver library. I have narrowed the issue down to a lack of timeouts within the standard Wire library. The lack of timeouts are discussed here http://dsscircuits.com/index.php/articl ... er-library and the github repository for new library is here https://github.com/DSSCircuits/I2C-Master-Library. I have reduced clock speed and added stronger pullups on the bus which has reduced the problem but not stopped it.

The Adafruit_PWMServoDriver library has a fairly substantial set of code to change to enable timeouts. Has anyone else managed to get this working? It is currently beyond our abilities and who wants to reinvent the wheel?

Apologies if this has been posted before in another guise, I could not find an answer using the search function.

jbeng
 
Posts: 3
Joined: Sat Jun 30, 2018 6:43 pm

Please be positive and constructive with your questions and comments.