ZigBee based Wireless Sensor Network using XBee S2C Module

  Переглядів 41,934

BINARYUPDATES

BINARYUPDATES

3 роки тому

Lets explore End-to-End ZigBee based Wireless Sensor Network using XBee S2C Module. In this Zigbee project, we'll be using Arduino with Router Zigbee and Raspberry Pi with Cordinator Zigbee. We are using XBee S2C Zigbee Module. We'll read temperature using LM35 Temperature Sensor with Arduino. And transmit temperature data to Raspberry Pi over ZigBee Protocol. Later on, we'll write python code on Raspberry Pi and send data to AWS IOT Core using MQTT Protocol. This is an complete end-to-end use case to demonstrate use of zigbee protocol in IOT Project
Step-by-Step Zigbee based Wireless Sensor Network:
1. Write Arduino Code
2. Replace Cordinator XBee's MAC ID & Calculate Checksum
3. Connect Arduino with ZigBee Module (4-Tx, 5-Rx, 3.3V-3.3V, GND-GND)
4. Connect Cordinator ZigBee XBee with USB Port of Raspberry Pi4
5. Use awspublish.py file and replace aws credentials
6. If needed run commands, sudo pip install paho-mqtt, sudo pip install xbee
7. Finally run awspublish.py and check on AWS Test Client
8. You will start getting temperature data in AWS Cloud
Umesh Lokhande
Mail: umesh@binaryupdates.com
Web: www.binaryupdates.com
Courses: courses.binaryupdates.com

КОМЕНТАРІ: 46
@poojangheewala4289
@poojangheewala4289 2 роки тому
nice explanation and it is very helpful to everyone thank u🙂
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Thanks and most welcome Poojan😊
@osmanturgut1466
@osmanturgut1466 3 роки тому
How do I transfer data from an XBee to two different XBee in Zigbee and API mode with a microcontroller? ( not broadcast, only unicast mode)
@qusaiealshayeb7161
@qusaiealshayeb7161 2 роки тому
Thank for video its already smooth
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Thanks
@gomosmanalu9680
@gomosmanalu9680 2 роки тому
Hello Binary Upadates, thanks a lot for you sharing knowledge. I have a task on my class near about this video. Can i have the code so i can learn from it? Thans for your kindness and respond.
@5Komma5
@5Komma5 2 роки тому
should have bought a couple a few years ago. Can't get them right now
@mallannasugur6870
@mallannasugur6870 2 роки тому
Great..nice video..very informative
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Thank's Mallanna I'm thinking of making more video lessons around Zigbee XBee S2C Module and related technologies. Have a beautiful day.
@sivaragu9996
@sivaragu9996 3 роки тому
Nice
@pheunomic3462
@pheunomic3462 8 місяців тому
Hi BinaryUpdates, nice video. It's a big help for me in learning IoT. I hope u will read this and perhaps kindly answer my question. Can i replace the raspberry PI with Arduino Uno, and replace the component for sensor (input side) by using only NodeMCU and sensor. Or do we have to use one microcontroller for each sensor as the input of the IoT system? Thanks a lot🙂
@pheunomic3462
@pheunomic3462 8 місяців тому
i mean for each input (partial) system of the whole IoT system with one microcontroller in my case
@BINARYUPDATES
@BINARYUPDATES 8 місяців тому
HI Pheunomic, you can replace Raspberry Pi with any other device like Arduino or NodeMCU ESP8266. The only thing is it has to be connected with ZigBee module for wireless communication support. I this will help you!
@BINARYUPDATES
@BINARYUPDATES 8 місяців тому
As one microcontroller support multiple digital and analog input. You can use as many input as supported by microcontroller. The only thing is you have to incorporate them in zigbee frame properly while sending data to other end of zigbee Xbee. I hope this answers your question. Good luck and best wishes!
@daoduc99
@daoduc99 2 роки тому
Hi Binary Updates, thanks for your video. If I use DHT11 sensor, how should i fix the code to properly? Can you help me with this problem?
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
You then need to make two variable in Arduino code for temperature and humidity. Since there will be two parameter you wish to send from Arduino. You may then need to change the size of frame which in result change the checksum value. Ultimately there will be many changes but not very hard to figure out. Wish you good luck for your project. Best wishes!
@kabilan8941
@kabilan8941 2 місяці тому
Hello there! Is there any way that the coordinator can reply back to the routers in broadcast mode?
@BINARYUPDATES
@BINARYUPDATES 2 місяці тому
Yes you can program and make coordinator Zigbee to respond back in may different ways
@winterland370
@winterland370 Рік тому
Is it possible to connect zigbee, rfid, NFC protocol devices into one device to collect data wirelessly?
@BINARYUPDATES
@BINARYUPDATES Рік тому
Yes you can connect different wireless devices as long as enough input and output pins available to your Arduino or Raspberry Pi.
@diptiprakashpalai
@diptiprakashpalai Рік тому
Can a Zigbee sensor data be read in XBee module? I have Zigbee PIR Sensor of different make. I want to read its data on my Raspberry Pi. I have an Xbee module with its USB Dongle. Please guide.
@BINARYUPDATES
@BINARYUPDATES Рік тому
Yes, as long as your other PIR Sensor Node support Zigbee Protocol its possible. Wish you good luck!
@amritajoshi8729
@amritajoshi8729 2 роки тому
can you please make a video on RSSI value received at raspberrypi
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Hi Amrita, I will soon make video about reading RSSI value of Zigbee using XBee S2C Module. But you can check in XCTU and also in official datasheet of XBee S2C Module documentation for quick answer to your questions.
@samuelobonyo2458
@samuelobonyo2458 Рік тому
Hello, can i use arduino mega instead of a raspberry pi?
@BINARYUPDATES
@BINARYUPDATES Рік тому
Yes, you can use any microcontroller which has Serial UART protocol support Good luck!
@frankjay6533
@frankjay6533 10 місяців тому
Please what is the max distance between the Transmitter and the receiver if applicable...?
@BINARYUPDATES
@BINARYUPDATES 10 місяців тому
Hi Frank, usually the range of zigbee wireless communication is upto 2 miles (3200m). This is rated outdoor and in line of sight. But depends on may factors like electromagnetic noise in surrounding and other factors. I hope you find this information useful. Thanks!
@chiranthmurthy1164
@chiranthmurthy1164 3 роки тому
Can’t we use the input output pins present on xbee?
@BINARYUPDATES
@BINARYUPDATES 3 роки тому
Hi Chiranth, you can use input output pins on zigbee module. This will require you to dive deep into how to use XCTU Software effectively to make it work. Good luck. Thanks
@chiranthmurthy1164
@chiranthmurthy1164 3 роки тому
@@BINARYUPDATES Yaa I’ll try to dive deep on it as of now there are no video on xbee with new software and very less examples 😩
@petervan7372
@petervan7372 3 роки тому
does it need XBee shield to hook up XBee with Raspberry PI?
@BINARYUPDATES
@BINARYUPDATES 3 роки тому
Not necessorily, Zigbee Xbee Module with Adaptor also work well. Just make sure your zigbee adaptor has USB Connector which will make easy to connect XBee with Raspberry Pi as I've shown in video
@petervan7372
@petervan7372 3 роки тому
@@BINARYUPDATES thanks for your reply. Is it possible to use a smartphone connecting to a Raspberry PI 4 via WIFI to control XBee module (configured as coordinator) hooked up with the Raspberry, which is built as a gateway, to control another XBee endpoint connected to LED in a mesh network?
@rema3236
@rema3236 3 роки тому
Hello, Why use the Arduino to gather the temperature data when you can use the RPi to gather the data and send this to AWS? Is the Arduino redundant?
@BINARYUPDATES
@BINARYUPDATES 3 роки тому
Re Ma, the goal of this video is to show you how to make wireless sensor network using ZigBee. By the way Arduino is powerful enough to use as an IOT NOde and Raspberry Pi can be much suited as IOT Gateway along with AWS IOT Core.
@rema3236
@rema3236 3 роки тому
@@BINARYUPDATES Understood. Thank you for clarifying.
@avirupdas3494
@avirupdas3494 2 роки тому
Can I select the channel ID for communication?
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Sorry Avirup, I haven't got your question. Please elaborate so that I can help you further
@angelitotaroquin3098
@angelitotaroquin3098 3 роки тому
Around that byte data [ ] = ( what is this part, destination Mac address, what is this part, data from sensor, checksum); What are those part ? Also what's with check sum
@angelitotaroquin3098
@angelitotaroquin3098 3 роки тому
Thank you for answering, this is the most accurate information I saw bout xbee S2C
@BINARYUPDATES
@BINARYUPDATES 3 роки тому
That's a standard ZigBee Frame Format. You can get more information about it into the official datasheet of XBee S2C ZigBee Module. I hope this will be helpful. Good Luck!!
@muhammadnuansyah5500
@muhammadnuansyah5500 11 місяців тому
bg buat alat 2 end device sebagai data suhu dua ruangan berbeda, 1 router sebagai pengirim data dari 2 end device dan di terima oleh 1 koordinator dong 2 xbee sebagai end device 1 xbee sebagai router dan 1 xbee sebagai koordinator dan dapat dilihat data dari aplikasi XCTU
@shibadityachakraborty4369
@shibadityachakraborty4369 3 роки тому
can you please give me the code for raspberry pi?
@rachimaduranga2770
@rachimaduranga2770 2 роки тому
can i have your e-mail please ?
@BINARYUPDATES
@BINARYUPDATES 2 роки тому
Hi Ranchi, its umesh@binaryupdates.com
Introduction of ZigBee XBee S2C Module with Detail Explanation
8:49
BINARYUPDATES
Переглядів 12 тис.
What is ZIGBEE And How It Works?
19:00
Techi Tube
Переглядів 203 тис.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 14 млн
🐩🐕
00:25
Янчик
Переглядів 2,4 млн
Connecting ZigBee devices using zigbee2mqtt
32:15
Электроника в объективе
Переглядів 125 тис.
15 Brilliant IoT Projects for Beginners!
9:25
ToP Projects Compilation
Переглядів 753 тис.
Mastering XBEE - Lesson 1 -Getting Started
4:21
Saravanan AL
Переглядів 6 тис.
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Переглядів 277 тис.
Zigbee vs LoRa: Which One Is Better?
3:42
CDEBYTE
Переглядів 3,6 тис.
LoRa - Long-Range Radio for IoT | Arduino, ESP32, RPI Pico
1:07:58
DroneBot Workshop
Переглядів 275 тис.
How to Make Zigbee Based Wireless Home Security System
8:33
Nevon Projects
Переглядів 18 тис.
Water Your Garden with IoT - Soil Moisture Sensors
54:46
DroneBot Workshop
Переглядів 385 тис.
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 65 тис.
КУПИЛ SAMSUNG GALAXY S24 ULTRA ЗА 88000 РУБЛЕЙ!
27:29
DimaViper
Переглядів 31 тис.
ЭТО САМЫЙ МОЩНЫЙ ИГРОВОЙ СМАРТФОН ЗА 270$ 🔥
13:33
Thebox - о технике и гаджетах
Переглядів 48 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 15 млн
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 614 тис.