zigbee networks using xbee modules zigbee networks using xbee modules

1303198 42 views 52 slides Jun 22, 2024
Slide 1
Slide 1 of 52
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52

About This Presentation

This ppt discusses about zigbee


Slide Content

ZigbeeNetworks
Using XbeeModules

•TheZigBeeisthenameofawirelessprotocol
maintainedbytheIEEE802.15standard.
•ThisisaprotocolspecifiedforWirelessPersonal
AreaNetwork(PAN)usinglowpoweredwireless
transceivers.
•Therearealreadywirelesstransmitterandreceiver
moduleswhichcandopointtopointcommunication.
What is ZigBee?

TheXbeeisthebrandnameawirelesstransceiver
deviceintroducedbytheDigiinternationalwhich
worksontheZigBeeprotocolandcanformPAN
networks.Theyhaveanapproximaterangeof10to
100metersandareusedinindustries,scientificfields,
medicalfieldsetc.
TheXbeemoduleeventhoughusescomplexpacket
databasedZigbeeprotocolforcommunicatingwith
eachother;Butalsotheycancommunicatewithother
devicesusingsimplestserialcommunication
protocolandhencetheyarewidelyusedin
microcontrollerbaseboards.
What is Xbee?

What is Zigbee?
•Based on IEEE 802.15.4 Standard
•Designed for sensor and control
networks
•Used for applications that require:
•Low Power Consumption
•Low Data Rate
•Network Security

XbeeWireless Modules
•802.15.4/Multipointnetworktopologies
•2.4GHzforworldwidedeployment
•900MHzforlong-rangedeployment
•Low-powersleepmodes
•Multipleantennaoptions
•Lowpowerandlongrangevariantsavailable

ZigbeeLayers

A ZigbeeNetwork

Inameshnetwork,ZigBee,deviceshaveoneofthree
differentduties:
•Coordinator:Establishesandmaintainsthenetworkby
assigningaddressestojoining(associated)devicesandassisting
withpathplanningformvariousnodestoitsself.Inourcase
basestation.
•Routers:movedatabetweennodesthatcannotcommunicate
directly.Inourcasesinknodesorclusterheads.
•Enddevices:Thenodethatcollectsdataandcontrolsdevices
onthenetworkandistypicallyconnectedtoourcontrollers,
sensorsandotherdevicesfornetworkinterfacing.

•Zigbeepin-configuration

Ashortdiscussionofpingroupswillprovidebetter
understandingofuseandfeaturesofthemodule:
•DOUTandDIN:Thesearethepinsthrough
whichserialdataisreceivedbyourcontrolleror
PC(DOUT)andsenttotheXBee(Din).Thisdata
maybeeitherfortransmissionbetweenXBee
modulesorforsettingandreadingconfiguration
informationoftheXBee.Thedefaultdatarateis
9600baud(bps)usingasynchronousserial
communications.
•RESET:Amomentarylowonthispinwillreset
theXBeetothesavedconfigurationsettings.
Pin Description of XBee

•CTS/RTS/DTR:Theseareusedforhandshaking
betweentheXBeeandyourcontrollerorthePC.The
XBeewillnotsenddataoutthroughtheDOUTlineto
yourcontrollerunlesstheRTSlineisheldlow.This
allowsthecontrollertosignaltotheXBeethatitis
readytoreceivemoredata.DTRistypicallyusedby
theXBeewhendownloadingnewfirmware,and
thereforefirmwareupdatescanonlybedoneusing
XBeeadapterboardssuchastheParallaxUSBAdapter
Boardthatimplementthisconnection.When
transmitting,theXBeecansignaltothecontroller
throughtheCTSlinethatitisreadytosendmoredata.
CTSisseldomneededbecausetheXbeesendsdataout
byradiomuchmorequicklythanitacceptsdatafrom
thecontroller.
Pin Description of XBee

•DIO0–DIO7/D08:Theseareusedasstandard3.3V
digitalinputsandoutputs.TheXBeecanbe
controlledtosetthestateofthepins.Theycanalso
beusedin"linepassing"sothatthestateofapinon
oneXBee(highorlow)isreflectedonthe
correspondingpinofanotherXBee.
•AD0toAD6:Theseare10-bitAnalogtoDigital
Converter(ADC)inputstotheXBee.Whilewe
cannotdirectlyreadthesevalues,somecanalsobe
usedin"linepassing"sothattheamountofvoltage
onapinononeXBeeisreflectedbytheamountof
voltage(PWM)onthecorrespondingpinofanother
XBee.
Pin Description of XBee

•RSSI:TheXBeecanreportthestrengthofthereceived
RFsignalasPWMoutputonthispin.Thisvaluecan
alsoberetrievedusingATcommandsoraspartofa
packetinAPIMode.
•PWM0/1:Thesepinscanbesetfor10-bitpulsewidth
modulatedoutput,whichcanbeuseddirectlyorfiltered
foranalogoutput.Theycanalsobecontrolledusing
“linepassing”bytheanaloginputonanotherXBee.
•ASSOC:Whenconfigured,theXBeecanbesettojoin
anexistingnetworkandassignedcertainparameters.In
thistutorialwewillmanuallyconfiguretheXBeeinthe
networkinsteadofjoiningnetworks.
Pin Description of XBee

XBee& XBeePro, 802.15.4
Modules
•The802.15.4styleofXBee(commonlycalledSeries
1)allowspoint-to-pointnetworking,showninFigure,
andpoint-to-multipoint(onenodetoallnodes)
networking.TheyusetheIEEE802.15.4datalink
protocoltomovedatadirectlybetween2ormore
devices.Allnodesonthenetworkusethesame
firmwareversionthoughsettingsonvariousnodes
mayvary.
•TheXBeeandXBee-Proarenearlyidenticalin
operationandfunctionwiththebiggestdifferences
beingsizeandpower.Whilethepinoutsarethesame,
thecasingoftheXBeeProisslightlylonger.

Point to Point Communication
in XBee

XBeeand XBee-Pro 802.15.4
Power Rating

Working of XBee
•TooperateXBee,twoXbeesarerequired,onewillactasa
transmitterandtheotherwillactasareceiver.
•Nowsupposeyouwanttosendsomethingfromonesideto
another,onehastoconnectonexbeeatthetransmittersideand
theotheratthereceiverside.Forexamplehomeautomation
projectinwhichremoteisusedtoswitchonyourlightorfan
etc.SointhatcasetherewemustbeoneXBeeinremoteand
thesecondoneinboardwherethelightcircuitisplaced.
•Sowhenonepress’sthebuttonofremote,theXBeeinremote
willsendaninstructiontotheXBeeintheboard.Assoonas
theXBeeintheboardreceivetheinstructionfromXBeeinthe
remoteitwillswitchonthelight.BoththeXbeesare
connectedtotheArduinoboardandneedstobeprogrammed.

Example of interfacing Temperature
sensor with Arduino using XBee
•InterfaceaZigbeemodulewiththeArduinoUnoandthe
temperaturereadingsfromtheLM35sensorwillbeforwardedto
theotherPCwirelesslythroughtheZigbee.
Sensornode/Enddevice:

•Sink nodes/Coordinator/Base station:

Configuration of Zigbee
•Configuration
•XB24-ZB
•Coordinator AT : PAN ID and Destination
•Routers: PAN ID and JV verification for Tran-receiver
•Both should have common PAN ID

Operation:
TheSensingelementcontinuouslymonitorsthephenomenonin
thetargetedarea,inourcaseeitherforestsorbuildingsandthen
thesensedsignalsarebeingpassedtotheprocessingelementfor
furtherprocessing,inourcaseitisAVRMicrocontroller.These
processedvaluesarefurthertransmittedoverawirelessmedium
tothesinknodeorBasestationwiththehelpofZigbee
Modules.Thuseachnode,partofthewholenetworkwill
transmitthedataoverwirelessmediumtothesinknodeorBase
station.ThewholenetworkisimplementedusingStarandMesh
topologies.Startopologyisusedtotransmitthedatafromthe
sensornodestothesinknodes.Meshtopologyhasbeenusedto
transmitthedatafromthesinknodesorclusterheadstothe
Basestation.i.e.Sensornodesdumpthedataintosinknode
calledclusterhead,whichisintherangeofsensornode.Then
theclusternodestransmitthedatatotheotherclusterheads
nearbyforpassingtheinformationtotheBasestation.

Xbeeand Arduino

XbeeWireless Modules

Nvis3302ARD RoboCar

Zigbee Configuration End Device Steps

Zigbee Configuration Coordinator Steps

Connection Diagram
Nvis3302 ARD

Zigbee Interfacing Code

Zigbee Command Window

Accelerometer Interfacing Code

Accelerometer Output Serial Window
Tags