Hi
I'm using an esp32 at 40mhz with only one i2c device on the line, a led controller , LP55231.
Randomly the led stop displaying at all, or make some of the led with random color when they should be black. and 2 secs later without changing anything, all is perfect.
Attached a screen shot of my logic analyzer. all led are black when they should not. Every i2c is ACK but it's not the result i see.
This device is used on arduino or tinsy with no problem do you thing there is something particular with the esp32
Thanks ?
ESP32 + LP55231 IC2 gremlins
ESP32 + LP55231 IC2 gremlins
- Attachments
-
- i2C with LP55231
- led.PNG (51.85 KiB) Viewed 5110 times
Re: ESP32 + LP55231 IC2 gremlins
What I2C clock frequency are you using?
Looking at the data sheet, it seems that the max is 400KHz ... but that is the max. Can we try at a lower clock frequency?
Looking at the data sheet, it seems that the max is 400KHz ... but that is the max. Can we try at a lower clock frequency?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: ESP32 + LP55231 IC2 gremlins
Using 100khz
When pushing regularly
// Set enable bit
WriteReg(REG_CNTRL1, 0x40 );
// enable internal clock & charge pump & write auto increment
WriteReg(REG_MISC, 0x53);
It seem to fix it. it was random before, but with that for the instant i don't have it. I can't find any people having the same problem on arduino
When pushing regularly
// Set enable bit
WriteReg(REG_CNTRL1, 0x40 );
// enable internal clock & charge pump & write auto increment
WriteReg(REG_MISC, 0x53);
It seem to fix it. it was random before, but with that for the instant i don't have it. I can't find any people having the same problem on arduino
Who is online
Users browsing this forum: Bing [Bot] and 105 guests