International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 5, May 2012)

Similar documents

Mobile Robotic Platform to Gathering Real Time Sensory Data in Wireless Personal Area Network using Zigbee Transceiver Module


Serial Communications

How to use RFpro in Packet Mode

Using the USART Serial Communications

19.1. Unit 19. Serial Communications

AIM: To create a project for implement a wireless communication protocol on an embedded system- ZigBee.

CM5000 DATASHEET v0.1

INTELLIGENT APPLIANCE CONTROL SYSTEM USING ARM7 AND ZIGBEE

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

An Ethernet Based Control and Monitoring System Using ARM Processor

COMP2121: Microprocessors and Interfacing

Embedded Systems and Software

Unit 19 - Serial Communications 19.1

Using printf with an AVR

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

Embedded Systems and Software. Serial Communication

Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack

USART Register Description

EE318 Electronic Design Lab, Project Report, EE Dept, IIT Bombay, April GPS Tracker. Group No: B11

Design of Greenhouse Temperature and Humidity Monitoring System Based on ZIGBEE Technique Ming Xin 1,a, Wei Zhongshan 1,b,*

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Implementation of Wireless Sensor Hub to Support Protocols Interoperability

CSCE 236 Embedded Systems, Fall 2017 Homework 5

Basics of UART Communication

ATmega128 USART. Overview

Innovati s Bluetooth 100M Universal Wireless Bluetooth Module

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

Amarjeet Singh. January 30, 2012

Indriya_DP_03A14. Features. Block Diagram. XBEE based Wireless Sensor Network development platform

UART: Universal Asynchronous Receiver & Transmitter

Embedded Technology for Remote Data Logging, Monitoring and Controlling Using GSM/GPRS

An intelligent LED landscape lighting system

Robotics Training Module ABLab Solutions

Environmental Data Acquisition Using (ENC28J60)

Health monitoring of an power amplifier using an ethernet controller

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

The Atmel ATmega328P Microcontroller

Microcontroller basics

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

ECE 353 Lab 4. General MIDI Explorer. Professor Daniel Holcomb Fall 2015

ATmega128. Serial Communication (RS-232C)

ARDUINO MEGA INTRODUCTION

Wireless Communication Using Zigbee Module and Aurdino

LED Matrix Scrolling using ATmega32 microcontroller

Wireless Colour Sensing Arm Robot

Design with Microprocessors

Secured Data Transfer using ZigBee

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

KMote - Design and Implementation of a low cost, low power platform for wireless sensor networks. Naveen Madabhushi

BT2540 Bluetooth 4.0 BLE (CC2540) Module Users Manual

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

A Time Synchronized Wireless Sensor Tree Network using SimpliciTI

BASIC CHARACTERISTICS OF ZIGBEE AND SIMPLICITI MODULES TO USE IN MEASUREMENT SYSTEMS

nblue TM BR-MUSB-LE4.0-S2A (CC2540)

The Design of the Sensor Node of IOT Based on SIM20 KUANG Xinghong 1, a,yao Zheyi 1, b, Huo haibo 1, c, Li junjun 1, d, Wu yanxiang 1, e

By Ambuj Varshney & Akshat Logar

Home Automation Using Mobile Communication

Unlocking the Potential of Your Microcontroller

Architecture of Computers and Parallel Systems Part 6: Microcomputers

A Low-Cost Energy Management System That Compares Power Consumption of Electronic Home Appliances

AUTOMOBILE APPLICATIONS USING CAN PROTOCOL

Adaptive Motion Control of FIREBIRD V Robot

Microcontroller Based Data Acquisition System

Hardware Design of Smart Home System Based on zigbee Wireless Sensor Network

DRF1605H Zigbee Module 1.6km Transfer CC2530 Wireless Module UART to Zigbee

Robosoft Systems in association with JNCE presents. Swarm Robotics

Microcontroller: CPU and Memory

PD215 Mechatronics. Week 3/4 Interfacing Hardware and Communication Systems

GSM BASED HOME AUTOMATION SYSTEM

Product Brief. Model: TLM922S-P01A. Ver.1.0

Development of Coalmine Safety System Using Wireless Sensor Network

The Design of Wireless Data Acquisition and Remote Transmission Interface in Micro-seismic Signals

STUDENT NAME(s):. STUDENT NUMBER(s): B00.

Design of Underground Current Detection Nodes Based on ZigBee

Embedded System for Home Automation Using SMS

ATBRFN. Radio Frequency (RF) Based Trailer Tracking System. Datasheet (ATBRFN) 1

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

SUB-MASTER MICROCONTROLLER FOR HOME CONTROL ON FINGERTIPS

ARM 11 Based Industrial Dust Cleaner Using High Voltage Pulse Power Supply

ATmega128. Introduction

SST-2450 Wireless Modem User s Manual

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

Bolt 18F2550 System Hardware Manual

The Atmel ATmega168A Microcontroller

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

An Efficient Low Power Transmission Over Long Range in Wireless Sensor Networks for environmental studies

Home Security System with Remote Home Automation Control

CourseContents: 1.Introduction to MATLAB. 2. Handling data and data flow in MATLAB. 3. Editing and Debugging M-FILES

A Tentative Study on Ward Monitoring System based on Zigbee Technology Jifeng Liang

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Development of PROFIBUS Analog IO Using ASIC VPC3+S for Industrial Communication

WEATHER STATION WITH SERIAL COMMUNICATION

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

Information Acquisition System Based on ZigBee and ARM

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

BLE MODULE SPECIFICATIONS

Smart Wireless Temperature Data Logger

Transcription:

Enhanced Wireless Personal Area Network based Real Time motion(human) data Collection for advanced control room in Power Plants using ZigBee Transceiver Module Rajesh Singh 1, Madhu Sharma 2, Vivek Kaundal 3 1 Head, Robotics Institute R&D, University of Petroleum and Energy Studies, Dehradun (U.K), India 2 Assistant Professor, CoES, University of Petroleum and Energy Studies, Dehradun (U.K), India 3 Assistant Professor, CoES, University of Petroleum and Energy Studies,Dehradun (U.K), India 1 rsingh@ddn.upes.ac.in 2 madhusharma@ddn.upes.ac.in 3 vkaundal@ddn.upes.ac.in Abstract In many applications a communication link between two devices becomes essential. This communication can be wired or wireless. If two devices are close to each other (like a microprocessor control unit and a Memory) then wired link is preferred. However in many applications two devices are reasonably far apart. In such applications, the data transmission can be achieved using Infrared (IR) and Radio frequency (RF). Line of sight (LOS) path is required between the transmitter and receiver in IR communication and hence is not used frequently. Instead, RF communication is used in wireless sensor network as it implements a wireless link in which the waves can penetrate a limited number of walls. In such cases a wireless link is preferred. In proposed system ZigBee module is used to establish wireless link between transmitter and receiver. The proposed advanced control room can be addressed as a part of design & evaluation of Nuclear Power Plant Figure 1 Zigbee as a Receiving Node Keywords PIR, ATMEGA32, WPAN,ZIGBEE, USART, Nuclear Power Plant I. INTRODUCTION Fig.1 and Fig.2 shows the Zigbee as receiving node or coordinator node and Zigbee as transmitting node. Transmitting node is capable to collect the sensory information and with the help of Zigbee transceiver module transmit it wirelessly to receiving node. Here receiving node is capable to receive with the help of Zigbee transceiver module the information which is transmitted by transmitting node and result will be displayed on PC with the help V1.9b Bray terminal or through hyper-terminal. AVR microcontrollers also have a dedicated hardware for serial communication this part is called the USART - Universal Synchronous Asynchronous Receiver Transmitter. Figure 2 Zigbee as a Transmitting Node 467

You just have to supply the data you need to transmit and it will do the rest. Serial communication occurs at standard speeds of 9600, 19200 bps etc and this speeds are slow compared to the AVR CPUs speed. The advantage of hardware USART is that you just need to write the data to one of the registers of USART, you are free to do other things while USART is transmitting the byte. USART automatically senses the start of transmission of RX line and then inputs the whole byte and when it has the byte it informs CPU to read that data from one of its registers. The USART of AVR is very versatile and can be setup for various different modes as required by our application. It will be little complicated but more useful as it will have a FIFO buffer and will use interrupt to buffer incoming data so that we are free to anything in your main () code and read the data only when we need. All data is stored into FIFO (first in first out queue) in the RAM by the ISR II. USART OF AVR MICROCONTROLLER The USART of the AVR microcontroller has following registers: A. UDR - USART Data Register This is two register but when you read it you will get the data stored in receive buffer and when you write data to it goes into the transmitter s buffer. This important to remember it. B. UCSRA - USART Control and status Register A It is used to configure the USART and it also stores some status about the USART. There is two more of this kind the UCSRB and UCSRC. C. UBRRH and UBRRH This is the USART Baud rate register, it is 16BIT wide so UBRRH is the High Byte and UBRRL is Low byte. But as we are using C language it is directly available as UBRR and compiler manages the 16BIT access. So the connection of AVR and its internal USART can be visualized as shown in Fig.3 below. This is the USART Baud rate register, it is 16BIT wide so UBRRH is the High Byte and UBRRL is Low byte. But as we are using C language it is directly available as UBRR and compiler manages the 16BIT access. This register is used by the USART to generate the data transmission at specified speed (say 9600Bps). UBRR value is calculated according to following formula: f osc UBBR 1 16 BaudRate Where focus is your CPU frequency say 16MHz.Baud Rate is the required communication speed say 19200 bps. 468 III. Figure 3 USART Registers FUNCTION TO TRANSMIT AND RECEIVE DATA A. Initialization of USART This function will initialize the USART. void USARTInit(uint16_t ubrr_value) UBRR= ubrr_value; //Set Baud rate UCSRC=(1<<URSEL) (3<<UCSZ0); // Set Frame Format UCSRB=(1<<RXEN) (1<<TXEN); //Enable The receiver and transmitter B. Reading From The USART : This function will read data from the USART. char USARTReadChar() while(!(ucsra & (1<<RXC))) //Wait untill a data is available //Do nothing return UDR; //Now USART has got data from host and is available is buffer C. Writing to USART USARTWriteChar() void USARTWriteChar(char data) while(!(ucsra & (1<<UDRE))) //Wait untill the transmitter is ready //Do nothing

UDR=data; //Now write the data to USART buffer D. Sending and Receiving data. For sending and receiving data the steps are shown below. We begin transmission by sending character 'A' We again send one more 'A' Then we send the actual data. Now we send the inverse of data. That is all 0's are converted to 1 and vice-versa. We end the packet by sending 'Z' In this way we create a packet based transmission with error detection algorithm is shown in Fig.4. If we went to the end of algorithm successfully it means that we have got a valid data and we can use it. So in this way we saw how a byte of data is transmitted from MCU#1 to MCU#2 via air. This simple algorithm filters real data from garbage data. We will use the received data to control the IO ports of MCU, in this way we will create a simple multi channel wireless remote control. 3) Microcontroller The ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega16 achieves throughputs approaching 1 MIPS per MHz, allowing the system designed to optimize power consumption versus processing speed. IV. HARDWARE A. Transmitting Node Design The Slave node is in charge of collecting and transmitting motion. The chip CC2500and Human motion sensor PIR constitute the sub-node. CC500 is the first SOC solution which supports the ZigBee protocol all over the world. An ATMEGA 32 MCU and a 2.4GHz wireless transceiver that suits to IEEE802. 15.4 standards are integrated inside. There s an 2 KB random access memory in it, including 32 Flash storage unit, A/D converter, timer, watchdog timer,, meanwhile 1 UART interfaces and 32 programming I/O pins are contained in the chip. The following sections discuss the hardware components of the slave node. 1) Power supply unit This unit is basically designed to power up the node 1 and node 2. This provides 5 V, 500mA output to drive the nodes. 2) Sensing module The Passive Infrared Sensor (PIR) sensor module is used for motion detection. It can be used as motion detector for security systems or robotics. It works form 3.3V to5vand gives TTL output which can be directly given to microcontroller or to relay through a transistor. It consists of pyro-electric sensor and Fresnel lens that detects motion by measuring change in the infrared levels emitted by the objects. It can detect motion up to 20ft. This module is very sensitive to change in infrared levels subjected by human movement. Figure 4 Data Reception Algorithm 469

4) LCD module The LCD unit receives character codes (8 bits per character) from a microprocessor or microcomputer, latches the codes to its display data RAM (80-byteDD RAM for storing 80 characters, transforms each character code into a 5 7 dot-matrix character pattern, and displays the characters on its LCD screen. 5) Transmitting module (ZigBee) This is the radio frequency receiver module, which can facilitate the OEM designers to design their remote control applications in remote control in the quickest way. The circuit is designed with SMD components and the module size is small enough to be able to be fitted in almost any application. These modules are based on IC CC2500 by Texas Instrument. It works at frequency of 2.4GHz. When collecting temperature data with PIR through this system, the connection way between temperature sensors and CC2500of the Slave node has been shown in Fig.5 1) Power supply unit 2) Receiving module (ZigBee) 3) Microcontroller 4) LCD Display 5) Max 232(level converter)- The MAX232 is a dual driver/receiver that includes a capacitive voltage generator to supply EIA-232 voltage levels from a single 5-V supply. Each receiver converts EIA- 232 inputs to 5-V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V and a typical hysteresis of 0.5 V, and can accept ±30-V inputs. Each driver converts TTL/CMOS input levels into EIA-232 levels. 6) USB to Serial cable This provide the interfacing between coordinator node and personal computer 7) Personal Computer Data logged off on PC with the help HyperTerminal and V1.9b Terminal Fig. 6 shows the hardware design of a Master Node. Figure 5 Hardware Design of the Slave Node B. Coordinator or receiving node design The Master node plays a coordinator role in the whole net, so it should be designed to a Full Function Device, the main responsibilities of it are network establishing and maintenance, temperature data received in a wireless way, communication with the upper computer by serial port. We select CC2500 chip as the processor of the major-node, and expanding the serial communication port base on the CC2500 typical application circuit, MAX3232 chip is used to realizing level switch between TTL and RS232. Figure 6 Hardware Design of the Master Node V. SOFTWARE DEVELOPMENT The function module draw of temperature monitor software s is shown as Fig-8. After the system power up, the ZigBee network initialization software module will begin to take effect, initializing protocol stack, detecting energy of wireless network, choosing the suitable channel and starting the coordinator in order. When the initialization completed, the Slave node will be allowed to connect into the network, they can send temperature data, accordingly we can view the data from all the monitoring point through man-machine interface. Meanwhile, the upper computer will store the data into the database for querying [3].Microcontroller has been programmed to test the 470

hardware as well to achieve the goal of to store the details of human information application, which involved the following steps ( Fig.7): Coding/debugging of complete system Program is done by using AVR Studio 4.0 software shown in Fig. 7.Compiling of the code is done by using software Ponyprog2000v2.06f Figure 7 Software Development Figure 11(a) Figure 8 Coding / Debugging Figure 11(b) VI. VIEW OF THE SYSTEM Figure9 VII. RESULTS The system has been integrated and tested to function properly. The goal of real time motion data transmission between the transmitting and receiving node is achieved. The wireless transmission results are given in figure 12. The results have been obtained through Terminal v1.9b. It shows the recorded motion. 471

compared in terms of code size and power with the present work. The current consumption of Mica Mote is found around 67mA while with that of present work is around 82mA. The code size of the Mica Mote for radio application has been found 9.5 KB while for the present work it has been found 4.632KB. It can be seen from the above data that power consumption of the motes is comparable while code size of the implemented sensor mote is much less than when compared to Mica Mote. The increase in code size in Mica Mote is due to TinyOS. As a single node of network the overall system can be used as wireless security of commercial buildings, networking and some of the peculiar locations where human entrance is restricted like power plants, medical industries etc. The results obtained for power dissipation are shown in Figure 10 Result through Terminal v1.9b. Table 1. The three components that dominate power dissipation for slave sensor mote are the microcontroller, the radio and the buffer. Table 1 Results: Power Dissipation Node Design Current Consumption Master node Transceiver 2.4 GHz 60mA Miscellaneous (Driver, 12mA Connector, cable) Total 72mA Slave node Microcontroller Atmega32(Active) 19mA Transceiver 2.4 GHz 60mA Motion sensor 3mA Total 82mA REFERENCES [1] ZigBee Alliance, http://www.zigbee.org/ [2] http://www.tinyos.net/: TinyOS Operating system designed for wireless embedded sensor networks [3] J.Y. Chen, X.P. Zhou, ZigBee Wireless Communication Technology in Industrial Controls, Radio Engineering of China, Vol. 36, No. 6, pp. 61-64, 2006 [4] Liu Jiangsha, Lei Wei, Yin You, Designing of a wireless RF unit basingon CC2430, International Electronic Elements, 2007 [5] JI ZhengZhou, Li Yan, Lu Hu The Implementation of Wireless Sensor Network node Based on ZigBee - IEEE Journals 978-1- 4244-2108-4/08, 2008 [6] Alan Mainwaring, Joseph Polastre, Robert Szewczyk, David Culler,John Anderson Wireless sensor networks for Habitat monitoring - WSNA 02, September 28, 2002 The results obtained for code size are shown in Table 2. Table 2 Results: Code Size Application Code Size Program 3942B Data 690B Total 4632B VIII. CONCLUSION AND FUTURE WORK The Mica2 (MICA motes are available to the general public through a company called Crossbow sensor mote and Mica Z, which uses the TinyOS over the AVR platform, has been 472