You are on page 1of 10

2/12/2016

ZigbeeinterfacingwithArduino

Microcontrollers Lab

What are you looking for?

HOME

PROJECTS

PROJECT IDEAS
SITEMAP

TUTORIALS

PROJECT SERVICES

PRIVACY POLICY

ORDER PCB

PROJECT SERVICES

CONTACT US

Zigbee interfacing with


Arduino
BILAL Malik

2 Years Ago

7 Comments

NeedAData
Logger?

SUBSCRIBE
TO BLOG VIA
EMAIL

ADVERTISE
WITH US

DataAcquisition&Control.Rugged
your email
HighPerformanceSolutions.Shop Enter
address to subscribe
Now
to this blog and
www.dataforth.com/DataLoggers
Zigbee can be interfaced with external devices very easily.
Zigbee can communicate with external devices like sensors
and communications devices. What if someone want to

http://microcontrollerslab.com/zigbeeinterfacingarduino/

receive notications
of new posts by
email.
Join 533 other
subscribers
Email Address

1/10

2/12/2016

ZigbeeinterfacingwithArduino

communicate with outdoor devices using Arduino? Yes

Subscribe

solution of this problem is Zigbee. There are many wireless


modules available in marker like RF, RC transmitter and
receiver. But there range is low. Zigbee have higher range
than other wireless modules. In this article, you will learn
how to interface Zibgee with Arduino Uno R3 ? After reading

PLEASE
SUPPORT OUR
WORK

this article you will get answer of following questions?


What is Zibgee?
How it technology works?
How to use it for wireless communication?
Applications of Zigbee?
How to use it for wireless communication between two
devices?

Our goal is to
discover new
solutions and
provide working
examples with video,
pictures, code and
schematics. Please
support our efforts.

How to interface it with Arduino Uno R3?


Circuit diagram of Zigbee interfacing with Arduino?
Programming of Zigbee communication between with
wireless devices.

Page Contents [hide]

FIND US ON
FACEBOOK
MicrocontrollersLab
10,100likes

LikePage

Bethefirstofyourfriendstolikethis

RELATED
POSTS

1 What is Zigbee ?
2 How zigbee technology works ?

3 Applications of Zigbee :
4 How to interface Zigbee with Arduino :
5 How to congure Zigbees :

http://microcontrollerslab.com/zigbeeinterfacingarduino/

piezoelectric
sensor
interfacing
with
Arduino
Uno
R3
2/10

2/12/2016

ZigbeeinterfacingwithArduino

What is Zigbee ?
Zigbee is a wireless communication module which use
IEEE802.15.4 standard.802.15.4 is a IEEE standard for low
power applications of radio frequency. It used in many
products

now

days

for

wireless

communication

functionality. It can be used as a transmitter and receiver


both. It used serial communication to send and receive
data. It have two series, series1 and series 2. Series 1 is
comparatively easy to use and it is recommended for
beginners. Series 1 zigbee module can not work in mesh
network. Mean it can not talk to more than one zigbees
buddies.

How zigbee technology works ?


As I have already mentioned it use serial port to send and
receive data. So its mean it can be easily interface with
Arduino Uno R3, any type of microcontroller and computer.

DHT11
interfacing
with
arduino
and
weather
station
acceleration
measurement
using
Arduino
Uno
R3

Zigbee is given below.

How
to
use
push
button
with
Arduino
UNO
R3

Applications of Zigbee :

Arduino
projects

Because they all support serial communication and they all


have serial port to send and receive data. It can also
communicate with other Zigbee to form a mesh. Zigbee can
also be used to make a local area network. It have many
applications. But some of the famous applications of

joystick
based
servo
motor
control
using
arduino

Some of the famous applications are given below :

Wireless communication
wirelessly controlled robot
remote monitoring system
Wireless home automation system
wireless temperature sensor and many others.
Zigbee alone cant do any thing. You have to interface it with
some intelligent device like microcontrollers, Arduino and
computer. These devices will tell it what to do or what no to

http://microcontrollerslab.com/zigbeeinterfacingarduino/

Distance
measurement
using
Ultrasonic
sensor
and
Arduino
Arduino
usb
to
TTL
converter
3/10

2/12/2016

ZigbeeinterfacingwithArduino

Three
ways
to
use

do through alrady fed program inside microcontrollers and


Arduino Uno R3. These digital devices are no such
intelligent. But you can make them intelligent by writing few
lines of instructions. Lets move forward and learn how to
interface Zigbee with Arduino.

SUBSCRIBE
ME ON
YOUTUBE
BilalMalik
YouTube

515

CATEGORIES
8051
microcontroller (5)
Arduino (33)
Arm
microcontroller (1)

Note : Single Zigbee module is useless. We always need a


pair of modules so that they can talk to each other. Oh sorry
they are not human. I mean they can communicate with
each other. I will discuss about it more later.

How to interface Zigbee with


Arduino :

AVR
microcontroller
(14)
electronics
projects (8)
embedded
systems (9)
ESP8266 (1)

To interface it you should know which series of it you are

General Articles
(30)

using. In this article I will discuss about series one only.

gsm (10)

Because it is recommended for beginners. Two Zigbee

ICs (2)

modules can talk with each other if both are of same type.

Inverters (12)

To communicate to it module with each other, obtainto its

PCB designing (2)

modules. Connect one module to Arduino and other

pic microcontroller
(32)

module to either sensor or any microcontroller or computer.


You should set conguration of both modules. I will discuss
late how to congure modules.

PIC
microcontrollers
(43)
Power (7)
Power electronics
(16)
power supplies (4)

http://microcontrollerslab.com/zigbeeinterfacingarduino/

4/10

2/12/2016

ZigbeeinterfacingwithArduino

PROJECT IDEAS
(13)
protection (7)
Proteus tutorial (1)
Solar system (11)
Technical Articles
(1)
transformer (5)
Tutorials (4)
Zigbee interfacing with Arduino
Figure above shows connection diagram of module with
Arduino. Remember. You module should have regulated 5
volt and 3.3 volt. If you use Adafruit XBee Adapter it have
both voltage level. Otherwise you have to use separate
power supply. In above circuit. TX and RX pin of zigbee and
Arduino are connected to each other. Arduino will send
some instruction to zigbee and according to these
instruction

zigbee

respond.

Similary

zigbee

receive

intructions from other zigbee to which it have address. After


receiving instructions or data from other zigbee. It send data
to arduino through serial pins as shown in connection.
Similarly other module can be connected with one more
Arduino or computer. Same connection diagram is used for
other zigbee and arduino pair.
********* Code*************

void setup()
{
Serial.begin(9600);
}
void loop()
{
while (Serial.available() ) {
Serial.write(Serial.read()); /
}
}

http://microcontrollerslab.com/zigbeeinterfacingarduino/

5/10

2/12/2016

ZigbeeinterfacingwithArduino

After connecting Arduino with it, upload the above code in


Arduino, Arduino start receiving whatever zigbee send to
Arduino through serial communication.

How to congure Zigbees :


Follow the following instructions to congure Zigbee series
1 module :
1. Connect your zigbees module to computer serial port
using serial adapter.
2. Download virtual terminal or PuTTy for windows.
3. set your computer serial port. conrm that it is set to a
baud rate of 9,600, 8 data bits, no parity, 1 stop bit.
4. click on local Echo box.
5. click ok.
6. save the time of session.
7. click to the connect button on virtual terminal.
8. After connection with Zigbees give the name of your
session.
9. Now you are connected with Zigbee module.
10. Use AT commands to congure your module.
After that type +++ on virtual terminal and after few seconds
it will respond with these commands :
ATMY1234

ATDL5678
ATDH0

ATID0
ATWR
Your zigbees module is ready to used. Now connect other
zigbees module with other serial port and repeat the above
10 steps. Other zigbee module will also respond with
following instructions:

ATMY5678
ATDL1234
ATDH0

http://microcontrollerslab.com/zigbeeinterfacingarduino/

6/10

2/12/2016

ZigbeeinterfacingwithArduino

ATID0
ATWR
Now both zigbees modules are ready to talk with each other.
If you like this article please share it with your friends. Your
comments are welcome.
We highly recommend EasyEDA for circuit design and
low cost PCB order
EasyEDA: A Powerful Free Circuit Simulation & PCB
Design Tool
Register now to use it for free. Lots of open source
hardware projects and Step by step tutorials

RELATED POSTS

REMOTE
CONTROLL
ED
DIFFERENT
IAL DERIVE
ROBOT

infrared
sensor
interfacing
with
Arduino

BILAL

Malik

Malik

December 3,

Malik

2014

February 24,

March 14, 2015

BILAL

acceleratio
n
measurem
ent using
Arduino
Uno R3
BILAL

2015

Arduino
usb to TTL
converter

http://microcontrollerslab.com/zigbeeinterfacingarduino/

7/10

2/12/2016

ZigbeeinterfacingwithArduino

Three ways
to use
BILAL
Malik

November 23,
2016

ame
sensor
interfacing
with
arduino for
re
detection

light
sensor and
street light
control
using
Arduino

BILAL

Malik

Malik

October 1, 2014

BILAL

November 9,
2016

ABOUT THE AUTHOR


Bilal Malik

More from this Author

I have been providing project services to


students and industry from last 4 years .
Looking for a PhD opportunity in Electrical and computer
engineering, Hire me for your industrial and research
project. Send me your project details. My email address:
bilalmalikuet@gmail.com

7 COMMENTS
Barry

February 14, 2015

please send me more technical information and


prices of this and other zigbee units

Regards
Barry
Reply

BILAL Malik

Author

http://microcontrollerslab.com/zigbeeinterfacingarduino/

February 14, 2015

8/10

2/12/2016

ZigbeeinterfacingwithArduino

What kind of technical information you need ? And


prices of these units vary from country to country. So try
to search electronics stores in your country
Reply

hari

February 15, 2016

thank for giving this information to all , i have one


doubt about zigbee please try to clear it sir , after
conguring the zigbees then can we use that
zigbee transmitter individually that means with out
pc , and where it will show the commands . please
give reply as early as possible
Reply

SHANTANU

February 25, 2016

I am doing a project where zigbee is used. I need


to use the zigbee module to broadcast
information. Is it possible to broadcast using
xbee?
If u can share some information regarding zigbee
broadcast.
Reply

BILAL Malik

Author

February 25, 2016

I dont have such info

Reply

Shyam Singla

June 28, 2016

Thanks for all the information and i am a begginer


so please can yoy tell me more specically that
how I congure my both zigbees together.
Reply

Shyam Singla

June 28, 2016

Please answer me as soon as possible.

http://microcontrollerslab.com/zigbeeinterfacingarduino/

9/10

2/12/2016

ZigbeeinterfacingwithArduino

Reply

ADD COMMENT

Comment Text*

Name*

Email*

Website

SUBMIT COMMENT
Notify me of follow-up comments by email.
Notify me of new posts by email.

Microcontrollers Lab Copyright 2016.

Sitemap

Privacy Policy

Project services

Contact us

http://microcontrollerslab.com/zigbeeinterfacingarduino/

10/10