In present day electronic we find many sensors or modules working in 3.3V logic levels.In other terms LVTTL devices (Low-voltage TTL). But even now we mostly use 5V TTL logic level uC or other devices with them. Hence, we need to change logic levels between 3.3V <---> 5V when interfacing both of them together. There are many dedicated chips for this and there was none available in the country. So I decided to build some simple circuits to do this conversion using transistors. Here,you can use any general purpose NPN transistors available in your country such as 2N39042SC828,BC547…etc. You need to supply 3.3V & 5V as shown in the schematics as Vcc. This won’t be a problem as you may already have these two power rails in your circuit as you use both for chips as Vcc. I have tested this on my 3.3V Bluetooth module interfaced with 5V PIC16F887.It worked well.
Why R1 in first figure?ReplyDelete
R1 & R5 can be omitted,i just built two NOT gates here in unison to make a bufferReplyDelete
Makes sense :)ReplyDelete
Can anyone explain to me how the 3.3-5V level shifter circuit shown above actually works? Please explain the circuit and how the voltages across the collectors and emitters change and why, thank youReplyDelete
It's like this,When input is 0V,Q1 is OFF and Q1's collector will be 5V,then Q2 will be ON, and Q2's collector is at 0V (as Vce of Q2=0)Delete
When input is 3.3V,Q1 is ON and Q1's collector will be 0V(as Vce of Q1=0),then Q2 will be OFF, and Q2's collector is at 5V,It's simple two NOT gates combined :D
How would I connect an Omron G2R-1-E 5V Realy to that circuit?Delete
I haven't used that particular relay,You can connect is using a simple transistor relay drive with a transistor,resistor and a diode :DDelete
This link may help you (check for relay drives)
This comment has been removed by the author.ReplyDelete
Can this circuit used between arduino due 3.3 v to 5v character lcd ??ReplyDelete
This should work,I'm using this to inteface my 3.3V Bluetooth module to micro controllers. I have used just some zener diodes for my 3.3V graphic lcd,I'll write about it on next postDelete
When input goes low, Q1 should turn off and its collector voltage should increase. I observe this behavior, but with an issue: it takes a long time for Q1 to turn off (but it turns on rapidly).ReplyDelete
This limits its use to 1MHz....any solution ? Why is that ?
I didn't use this in such speeds,may be you need a faster switching transistor then,Those data will be on the transistor datasheet :DDelete
You need to add pull down resistor at the base circuit. Just add 10k ohms to the ground.Delete
Stick a resistor between the base of the input transistor Q3 and ground, this will speed up the turn off of this transistor, that is what is limiting the switching speed. Use a 1K resistor as this is what you are using everywhere else.ReplyDelete
Sorry I meant Q1 transistor.Delete
Thanks for the idea :D It gives the "pull down" to Q1,should speed up :)Delete
Hello all , I have to code a level converter In verilog and implement it in FPGA and show the output..!! Please it's my assignment and I hand to finishit asap.. !! please someone reply if you have any brief idea about thatReplyDelete
I have a proteus file in this regard..! how can I upload it here?!ReplyDelete
This isn't working as a level shifter its working as voltage regulatorReplyDelete
In the first pic,, When Q2 is OFF, the output is available after the 1.5k resistor. but how that will be equal to 5v being your Vcc is 5v and there's a presence of 1.5k before the output.ReplyDelete
You're correct, but depending on the input impedance of the load, it will be close.ReplyDelete
The 1.5K will form a voltage divide with the load impedance.
These are nice and simple circuits but they do have a down side.ReplyDelete
They have quite high current consumption.
Circuit 1 will consume 3mA and circuit 2, 7mA when at logic level zero/low.
Thank you very much for your comments. I built these are these was no alternative to buy in local marketReplyDelete
Testing it with M590 GSM Modem and Arduino and seems to work also whithout R1 and R5 Thanks a lot !ReplyDelete
Glad to hear it helped you :DDelete
FOR HIGHER SPEED YOU CAN USE MOSFETReplyDelete