Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
Hey @danielkalu Connecting a 5V TTL device directly to the ESP32’s 3.3V UART pins in your project without level shifting can indeed cause errors like garbage values in the received data. The ESP32’s GPIO pins does not tolerate 5V; exceeding of the maximum input voltage in your project can lead to incorrect readings or even damage the microcontroller over time.
For reliable communication, I will advise you to use a level shifter or a dedicated RS-232 to TTL converter to ensure proper voltage levels and protect the ESP32.
Can connecting a 5v device without level shifting cause these errors .. yes it really can. I know that ESP32’s UART pins are designed for 3.3V logic levels. So as you connected a 5V TTL device directly, the higher voltage was what caused signal integrity issues that you are facing. You should stop doing such cus over time your ESP32 pins will damage. The 5V signal is outside the ESP32’s safe input range, causing the garbage values.
To resolve garbage values, I’ll implement a level shifter or dedicated RS-232 to TTL converter. Thanks for the help 👏🏼
CONTRIBUTE TO THIS THREAD