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.
\$\begingroup\$
\$\endgroup\$
2
-
\$\begingroup\$ How far apart are these boards? Do they share a common ground reference? What is the data rate? \$\endgroup\$– Joe HassCommented Dec 19, 2013 at 16:18
-
\$\begingroup\$ The distance is under one meter and up to 115200 bit/s woud be good. \$\endgroup\$– kimlivCommented Dec 19, 2013 at 16:31
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
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.