1
\$\begingroup\$

I would like to send messages from STM32F4Discovery board to Arduino Mega 2560 via UART. How do I connect the Arduino to the STM32F4Discovery? Do I need any extra electronics? If I understand correctly, Arduino's UART has voltage level of 5V and the STM32F$ 3.3V.

\$\endgroup\$
2
  • \$\begingroup\$ How far apart are these boards? Do they share a common ground reference? What is the data rate? \$\endgroup\$
    – Joe Hass
    Dec 19, 2013 at 16:18
  • \$\begingroup\$ The distance is under one meter and up to 115200 bit/s woud be good. \$\endgroup\$
    – kimliv
    Dec 19, 2013 at 16:31

1 Answer 1

2
\$\begingroup\$

You only need wires. The STM32F4 has 5V-tolerant inputs and 3.3V is above the '1' threshold for the AVR. Connect ground and one or both pairs of TX/RX depending on whether you want bidirectional comms.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.