i2c newb questions #482
Replies: 4 comments
-
Posted at 2014-05-04 by DrAzzy Did you remember to do the I2C setup()? Is it wired up correctly? If you aren't using a breakout board, you need to have the 10k pullups (these are included in I2C breakout boards). Check talking to it manually, with I2C.writeTo() - check the datasheet for the I2C address to use, and see if it reacts. Some devices may take on an alternate address. Check that too - the module may be trying the other address. Is the device known working? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-04 by FyberChris Thanks. I can confirm the driver works with a generic breakout, so obviously something went wrong on the other test hardware. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-06 by @gfwilliams So it's all sorted now? Were you using 1v62? I'd added some code that should have given a slightly more helpful error message in the case of I2C errors :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-13 by FyberChris Yeah, it works. I tested against 1v60 and 1v62. I am still trying to clean it up and fix the 401 USB.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-04 by FyberChris
Hi, I ported PCA9865 functions over. I am trying to access it on the STM32F4Discovery. I am getting timeouts on both B6,B7 and B8,B9 pins. On B6,B7 I get
INTERNAL ERROR: Timeout on I2C Write BUSY
INTERNAL ERROR: Timeout on I2C Write SB
INTERNAL ERROR: Timeout on I2C Write Transmit Mode 2
INTERNAL ERROR: Timeout on I2C Write Transmit
INTERNAL ERROR: Timeout on I2C Write Transmit
at line 5 col 48
this.i2c.writeTo(this.a, [PCA9685_MODE1, 0x0]);
on B8,B9
INTERNAL ERROR: Timeout on I2C Write Transmit Mode 2
INTERNAL ERROR: Timeout on I2C Write Transmit
INTERNAL ERROR: Timeout on I2C Write Transmit
at line 5 col 48
this.i2c.writeTo(this.a, [PCA9685_MODE1, 0x0]);
Any advice on debugging?
Beta Was this translation helpful? Give feedback.
All reactions