IOT Application Using Raspberry Pi
IOT Application Using Raspberry Pi
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
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
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