Update uart.md

Using Arduino UNO R3 (Non-SMD) with a quick hack to get UART connection.
This commit is contained in:
Aditya Patil 2024-04-04 14:40:01 +05:30 committed by GitHub
parent 765c2e1f94
commit 104b771429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,14 @@ Configure the settings such as baudrate and device name in the `Serial port setu
After configuration, use the command `minicom` to start get the UART Console.
# UART Via Arduino UNO R3 (Remoable Atmel 328p Chip Boards)
Incase UART Serial to USB adapters are not available, Arduino UNO R3 can be used with a quick hack. Since Arduino UNO R3 is usually available anywhere, this can save a lot of time.
Arduino UNO R3 has a USB to Serial adapter built on the board itself. To get UART connection, just plug out the Atmel 328p microcontroller chip from the board. This hack works on Arduino UNO R3 variants having the Atmel 328p not soldered on the board (SMD version is used in it). Connect the RX pin of Arduino (Digital Pin 0) to the TX pin of the UART Interface and TX pin of the Arduino (Digital Pin 1) to the RX pin of the UART interface.
Finally, it is recommended to use Arduino IDE to get the Serial Console. In the `tools` section in the menu, select `Serial Console` option and set the baud rate as per the UART interface.
# Bus Pirate
In this scenario we are going to sniff the UART communication of the Arduino that is sending all the prints of the program to the Serial Monitor.