2022-01-08 05:49 AM
Hello,
After a few weeks of searching en experimenting I am very lost of any solution for my idea. Which is connecting two VL53L3CX sensor to an ESP32 Lolin Lite.
I started a few months ago with a lot of interest in microcontrollers and via Arduino I went on to esp32, so my basic knowledge of programming is C++. Everything I read in or out of this community is in C. Which is hard for me to translate or even to use in mine code.
Connecting each sensor to a Twowire function did not work, even not when connecting the two sensor to one I2C bus via a pull-up resistor of 4.7K. I got one sensor working, the other is not. When I try to scan the second sensor, I am left empty handed. So somehow the second is not active. When I init the second sensor the program stops.
I include the code, the code was to big. I think it's not pleasure to read. it's a collection of a lot of experiments. Sorry for that. But still hoping someone can help me out what I can do more?
Solved! Go to Solution.
2022-01-09 05:04 AM
Got it working, pins SDA and SCL for twowire(1) were defined wrong, or not correctly wired to the sensor.
For those who have been trying to look with me with this, thank you for your effort!
2022-01-09 05:04 AM
Got it working, pins SDA and SCL for twowire(1) were defined wrong, or not correctly wired to the sensor.
For those who have been trying to look with me with this, thank you for your effort!