Arduino
Arduino
Warning for Users NOT Using the Arduino Serial Monitor!
If you are using Digi's X-CTU or a
to configure or connect to an XBee by using a RedBoard/Arduino Uno as a serial
passthrough, you may need to add a jumper wire between the RST and 5V pin to prevent the
Arduino from resetting.
Basically when the XCTU or serial terminal opens a COM port to the Arduino, computer resets the
microcontroller while looking for the XBee. Therefore, it can’t communicate with the XBee because
the Arduino is rebooting.
Hardware Serial Passthrough
This example is for those trying to use the hardware UART on an ATmega32U4-based Arduino.
Copy and upload the sketch below. You can also download it
.
language:c
/*****************************************************************
Leonardo_XBee_Serial_Passthrough.ino
Set up a serial port to pass data between an XBee Shield
and the serial monitor.
Hardware Hookup:
The XBee Shield makes all of the connections you'll need
between Arduino and XBee. If you have the shield make
sure the SWITCH IS IN THE "UART" POSITION. That will connect
the XBee's DOUT and DIN pins to Arduino pins 0 and 1.
*****************************************************************/
// Leonardo Serial is the USB port
// Leonardo Serial1 is pins 0 and 1
Page 14 of 24