Page 1 of 1

ESP32 + LP55231 IC2 gremlins

Posted: Fri Mar 24, 2017 3:44 pm
by enitalp
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 ?

Re: ESP32 + LP55231 IC2 gremlins

Posted: Fri Mar 24, 2017 5:30 pm
by kolban
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?

Re: ESP32 + LP55231 IC2 gremlins

Posted: Fri Mar 24, 2017 9:44 pm
by enitalp
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