Fattoresaimon / I2CEncoderV2.1

GNU General Public License v3.0
108 stars 24 forks source link

I2c scan problem using micropython #9

Open rudydevolder opened 5 years ago

rudydevolder commented 5 years ago

I am still figuring out what is happening. I got the encoder working on Arduino Uno 5v, and also on A CYPRESS PSOC processor where I am planning to use it. But trying a simple I2c.scan I can't discover the device on a micropython pyboard 3v. The strangest is though I put 2 I2c devices in series. The encoder and a pressure sensor. With exactly the same configuration and termination I tried on all 3 processors and having a different outcome. Scanning on micropython reveals only the pressure sensor on the bus, and on the PSoC I can discover only the encoder. When I connect only the encoder with termination I also can't discover on micropython. No idea what is going on here, anybody?

Fattoresaimon commented 5 years ago

Hello, This type of i2c scanning program doesn't work well with the I2C Encoder V2. It is written in the datasheet, chapter Issue. Try to communicate directly instead!

Simone