Notifications
Clear all

I2C ESP32 Arduino Question

6 Posts
5 Users
2 Reactions
1,090 Views
(@keith)
Member
Joined: 4 years ago
Posts: 10
Topic starter  

I have an ESP32 connected to an Arduino Pro Mini via I2C. The ESP32 is the master and the Arduino is a slave.

The ESP32 is set up to request information from the Arduino and everything works okay.

My question is: As the ESP32 is 3.3v and the Arduino 5v, should I have a voltage level shifter on one, or both, of the I2C lines?

Although everything works okay at the moment I don't want to be slowly damaging the ESP32 with too much voltage.


   
Quote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1136
 

@keith - there is a dronbot video on this sort of thing where an arduino 5v logic is connected to a rpi 3.3v logic, so similar considerations for your use case.  Have a search on the youtube and you will find it.


   
ReplyQuote
(@keith)
Member
Joined: 4 years ago
Posts: 10
Topic starter  

@byron - Well that was easy. I just watched the video and it would seem that my setup is fine as it is.

Thanks for pointing me in the right direction.


   
ReplyQuote
MadMisha
(@madmisha)
Member
Joined: 4 years ago
Posts: 340
 

Keep in mind that the documentation for ESP32 is a little hazy on if it can take 5V logic. Some people say it can and some say you shouldn't.


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 686
 

Logic level converter bi directional should work .


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1104
 
Posted by: @madmisha

Keep in mind that the documentation for ESP32 is a little hazy on if it can take 5V logic. Some people say it can and some say you shouldn't.

Yes, it's a common discussion on the ESP32 forum.

Posted by: @duce-robot

Logic level converter bi directional should work .

Agreed! It's the Data line in this situation that is the problem, as the ESP32 is the master in your configuration the clock signal is fine.  And the keyword in @duce-robot comment is "bidirectional", as the data needs to travel both ways.

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
Robert T. reacted
ReplyQuote