connect@howdiyworld.com
|

Data Transmission Using ZigBee

What is Needed?

ZigBee X 2
Arduino Uno
USB Data Cable for ZigBee X 1
Jumpers
HowDIY

BLOCK DIAGRAM

Procedure

  1. ZigBee, Arduino Uno , Hydrogen Sensor
  2. Connections
  3. Program
  4. Output

Procedure

ZigBee

ZigBee is a IEEE 802.15.4 based, low power, low data rate supporting wireless networking standard, which is basically used for two-way communication between sensors and control system. It is a short-range communication standard like Bluetooth and Wi-Fi, covering range of 10 to 100 meters.

Arduino Uno

The Arduino Uno board is a microcontroller based on the ATmega328. It has 14 digital input/output pins in which 6 can be used as PWM outputs, a 16 MHz ceramic resonator, an ICSP header, a USB connection, 6 analog inputs, a power jack and a reset button. This contains all the required support needed for microcontroller.

Hydrogen Sensor

A Hydrogen Sensor is a gas detector that detects the presence of hydrogen. They contain micro-fabricated point-contact hydrogen sensors and are used to locate hydrogen leaks. They are considered low-cost, compact, durable, and easy to maintain as compared to conventional gas detecting instruments.

Connections

  • Connect the Hydrogen sensor’s VCC to Arduino Uno’s 5V pin.
  • Connect the Hydrogen sensor’s Ground (GND) to Arduino Uno’s GND pin.
  • Connect the Hydrogen sensor’s A0(AOUT) to Arduino Uno’s A0 pin.
  • Connect the ZigBee’s Ground(GND) to Arduino Uno GND pin
  • Connect ZigBee’s VCC to Arduino Uno 3.3V pin
  • Connect ZigBee’s DOUT to Arduino Uno’s RX pin.
  • Connect ZigBee’s Din to Arduino Uno’s TX pin.
  • Give a Power Supply (9V) to Arduino Uno Directly. Receiver Side:Connect USB cable to directly Raspberry Pi.

Program

import time

import serial

ser = serial.Serial(

port='/dev/ttyUSB0',

baudrate = 9600,

parity=serial.PARITY_NONE,

stopbits=serial.STOPBITS_ONE,

bytesize=serial.EIGHTBITS,

timeout=1)

while True:

a=ser.readline()

print()

Output

When we run the code ZigBee receive data from another (TX) ZigBee and Hydrogen level is shown in  HowDIY screen.

Social media & sharing icons powered by UltimatelySocial
Facebook
Twitter
YouTube
LinkedIn
Instagram