I want to connect an MPU6050 to a doit ESP32 devkit v1. I have hooket up theMPU as follows:
ESP32 MPU
GPIO22 ---> scl
GPIO21 ---> sda
3v3 ---> vcc
gnd ---> gnd
my code in the repl is very simple:
Code: Select all
from machine import I2C, Pin
i2c = I2C(scl=Pin(22), sda=Pin(21)
i2c.scan()
does anyone have an idea what is going wrong?
Regards,
dave.