Project tutorial
XBee Arduino Interfacing

XBee Arduino Interfacing

Recently I’m getting a lot of queries regarding XBee, In this tutorial, I'm going to show you how to interface XBee with Arduino.

  • 1,040 views
  • 4 comments
  • 5 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

XBee is an RF module mainly used as a radio communication transceiver and receiver. It is mesh communication protocols, also XBee supports peer-to-peer as well as point to multi-point network communications wirelessly with the speed of 250 kbits/s, to operate XBee you need a transmitter and a receiver.

Code

XbeeArduino.inoArduino
#include <SoftwareSerial.h>
SoftwareSerial XBee(2, 3);

void setup()
{
  XBee.begin(9600);
  Serial.begin(9600);
}

void loop()
{
  if (Serial.available())
  { 
    XBee.write(Serial.read());
      }
  if (XBee.available())
  { 
    Serial.write(XBee.read());
      }
}

Custom parts and enclosures

Components Required
Airbrush 20191112174516 neyuzmdfpc

Schematics

Proteus Circuit Diagram
Gnd Xbee - Gnd Arduino
Vcc Xbee - 3.3V Arduino
Tx - Rx pin D0 Arduino
Rx - Tx pin D1 Arduino
New bitmap image kw7nmsprhd
Assembling Hardware
Airbrush 20191112173900 kp0afvayqy
Installing X-CTU
https://www.digi.com/resources/documentation/digidocs/90001526/tasks/t_download_and_install_xctu.htm
R7izqkdomovccsdsdu2iskhj7ax2vm9orzunvwxu 5irkx2c9k4
Add Your Xbee
Jgifxoifrjpnu4lbemqc9ha1ikoaqlbs5hxxsefo (1) skxriynn6b
The configuration of your XBee.
Channel = C
PAN ID = 3332
DH = 0
DL = 0
MY = 0
Tbxc7tnqolm5kivuramdr7ynffnivujxnjlhtbzq t8tsjnszyh
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.
O2dbj782df4fqs2boz4snzacdnzvksopch6d4zto oggj1zq1cj

Comments

Similar projects you might like

Arduino-ESP WiFi Integration

Project in progress by Turai Botond

  • 10,559 views
  • 11 comments
  • 56 respects

Using the RAK811 LoRa module with Arduino

Project tutorial by Naresh krish

  • 13,591 views
  • 5 comments
  • 13 respects

Measure LUX with Arduino Using BH1750

Project tutorial by afsh_ad

  • 9,523 views
  • 0 comments
  • 4 respects

Motorcycle Controlled by Digital or Mobile

Project showcase by 3 developers

  • 6,965 views
  • 20 comments
  • 43 respects

Preemptive Multitasking Scheduler for AVR

Project tutorial by Akash Kollipara

  • 2,308 views
  • 0 comments
  • 4 respects

Password-Protected, Arduino-Controlled Servo Gate

Project tutorial by Aayush Sharma

  • 1,763 views
  • 0 comments
  • 8 respects
Add projectSign up / Login