Hello guys,
I have a problem with I2C communication between ATMega328p - PU, IR sensor VL53L0X for distance measuring and Nextion 3.5'' touch screen. ATMega is powered with 5V and sensor with 2.8V, so I decided to use TCA9517 for logic level translation. I designed my own circuit and pcb. But unfortunately I don't get any response from sensor. From software I call sensor every 1 second. On oscilloscope I see that ATMega sends data to sensor on SCL and SDA lines but I don't receive any measurement from sensor. As soon as I connect sensor 2.8V voltage drops to 1.9V.. Touch screen is used for displaying measured data from sensor and to mute buzzer for 1 minute. Buzzer is turned on when specific distance is measured by sensor. and this part of circuit works fine, I only have problems with I2C. But when I pull out ATMega in insert it to original Arduino UNO board with external logic level shifter builded with BSS138 mosfet's and resistors. I'm not very expirienced with circuit designing and after spending many days trying to solve a problem I really don't have any more idea what could cause this problem. In attachment I send also my schematics and pcb.
Could someone be so kind and try to help me solve this problem, please ?
Regards,