UART Debugging and Logic Analysis
Diagnose baud-rate, voltage-level and framing problems systematically.
◷ 45 minParts and tools
- Two development boards or USB-UART adapter
- Logic analyser
- Common ground
Lesson
Learning objective
Diagnose baud-rate, voltage-level and framing problems systematically.
Procedure
- Review the circuit and confirm the board voltage.
- Build and inspect the wiring before applying power.
- Upload the example, observe the result and record your readings.
- Change one parameter, predict the result and test again.
Troubleshooting
Check power, ground, pin selection, polarity, compiler target and serial output. Use a multimeter or logic analyser where appropriate.
Example code
Serial.begin(115200);
Serial.println("TCS Lab UART test");Knowledge check
What connection must two UART devices share?
