9

I currently have an Uno (which operates at 5v), and I'm looking at buying a Due (which only operates at 3.3v). I'd like to make them communicate via Serial or SPI or similar, but presumably connecting them directly isn't an option (I guess the Due's pins would get damaged).

Is there any way to make the connection safe? Or is there an alternative form of communication I could safely use between them instead?

jfpoilpret
  • 9,162
  • 7
  • 38
  • 54
Peter Bloomfield
  • 10,982
  • 9
  • 48
  • 87

1 Answers1

8
  • For a 5V logic output to a 3V3 logic input, you can use a resistive divider to lower the voltage.
  • When unloaded, a 3V3 logic output is just enough to drive a 5V logic input. Check the AVR datasheet for the exact voltages (0.6 × Vcc = 3V, found under DC Characteristics in the datasheet).

In other words, with a little bit of special care it may just work.

To construct a more reliable and bidirectional solution, use a level shifter. There are several listed on this page but other manufacturers make similar devices.

This document describes how a MOSFET can be used to bidirectionally convert logic levels between different supply voltages.

jippie
  • 2,901
  • 14
  • 23