-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
23 lines (16 loc) · 735 Bytes
/
README
File metadata and controls
23 lines (16 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
If you already use the serial port of an arduino to transmit data
to a program, you can't print debug statement and watch them in the monitor.
This uses a second arduino to forward debug data through digital pins using another
Arduino.
Upload this to an Arduino (debugger).
Connect the other Arduino (sender) and the debugger gnd together.
Assuming you're using pin 12 (RX) and 13 (TX) on the sender,
connect pin 12 (sender) to pin 3 (debugger) and 13 (sender) to 2 (debugger).
In other words, connect RX to the other TX and TX to the other RX.
To debug in the sender:
#include <SoftwareSerial.h>
SoftwareSerial SerialDebug(12, 13); // RX, TX
void setup() {
SerialDebug.begin(38400);
SerialDebug.println("Debugging");
}