0% found this document useful (0 votes)
23 views

IOT Application Using Raspberry Pi

The document provides instructions to build a circuit using a Raspberry Pi and Zigbee modules to transmit data wirelessly. Zigbee allows for low power data transmission over distances of 10-100 meters line-of-sight using a mesh network. A Python script is provided to establish serial communication between two XBee Zigbee modules connected to separate Raspberry Pis to verify the wireless data transmission range.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

IOT Application Using Raspberry Pi

The document provides instructions to build a circuit using a Raspberry Pi and Zigbee modules to transmit data wirelessly. Zigbee allows for low power data transmission over distances of 10-100 meters line-of-sight using a mesh network. A Python script is provided to establish serial communication between two XBee Zigbee modules connected to separate Raspberry Pis to verify the wireless data transmission range.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

IoT -Assignment-4

Statement:
Build a circuit using your Raspberry Pi that uses to transfer the data
using Zigbee protocol. Also verify the data transmission range of Zigbee.

Modules Needed :
1) Raspberry Pi2

2) XBee 1mW Wire Antenna- Series 1 (2 No:)

3) XBee Explorer Dongle (2 No:)

Zigbeee:
ZigBee is a communication device used for the data
transfer between the controllers, computers, systems, really
anything with a serial port. As it works with low power
consumption, the transmission distances is limited to 10–100
meters line-of-sight. 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. Its main applications are in
the field of wireless sensor network based on industries as it
requires short-range low-rate wireless data transfer. The
technology defined by the ZigBee specification is intended to be
simpler and less expensive than other wireless networks.

Circuit Diagram:
In the Raspberry Pi2 section open the LX terminal and type lsusb.
The response showed inside a red box indicates the presence of a usb device in
the module. Write a python script to perform Zigbee communica on which is
given below response
import serial

# Enable USB Communication


ser = serial.Serial('/dev/ttyUSB0', 9600,timeout=.5)

while True:
ser.write('Hello User \r\n') # write a Data
incoming = ser.readline().strip()
print 'Received Data : '+ incoming

The two Zigbee must be in a line of sight and check the results in the Python shell
and in the hyper terminal of the computer.
The Communication could also be established with two Raspberry Pi or with another
controller

You might also like