RS-232 Based Low Cost Data IO Card

Similar documents
Simulation Of Radar With Ultrasonic Sensors

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

Ocean Controls KT-5221 Modbus IO Module

X10 PROTOCOL FOR DATA COMMUNICATION

3-Ф VSI FOR HARMONIC IMPROVEMENT USING MICROCONTROLLER AND SIMULATION IN MATLAB

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

Power Factor Compensation Using PIC

EE 314 Spring 2003 Microprocessor Systems

FABO ACADEMY X ELECTRONIC DESIGN

Digital Monitoring Cum Control of a Power Transformer with Efficiency Measuring Meter

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Cortex-M3 based Prepaid System with Electricity Theft Control

DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER-PUMP CONTROLLER

International Journal of Advance Engineering and Research Development

MD04-24Volt 20Amp H Bridge Motor Drive

Simulation & Realization of Feeder Protection with Micro Controller

Microcontroller Based Speed Control of Induction Motor using Wireless Technology

High Impedance Fault Detection and Location in a Power Transmission Line Using ZIGBEE

Automated Irrigation System In Agriculture Using Wireless Sensor Technology

Design of Low Cost Embedded Power Plant Relay Testing Unit

GREEN RADIO: ENERGY EFFICIENT MOBILE TOWER NETWORK COMMUNICATION

M.Sinduja,S.Ranjitha. Department of Electrical & Electronics Engineering, Bharathiyar Institute of Engineering For Women, Deviyakurichi.

Microcontroller Based Electric Expansion Valve Controller for Air Conditioning System

DESIGN ANALYSIS AND REALIZATION OF MICROCONTROLLER BASED OVER CURRENT RELAY WITH IDMT CHARACTERISTICS: A PROTEUS SIMULATION

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

A Single Phase Power Factor Correction Using Programmable Interface Circuit

I. INTRODUCTION MAIN BLOCKS OF ROBOT

Visual Tracking and Surveillance System

Design and Implementation of Economical Power Factor Transducer

Available online at ScienceDirect. Measurement of Power Frequency with Higher Accuracy using PIC Microcontroller

Modern Electricity Billing System and Fuse Detection Using GSM

MODELING AND ANALYSIS OF DC MOTOR DRIVE. Dept of EEE, Karpagam College of Engineering, Coimbatore

Training Schedule. Robotic System Design using Arduino Platform

Designing with a Microcontroller (v6)

GSM Based Automated Embedded System for Monitoring and Controlling of Smart Grid

DASL 120 Introduction to Microcontrollers

Programming and Interfacing

Power Line Communication Based Fault Monitoring And Control

CATALOG. ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies

Photovoltaic Battery Charging System Based on PIC16F877A Microcontroller

Established in the year 2005, we "Kitek

WIRELESS THREE PHASE LINE FAULT MONITORING

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

Cortex-M3 based Prepaid System with Electricity Theft Control

DISTRIBUTION TRANSFORMER MONITORING AND CONTROL SYSTEM FOR REMOTE ELECTRIC POWER GRIDS THROUGH GSM

Separately Excited DC Motor for Electric Vehicle Controller Design Yulan Qi

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Index Terms IR communication; MSP430; TFDU4101; Pre setter

Monitoring the Transformer Oil Temperature and Load Sharing Using Gsm

MD03-50Volt 20Amp H Bridge Motor Drive

IMPLEMENTATION OF EMBEDDED SYSTEM FOR INDUSTRIAL AUTOMATION

CR 33 SENSOR NETWORK INTEGRATION OF GPS

Serial Servo Controller

Contents. Warranty and Disclaimer 2

Design of Joint Controller Circuit for PA10 Robot Arm

International Journal of Advance Engineering and Research Development

Multi Frequency RFID Read Writer System

Introduction. Theory of Operation

LABORATORY AND FIELD INVESTIGATIONS ON XBEE MODULE AND ITS EFFECTIVENESS FOR TRANSMISSION OF SLOPE MONITORING DATA IN MINES

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours)

Design and Implementation of High Precision Automated Online Monitoring of Distribution Transformer (OMDT) Device

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

Design and Implementation of Integrated Smart Township

ELECTRICITY BILLING BY USING POWER LINE CARRIER COMMUNCIATION

EXPERIMENT 6: Advanced I/O Programming

Microcontroller Based Protective Relay Testing System

WIRELESS SPEED CONTROL OF SINGLE PHASE AC MOTOR

GF of 9 THE GADGET FREAK FILES CASE #165. Analog Clock Measures Time in Meters

Prototype Model of Li-Fi Technology using Visible Light Communication

ISSN Vol.05,Issue.01, January-2017, Pages:

Adaptive Traffic Light Control System

Design And Application Of A Control System For DC Motors Over Power Line

TECHNICAL DATASHEET #TDAX A DC MOTOR CONTROLLER P/N: AX Variable Speed Control, Onboard I/O CAN SAE J1939, Rugged Packaging

JEPPIAAR SRR Engineering College Padur, Ch

Index Terms-Emergency vehicle clearance, Higher density, IR sensor, Micro controller, RFID Technology.

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

International Research Journal in Advanced Engineering and Technology (IRJAET)

Economical Way of GPRS Based Fully Automated Energy Metering System

Micro-controller Based Three-phase Voltage Source Inverter for Alternative Energy Source. Abstract

Figure 1: One Possible Advanced Control System

TMS320F241 DSP Boards for Power-electronics Applications

EEL4914 Senior Design. Final Design Report

AUTOMATIC ELECTRICITY METER READING AND REPORTING SYSTEM

RFID Based Toll Gate Access

Speed Rate Corrected Antenna Azimuth Axis Positioning System

To Measure Dielectric Constant of Liquid By Using PIC Microcontroller

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

International Journal of Advance Engineering and Research Development. Wireless Control of Dc Motor Using RF Communication

Wireless Sensor Network Based Precision Green House Management System

Features: 1. User friendly interfacing. 2. Controls high voltage water pumps. 3. Identification of water pumps through RFID technology.

RFID- GSM- GPS Imparted School Bus Transportation Management System

Generating DTMF Tones Using Z8 Encore! MCU

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 6, Issue 2, March 2017

SC16A SERVO CONTROLLER

ELCT 912: Advanced Embedded Systems

ADVANCED PROCESS CONTROL AND AUTOMATION USING SCADA

Interfacing Sensors & Modules to Microcontrollers

III. MATERIAL AND COMPONENTS USED

Transcription:

International Journal of Electrical Engineering. ISSN 0974-2158 Volume 6, Number 1 (2013), pp. 47-54 International Research Publication House http://www.irphouse.com RS-232 Based Low Cost Data IO Card 1 Mousam Ghosh and 2 Prof. (Dr.) Satadal Mal Trainee Officer, West Bengal Financial Corporation, West Bengal, India Email: ghosh_mousam@yahoo.co.in Head of the Department, Electrical Engineering Dept., Kalyani Govt. Engineering College. Email: satadal14@gmail.com Abstract This is the generation of Computer based Automation. Now a days many Electrical Equipments are basically computer controlled. If an equipment is designed which is computer controlled then it is too much easy to change the Set points of the equipments and also to monitor different parameter of the equipment. But computer does not give directly the data from its ports as our required format or configuration. So a Data IO Card is needed to get the computer data in parallel or our required format and also to send external data to computer. So to work with Data IO Card we need to purchase it which around Rs.10 Thousands and also facing problem to found our required configuration. That is why many of the time we don t think about interfacing between electrical equipment and computer. Here we designed a low cost RS- 232 based Data IO Card. This can do IN or OUT Data externally as our required format. This paper contains more emphasis in this topic. Keyword: Computer based Automation, Data IO Card, RS-232 based Data IO Card. 1. Features of the Input Output Card This Data IO (Input Output) Card has the following features. As per user command through the graphical software the following operation can be done. 8-bit Parallels DATA Output 8-bit Parallel DATA Input 4-Channel Analog DATA Input (10 bit)

48 Mousam Ghosh and Prof. (Dr.) Satadal Mal 2-Channel PWM Output (Different Set Point Frequency & Changeable Duty Cycle) 2. Description: This is basically a micro-controller based Data IO Card. Here used microcontroller is PIC16F877A. This micro-controller is basically communicated with computer through software. The communication is based on RS-232. Basically computer is send data through its RS232 port (COM Port), which is converted through MAX232 and reached to microcontroller port. After getting the data, micro-controller do the necessary depending on the protocol. Here the software is basically built with Visual basic 6 and the Microcontroller coding is done with Microchip MPLAB. 2.1. Protocol: The protocol means the Data Format which is used to communicate between microcontroller & computer. Here the protocol consists of one START byte, one CONTROL byte, one DATA byte & one STOP byte for communicating computer to microcontroller. Field Byte Value HEX START 1 1 1 0 1 0 1 0 EA CONTROL 1 0 C5 C4 C3 C2 C1 C0 ------- DATA D7 D6 D5 D4 D3 D2 D1 D0 ------- STOP 0 1 0 1 0 0 1 1 53

RS-232 Based Low Cost Data IO Card 49 CONTROL Value Mode Description (Lower Six Bit) C5 C4 C3 C2 C1 C0 1 1 X X X X 8-bit Parallel Data OUT Mode 1 0 0 1 X X Request for Data Input of 8-bit Parallel IN 1 0 1 0 D1 D0 Request Analog Data Input, D1, D0 is the Channel Value 0 1 0 D2 D1 D0 PWM Duty Cycle Data Out, D2 is the PWM Pin, D1, D0 is the Lower 2 bit of Duty Cycle Data & other 8-bit is the DATA byte 0 1 1 D2 X X PWM Time Period Data Out, D2 is the PWM Pin X= Don t Care After first two byte Micro-controller acknowledge by sending a single byte & after completion of STOP byte micro-controller send a byte for acknowledgement. In Request for Data Input Mode this acknowledgement bytes are used as Input DATA Bit as well as acknowledge bits. There should be a time-out value. 2.1.1. Parallel DATA OUT / IN After getting the coded value from computer micro-controller decode it and SET to its PORT and the PORT will latched with new value. After getting new value from computer it will be changed otherwise stay with previous value. After getting the DATA IN request micro-controller process the request and send the Parallel DATA from its PORT to computer. 2.1.2. Analog DATA Sense The micro-controller contains 8-channel 10-bit ADC, among which 4-channel is used. When micro-controller gets the request for Analog DATA Input, microcontroller receive the Analog DATA from its PORT depending on the channel value coming from computer. After that it will be send to computer. Resolution 1 1023 Maximum Vol for which designed 2.1.3. PWM Generation PWM means Pulse Width Modulation. Here micro-controller can generate PWM with given Time-period as well as given Duty Cycle. That is both frequency & Duty cycle is changeable. Depending on computer given Set point these both are changed. This duty cycle & Time-period does not depend upon loop delay or any other instruction cycle related delay. Max Resolution of Duty Cycle 1 1023 100%

50 Mousam Ghosh and Prof. (Dr.) Satadal Mal 3. Cost Analysis: - Component Name Approx (Rs.) PIC16F877A 160 MAX232 20 PCB 100 IC Socket (2pcs) 20 COM Port Cable (2m) 80 Others 100 Total 480 4. Applications: - 1. Parallel OUT Port can be used as Different Computer Control Load Switching. 2. Parallel IN Port can be used as Load ON/OFF Sensing by current sensing (CT method). Also to sense different Circuit Breaker s make brake status, Isolator status in substations it can be used. 3. PWM pin can be used as computer control separately excited DC motor speed control or Dimming Control of CFL with a special type of Ballast. 4. Analog DATA Sensing is much important because by its different types of analog data we can monitor in computer. E.g. Speed of a Motor by Speed to voltage transducer, any signal Sampling etc. 5. One Application of Computerized Load Switching:- In the Laboratory we done different work with this Card, one of which is computerized Load switching. Here six 12V relay with optical isolation between Parallel OUT Port & relay Coil are used. Among 8-bit we use here 6-bit for six relay signal. Some pictures are given below. Fig-2 Prototype of the Load Switching Circuit with PC interfacing circuit

RS-232 Based Low Cost Data IO Card 51 Fig-3 8-bit Parallel DATA OUT Software (developed in Visual Basic 6.0) This software is only for RS232 (COM Port) based Parallel DATA OUT. This Software is generates code depending on user & transmit to microcontroller board (Fig-2 right hand picture) & after decoding micro-controller control the Relays. If relay operate the switching is done. If we connect any load to a particular pin & if by software we ON (1) that bit then Load will get Power & remains ON. It works properly.

52 Mousam Ghosh and Prof. (Dr.) Satadal Mal 6. Flow Chart: - Comment:- With above design & protocol all the features are working properly. This

RS-232 Based Low Cost Data IO Card 53 design is much reliable because of microcontroller internal timer, the PWM time-period & duty cycle does not fluctuates with instruction cycle delay or any loop delay and the material cost of this project is around Rs.500 which is quite reasonable. It is better to put isolation when interfacing with power line. This Data IO card is very much useful to control different external device from computer. References:- [1] M. Smolnikar and M. Mohorcic, (2008) A Framework for Developing a Microchip PIC Microcontroller Based Applications, Issue 2, Volume 5, February 2008, WSEAS TRANSACTIONS on ADVANCES in ENGINEERING EDUCATION. ISSN: 1790-1979. [2] M.M. Haque, M.K. Hossain, M.M. Ali and M.R.I. Sheikh, (2011) Microcontroller Based Single Phase Digital Prepaid Energy Meter for Improved Metering and Billing System, International Journal of Power Electronics and Drive System (IJPEDS) Vol.1, No.2, December 2011, pp. 139~147. ISSN: 2088-8694. [3] K.K. Reddy, P.G. Jagadeesh, and S.V. Reddy, (2011) TRAFFIC SIGNALS GENERATION WITH BICOLOR LEDS USING PIC 18F SERIES MICROCONTROLLER, International Journal of Embedded Systems and Applications (IJESA) Vol.1, No.2, December 2011. [4] X. Wang and W. Guo, (2009) The Design of RS232 and CAN Protocol Converter Based on PIC MCU, Computer and Information Science, www.ccsenet.org/journal.html, Vol.2, No.-3, August 2009. [5] S.C. Hsiung, (2007) The Use of PIC Microcontrollers in Multiple DC Motors Control Applications, Journal of Industrial Technology, Volume 23, Number 3 - July 2007 through September 2007.

54 Mousam Ghosh and Prof. (Dr.) Satadal Mal Biography Mousam Ghosh, obtained B.Tech degree in Electrical Engineering From Jalpaiguri Govt. Engineering College and ME degree in Illumination Engineering From Jadavpur University. Presently working as a Trainee Officer (Technical) in West Bengal Financial Corporation, West Bengal, India. Prof. (Dr.) Satadal Mal, Head of the Department, Electrical Engineering Dept., Kalyani Govt. Engineering College, West Bengal, India.