Logic level converter

Thread Starter

stoopkid

Joined Mar 3, 2011
146
I want to get my Raspberry Pi working with a DS1307 over I2C. The Pi is 3.3v and the 1307 is 5v. Will this circuit work for communicating between the two? I found it on this page. Is there anything else I will need to get it going? This tutorial says that it needs to be bi-directional, does this circuit give me that, or do I need to double up on everything to get both directions?

Thanks.
 

Thread Starter

stoopkid

Joined Mar 3, 2011
146
Ok, thank you. So everything in that circuit is all I need to connect the I2C pins of the RTC and Raspberry Pi?
 

panic mode

Joined Oct 10, 2011
1,774
yes, even page you got it from explains how it works. note that to be biderictional, transistors need to have the built in diode. if you pick model without it, you will have to add external (discrete) diode.
 
Top