Devices & Components
Arduino Uno Rev3
Xbee Pro S1
Hardware & Tools
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Software & Tools
Arduino IDE
X-CTU
Project description
Code
XbeeArduino.ino
arduino
1#include <SoftwareSerial.h> 2SoftwareSerial XBee(2, 3); 3 4void setup() 5{ 6 XBee.begin(9600); 7 Serial.begin(9600); 8} 9 10void loop() 11{ 12 if (Serial.available()) 13 { 14 XBee.write(Serial.read()); 15 } 16 if (XBee.available()) 17 { 18 Serial.write(XBee.read()); 19 } 20} 21
XbeeArduino.ino
arduino
1#include <SoftwareSerial.h> 2SoftwareSerial XBee(2, 3); 3 4void setup() 5{ 6 XBee.begin(9600); 7 Serial.begin(9600); 8} 9 10void loop() 11{ 12 if (Serial.available()) 13 { 14 XBee.write(Serial.read()); 15 } 16 if (XBee.available()) 17 { 18 Serial.write(XBee.read()); 19 } 20} 21
Downloadable files
After Uploading The Code
1/ Open the Arduino's Serial Monitor. Make sure the baud rate is set to 9600. 2/ On your X-CTU click on console mode. 3/ Type something in the console view, it should show up on the Serial Monitor. 4/Now try typing something into the Arduino's Serial Monitor , then press send ,it should show up in the console view.
After Uploading The Code

The configuration of your XBee.
Channel = C PAN ID = 3332 DH = 0 DL = 0 MY = 0
The configuration of your XBee.

Proteus Circuit Diagram
Gnd Xbee - Gnd Arduino Vcc Xbee - 3.3V Arduino Tx - Rx pin D0 Arduino Rx - Tx pin D1 Arduino
Proteus Circuit Diagram
Add Your Xbee
Add Your Xbee

Assembling Hardware
Assembling Hardware

After Uploading The Code
1/ Open the Arduino's Serial Monitor. Make sure the baud rate is set to 9600. 2/ On your X-CTU click on console mode. 3/ Type something in the console view, it should show up on the Serial Monitor. 4/Now try typing something into the Arduino's Serial Monitor , then press send ,it should show up in the console view.
After Uploading The Code

Assembling Hardware
Assembling Hardware

Installing X-CTU
https://www.digi.com/resources/documentation/digidocs/90001526/tasks/t_download_and_install_xctu.htm
Installing X-CTU

The configuration of your XBee.
Channel = C PAN ID = 3332 DH = 0 DL = 0 MY = 0
The configuration of your XBee.

Proteus Circuit Diagram
Gnd Xbee - Gnd Arduino Vcc Xbee - 3.3V Arduino Tx - Rx pin D0 Arduino Rx - Tx pin D1 Arduino
Proteus Circuit Diagram
Add Your Xbee
Add Your Xbee

Documentation
Components Required
Components Required

Components Required
Components Required

Comments
Only logged in users can leave comments