Friday, 4 September 2015

Exchange serial messages via UART between 3.3V µController and 5V µController concrete (STM32F4 and ATMega 2560)


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.




Answer



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.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...