How to selectArduino

TMF8701 TOF Sensor with an ESP32-CAM board

userHead Mark.Petereit 2023-01-24 05:15:35 765 Views1 Replies

I'm trying to use a TMF8701 TOF sensor with an ESP32-CAM board. The camera uses the default I2C pins.

How would I modify the example Arduino sketch to use alternate pins for a second I2C channel? (SDA = Pin 33, SCL = Pin 32)


2023-02-20 14:19:29


As the connection use Wire.h, you can enable the second I2C by this way.

However, you can connect these two sensors on the same I2C port, they will work together as they have different I2C addresses.

Hope it can help.


userHeadPic NeloKin