ESP32 + LP55231 IC2 gremlins

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

ESP32 + LP55231 IC2 gremlins

Postby enitalp » Fri Mar 24, 2017 3:44 pm

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 ?
Attachments
led.PNG
i2C with LP55231
led.PNG (51.85 KiB) Viewed 5111 times

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: ESP32 + LP55231 IC2 gremlins

Postby kolban » Fri Mar 24, 2017 5:30 pm

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?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

Re: ESP32 + LP55231 IC2 gremlins

Postby enitalp » Fri Mar 24, 2017 9:44 pm

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

Who is online

Users browsing this forum: Bing [Bot], Jblight32, mikl604 and 126 guests