0
\$\begingroup\$

I am working on my own PCB with an ESPWROOM32. I an using one of the 2 I2C bus to communicate with 2 digital potentiometers AD5245BRJZ5-RL7, here there datasheets : datasheet_potentiometers, and one light sensor VEML6030.

At the beginning everything was working well but now I am not able to communicate (writing or reading) with either the light sensor or the digit pot. I do not have any problem on the software part because the code is working on a ESP32 devkit with the sensors on EVM boards but on the main PCB, it seems I have a i2c issue now.

I can still use the rest of the bus (UART, USB and the other I2C bus) but because I cannot read or write anything one the first one, i am wondering if I haven't burned it. I putted pull up resistors with 4.7kOhms resistors in serie with a 3.3V amp signal from a buck DC-DC converter but I didn't put any diode to protect the bus.

I'd like to know why and how it happened but I don't have a clue. I can tell you that I wired the veml6030 to +3V3 signal and digital pot to 5V and every analog and digital signal are from the PCB, no external device is connected.

Here are the schematics of the ESP32, the digital pot, the light sensor and buck converterenter image description hereenter image description here

enter image description here

enter image description here

enter image description here

Here are the schematics of the EVM board of the Light sensor, we cans ee the difference.enter image description here

\$\endgroup\$
12
  • \$\begingroup\$ Yes, provide the schematics. \$\endgroup\$ Commented Jan 9 at 16:16
  • \$\begingroup\$ I modified the topic so you can see the main schematics \$\endgroup\$ Commented Jan 9 at 16:30
  • 1
    \$\begingroup\$ ... and a better history. What changed? Did you do anything on the board? Did you re-upload the code between when it was working and when it wasn't? Do you have any version control, with the ability to roll back? Have you tried to isolate your issue, writing some code to only communicate with the problematic part? Have you replaced the parts you're having problems with? Sniffed the I2C bus to try to ID the problem? \$\endgroup\$ Commented Jan 9 at 16:32
  • \$\begingroup\$ the purpose of this project is to create an autonomous curtain that turns a motor according to light conditions \$\endgroup\$ Commented Jan 9 at 16:32
  • \$\begingroup\$ I tried to read only the value inside either the light sensor or the digit pot but I can't. I also tried small arduino code to write and read data on the digital pot but nothing happend, same for the light sensor. I haven't replaced any component on the pcb for now. What do you call a version control? I do have a proper code that read luminosity and read/write data in the digital pot according what I want. \$\endgroup\$ Commented Jan 9 at 16:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.