Arduino Usage
There are multiple versions of the Arduino platform: all have support for Serial class. Sometimes this is implemented by connecting digital pins 0(RX) and 1(TX) to an onboard USB chip, other times the processor provides a USB interface. In either case, you don't need a Debug Buddy to use the Serial class for any of the Arduino boards mentioned, just connect the Arduino's USB port to your computer.
Many boards also have additional Serial ports (i.e. Serial1, Serial2, etc) which can be utilized with a Debug Buddy.
Boards can also run software serial ports using the SoftwareSerial library: these ports can be mapped to any digital IO pin and can also be accessed with a Debug Buddy.
Connections
Determine if your Arduino uses 3.3V or 5V IO pins from the table below.
- For a 3.3V Arduino
Configure Debug Buddy for 3.3V RS232 mode by removing both sets of jumper wires
Attach jumper wires to RX and TX lines on J7 (details below table) - For a 5V Arduino
Configure Debug Buddy for 5V/TTL RS232 mode by connecting J7 to J3
Attach jumper wires to RX and TX lines on J4 (details below table)
| Serial1 Pins | Serial2 Pins | Serial3 Pins | |||||
|---|---|---|---|---|---|---|---|
| Board | IO Voltage | RX | TX | RX | TX | RX | TX |
| Uno | 5V | SoftwareSerial only | |||||
| Leonardo | 5V | 0 | 1 | ||||
| Mega | 5V | 19 | 18 | 17 | 16 | 15 | 14 |
| 101 | 3.3V | 0 | 1 | ||||
| Zero | 3.3V | 0 | 1 | ||||
| Due | 3.3V | 19 | 18 | 17 | 16 | 15 | 14 |
After identifying the pin numbers of the RX and TX lines for the Serial object you wish to use, connect your Arduino to the Debug Buddy using three wires, as follows:
- For a 3.3V board:
Connect J7's RX to the Arduino's TX
Connect J7's TX to the Arduino's RX - For a 5V board:
Connect J4's RX to the Arduino's TX
Connect J4's TX to the Arduino's RX - Connect the Debug Buddy's GND (any pin on J2) to any GND pin on the Arduino
Note: if you're using the SoftwareSerial Library rather than the Serial class, you will be defining which pins are the RX (and/or TX lines) instead of using the table
More info
- Arduino Products (hardware details on the various Arduino boards)