LCD 16x2 with Module I2C with MPU6050

Good morning, friends! Today I have a question for ask: Can I connect a LCD 16x2 with a I2C Module and a MPU6050 in a ESP32 at the same time? And if yes, can you explain me how?

I2C is a bus protocol which means that you can connect several devices to the same SDA and SCL pins and use the individual device addresses to communicate with them as and when required

Danger!

Most LCD are 5V. They cannot run at 3.3V, they need more voltage to get good contrast on the screen. The i²c module for the LCD probably has on-board pull-up resistors, and these will connect to 5V also. This means that, unless you can remove those pull-up resistors, the ESP pins will be exposed to 5V, which could theoretically damage them. One solution could be to use an i²c voltage level adaptor module.

Same problem with the MPU6050 module, unless you power that with only 3.3V

1 Like

Easy MOSFET level shifter for I2C bus. I use 2N7000 MOSFETs.

image

Easier to buy it from Aliexpress.

Easy enough.


Two "472" resistors to the left of the IC.

(That is a dreadful image, better find another one some day! :grin:)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.