Created
August 31, 2017 21:39
-
-
Save perja12/21e12cf929bef682ebc2b89e3f12f24a to your computer and use it in GitHub Desktop.
Using oscilloscope to decode serial output from Arduino Uno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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