Skip to content

Instantly share code, notes, and snippets.

@perja12
Created August 31, 2017 21:39
Show Gist options
  • Save perja12/21e12cf929bef682ebc2b89e3f12f24a to your computer and use it in GitHub Desktop.
Save perja12/21e12cf929bef682ebc2b89e3f12f24a to your computer and use it in GitHub Desktop.
Using oscilloscope to decode serial output from Arduino Uno
/*
* How to decode serial output from Arduino Uno with a scope. Tested with Keysight DSOX1102G.
*
* 1. Connect probe on channel 1 (with 10x) to TX (pin 1) and ground clip to GND.
* 2. Scope settings:
* a. Press "default setup" to get into a known state.
* b. Press "trigger" button and choose mode = normal.
* c. Set to 1 V per division and time scale to 1 ms per time divison.
* d. Press "bus" and choose "serial bus" and "UART/RS232" as mode.
* e. Signals menu: RX 1, threshold 3V
* f. Bus config: #bits = 8, parity = none, baud rate = 9600, polarity = idle high, bit order = lsb
* g. Settings: base = ASCII
*/
void setup() {
Serial.begin(9600);
pinMode(1, OUTPUT);
}
void loop() {
Serial.print("Hello");
delay(1000);
Serial.print("World!");
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment