Logic level converter

Discussion in 'General Electronics Chat' started by stoopkid, Jul 19, 2012.

  1. stoopkid

    Thread Starter Member

    Mar 3, 2011
    136
    1
    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.
     
  2. panic mode

    Senior Member

    Oct 10, 2011
    1,319
    304
    that is bidirectional circuit
     
  3. stoopkid

    Thread Starter Member

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

    Senior Member

    Oct 10, 2011
    1,319
    304
    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.
     
Loading...