fbpx

Interface Zigbee With Arduino Uno

The Zigbee is the name of a wireless protocol maintained by the IEEE 802.15 standard.

  • This is a protocol specified for wireless Personal Area Network (PAN) using low powered wireless transreceivers.
  • They have an approximate range of 10 to 100 meters and are used in industries.
  • They can communicate with other devices using simplest serial communication protocol.
  • Zigbee using only two zigbee modules in which one of them transmit the data and another one receives data.
  • The Zigbee module made communication using serial communication protocol with the interfacing devices they can be connected to a microcontroller using a minimum of four pins.
  • They are
    • Power supply.
    • Ground.
    • UART Data Out.
    • UART Data.
  • Zigbee devices can transmit data over long distances by passing data through a mesh network of intermediate devices to reach more distant ones.
  • Zigbee is typically used in low data rate applications that require long battery life and secure networking.
  • Zigbee networks are secured by 128 bit symmetric encryption keys.

Application

  • Wireless light switches.
  • Electrical meters.
  • Traffic management systems.
  • And other consumer and industrial equipment.

Hardware Required

  • Zigbee Module.
  • Arduino.

Zigbee Pinout

  • Vin= +5V.
  • Dout= Rx of Microcontroller.
  • Din= Tx of Microcontroller.
  • Gnd= Ground.

Circuit

Transmitter

Receiver

Virtual Circuit

Code

 #include <SoftwareSerial.h> 
 SoftwareSerial mySerial(10, 11); // RX, TX
 SoftwareSerial mySerial1(9, 8);// RX, TX
 void setup()
 {
 mySerial.begin(9600);
 }
 void loop()
 {
 mySerial.println("xbee working");
 if(mySerial1.available())
 {
 int xbee=mySerial1.read();
 Serial.print(xbee);
 }
 }

Leave a Reply

Your email address will not be published. Required fields are marked *