I was just pondering logic level conversion for 5V Arduino to 3.3V devices. I see lots of solutions ranging from dedicated ICs to resistor voltage dividers, etc. But I haven't seen the following...
Since the Arduino (UNO) already has a regulated 3.3V pin.... Could it be possible (reliable?) to connect a transistor/FET from 3.3V pin and 3.3V device, and use the 5V signal to turn transistor/FET on/off...effectively translating the signal?
I'm curious about the feasibility of this method. Has anyone tried it? It's pretty similar to some solutions I've seen. I just havent seen anyone use the 3.3V pin as the voltage source. Is there any reason this wouldn't work?
To convert a 5V logic signal to 3.3V, you could indeed use a p-channel mosfet to connect the +3.3V pin to the input of the 3.3V device. But you would also need a pulldown resistor. A voltage divider (consisting of 2 resistors) is cheaper and simpler than a mosfet and a resistor.
1ChicagoDave:
I'm curious about the feasibility of this method. Has anyone tried it? It's pretty similar to some solutions I've seen. I just havent seen anyone use the 3.3V pin as the voltage source. Is there any reason this wouldn't work?
Why not! An ordinary NPN transistor will do the job but?
If i applied 3v to the collector, 5v high to base... would the emitter spit out 3v from thr collector side or 5v from the base? Where'my android circuit emulator...
For an IIC level converter the only thing 'required' is 2 logic level mosfets (the lower the VGth the lower the low side voltage can be.
NXP AN10441 (attached) is a good source of 'inspiration' I've used the circuit from 5 to 3V3 (BMP085) with 2N7000's with good success. the recommended mosfet is an SOT-23 BSS138..
Level shifters of similar nature can be found on Ebay too, I bought two for $2.42 "Free Shipping".
I thought the price high considering the BOM but the convenience won me over.
Docedison:
For an IIC level converter the only thing 'required' is 2 logic level mosfets (the lower the VGth the lower the low side voltage can be.
NXP AN10441 (attached) is a good source of 'inspiration' I've used the circuit from 5 to 3V3 (BMP085) with 2N7000's with good success. the recommended mosfet is an SOT-23 BSS138..
Level shifters of similar nature can be found on Ebay too, I bought two for $2.42 "Free Shipping".
I thought the price high considering the BOM but the convenience won me over.
Doc
Ok, that's pretty clever. I like it. Thanks for posting!