Go Down

Topic: How do I interface a 5v & 3.3v arduino (Read 655 times) previous topic - next topic

JimEli

I have an arduino running a 5V sensor array that I want to actuate outputs on an arduino operating at 3.3v. Do I need to use an optoisolator, relay or can this be accomplished using a bipolar transistor (like a PN2222)?

Grumpy_Mike

You can use any of those methods. However you can also use a potential divider, that's just two resistors.
http://en.wikipedia.org/wiki/Voltage_divider
To cut down the 5V signal to 3v3

MarkT

In fact with a voltage divider you will probably be able to communicate both directions since the input-high voltage level is 2.7V for an ATmega at 5V supply, so a 3.3V driving it will register.
[ I won't respond to messages, use the forum please ]

JimEli

thanks, that sure seems easier, so I'm experimenting with the voltage divider now.

Go Up