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

Similar documents
A FIRST RESPONSE MICROCONTROLLER BASED DIGITAL RADIATION SURVEY METER USING SCINTILLATION DETECTOR

PIC based Frequency and RMS Value Measurement

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

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE

I. INTRODUCTION II. LITERATURE REVIEW

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

REACTIVE POWER COMPENSATION IN DISTRIBUTION SYSTEM

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

Construction and Operation of an Electronic Automatic Transfer Switch (Ats)

By Md. Faysal Chowdhury, Sayeedul Mursalin, Mohammad Jubair Hossain & Omor Ahmed Dhali American International University, Bangladesh

Unit level 5 Credit value 15. Introduction. Learning Outcomes

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

Design & Implementation of PWM Based 3-Phase Switch-Mode Power Supply (SMPS)

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

Design of a Microcontroller-Based Push-Pull Inverter with Automatic Voltage Regulator

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

Development of Tsunami early warning embedded system with GSM alert

Auto Selection of Any Available Phase in 3 Phase Supply System

Design and Implementation of Economical Power Factor Transducer

DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER

SIMULATION OF TRANSFORMER PROTECTION USING MICROCONTROLLER BASED RELAY & MONITORING USING GSM

Seminar Report Railway Gate Control 1. INTRODUCTION

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

Implementation of Multiquadrant D.C. Drive Using Microcontroller

Design and Development of Smart. Harmonic Analyzer

Automatic Power Factor Correction by Using Synchronous Condenser with Continuous Monitoring.

ELCT 912: Advanced Embedded Systems

HOME AUTOMATION WITH SPY ROBOT AND SECURITY SYSTEM

Soldier Tracking and Health Indication System Using ARM7 LPC-2148

International Journal of Advance Engineering and Research Development

Auto-Fact Security System

International Journal of Advance Engineering and Research Development

To Measure Dielectric Constant of Liquid By Using PIC Microcontroller

GROUP NO:-19 SWARUP HARICHANDAN SATYA PRAKASH PRADHAN SUBHENDU KUMAR TARAI DHANANJAYA NAYAK SUCHISMITA DAS MANOJ KUMAR MOHANTY

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

Simulation & Realization of Feeder Protection with Micro Controller

Micro Controller Based Ac Power Controller

Generating DTMF Tones Using Z8 Encore! MCU

Design and Implementation of Digital Trigger Circuit for Converter

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

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

RS-232 Based Low Cost Data IO Card

Wireless Speed Control of an Induction Motor Using Pwm Technique with Gsm

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

GSM BASED ENERGY THEFT MONITORING SYSTEM

Speed Control Of Transformer Cooler Control By Using PWM

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

Microcontroller Based Electric Expansion Valve Controller for Air Conditioning System

In The Name Of Allah, the Beneficent the Merciful Designing a Low Cost Device to Save the Corrupted Electricity

AC POWER CONTROL USING ANDROID CELLPHONE WITH LCD DISPLAY

Using Z8 Encore! XP MCU for RMS Calculation

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

Characterizations and Performance of a Solid-State Inverter and its Applications in Photovoltaics

GRID CONNECTED PHOTOVOLTAIC SYSTEM WITH ENERGY MANAGEMENT SCHEME

Hardware Platforms and Sensors

Automatic Gas Cooking Control System based on Microcontroller

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

Microcontroller Based Automatic Control Home Appliances

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

Microcontroller Based Speed Control of Induction Motor using Wireless Technology

DESIGN OF TEMPERATURE BASED SPEED CONTROL SYSTEM USING ARDUINO MICROCONTROLLER

Sensor based Automated Irrigation System with IOT

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Number of Lessons:155 #14B (P) Electronics Technology with Digital and Microprocessor Laboratory Completion Time: 42 months

Single Phase Inverter using PIC Controller

Zig-Bee Robotic Panzer

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Electrical Engineering Department Priyadarshani College of Engineering. Electrical Engineering Department Priyadarshani College of Engineering.

Design and Implementation of Integrated Smart Township

2.0 Discussion: 2.1 Approach:

DESIGN OF A DEVICE FOR CHECKING THE CONTINUITY IN ELECTRICAL CIRCUIT

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

Design & Implementation of Controller Based Buck-Boost Converter for Small Wind Turbine

Microcontroller Based Wind Direction Measurement System

Control of Electrical Lights and Fans using TV Remote

MCU Reset and Oscillator Circuits Application Note

Design and Implementation of a Fingerprint Lock System

CHAPTER 6 IMPLEMENTATION OF FPGA BASED CASCADED MULTILEVEL INVERTER

Design and implementation of microcontroller-based automatic sequence counting and switching system

Copyright by Syed Ashad Mustufa Younus Copyright by Syed Ashad Mustufa Younus

AVR Microcontroller based remote controlled embedded system to regulate AC fan or dim AClight with power level, temperature and humidity display.

PIC Microcontroller Based Portable Spectroscopy Sensor for Liquids: A Novel Approach

The use of PIC Microcontrollers for Fault Classification of a Series Compensated Transmission Line

Microchip mtouch Solution Microchip Technology Incorporated. All Rights Reserved. Insert Class Code Here

Microcontroller Based MPPT Buck-Boost Converter

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

PLC-K506 Series FEATURES DESCRIPTION FEATURES

X10 PROTOCOL FOR DATA COMMUNICATION

AUTOMATIC ELECTRICITY METER READING AND REPORTING SYSTEM

GSM Based Automatic Wireless Energy Meter Reading System P. Harish M.Tech, S. Sandeep M.Tech,

MICROCONTROLLER BASED BOOST PID MUNAJAH BINTI MOHD RUBAEE

Induction Motor Protection using Micro Controller

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

Design of LVDT Based Digital Weighing System

Programming and Interfacing

[Ahmed, 3(1): January, 2014] ISSN: Impact Factor: 1.852

POWER GENERATION USING PIEZOELECTRIC SYSTEM FOR STREET LIGHT SYSTEM

DESIGN AND DEVELOPMENT OF A MICROCONTROLLER BASED WIRELESS SECURITY ACCESS SYSTEM

GSM BASED AGRICULTURE MONITORING SYSTEM

PT8A3514/15/16/17/18/19(A/B) Smart Iron Controller

Transcription:

DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER-PUMP CONTROLLER M.A.A. Mashud 1*, M.A.A. Tariq 1, M. Shamim Hossain 2 and Md. Serajul Islam 3 1 Department of Applied Physics, Electronics and Communication Engineering Islamic University, Kushtia-7003, Bangladesh ms.mashud@yahoo.com, tariq_iuk@yahoo.com 2 Department of Computer Science and Engineering, Islamic University, Kushtia-7003, Bangladesh shamimmalitha@yahoo.com 3 Department of Medical Physics and Biomedical Engineering, Gono Bishwabidyalay, Savar, Dhaka, Bangladesh i_serajul_islam@yahoo.com ABSTRACT A microcontroller based advanced technique was designed and developed to protect the house hold appliances, such as water-pump from fluctuation of line voltage. This device was tested with upper and lower cutoff voltages set at ±10% of the normal supply voltage (220V, AC) and with an over-load current up to 10A. The current sensor s output was monitored by the PIC12F675 microcontroller and used analog to digital protocol. A C language program was developed to control the function of microcontroller, using PCWH compiler. KEYWORDS PIC12F675 microcontroller, Over-load, Hall-sensor, Single-phase and PCWH compiler 1. INTRODUCTION The fluctuations of line voltage in our country sometimes causes serious problem to sophisticated electrical and electronic equipment. Quite often it happens that the main supply goes off, remains for a short period and then restores itself. Particularly during the storm season, it is observed that the line voltages of some phases go down to a low level and remain at the level for several hours, until some corrective measures are taken by the concerned authority. Under such erratic conditions of line voltage, in our country re-wireable fuse or miniature circuit breaker are normally used to protect different households from under and over-voltage conditions is explained in S. Islam et.al, [1]. Considering this factor, a protective device like over-voltage and over-current with time delay unit has been developed for ensuring a dependable and an effective protection to small households in year 1992 that explained in S. Islam et.al, [2]. This system is very slow and designed in transistor based. For the better performance another device has been DOI : 10.5121/ijist.2012.2405 49

developed to protect households in year 1994 which explained in S. Islam et.al, [3]. The operation speed of this device is better but it was designed in transistor based. In year 2011, another attractive device has been developed for single-phase line to protect electronic appliances from over-load which explained in M.A.A. Mashud et.al, [4]. In this design transistor module has been replaced by IC module and use Hall Effect principle. We developed an alternative approach: microcontroller based single phase water-pump controller. In our design all electronic components and ICs has been replaced by using PIC12F675 microcontroller. Easily available components and simple circuitry, the system should be beneficial in providing low-cost. 2. SYSTEM DESIGN The system is divided into four main parts: low-voltage power supply, current sensing circuit, microcontroller unit and relay driver circuit. In this unit, an alternating voltage (220V) was applied at the input of a step-down transformer that gave 12V output which was further fed to four diodes 1N 4001(A bridge Rectifier) which gave 12V DC output which was made ripple free by the use of filter capacitors. This filtered 12V DC was then fed to a relay unit for its operation. The majority of components required 5V for their operation. For this purpose, LM 7805 (3- terminal voltage regulator) was employed that converted 12V DC into 5V DC. In this way, all the components needing 5V for their operation were connected to the output of IC 7805. This voltage was fed at pin 1 of the PIC12F675 microcontroller as a supply voltage. Pin 7 of the microcontroller were control input which coupled with current sensor. A resistance of 4.7 KΩ was soldered between pin 1 and pin 4 which denoted by R 1. Also a resistance of 100 Ω was soldered at the output (pin 5) of the microcontroller which denoted by R 2. The AC output of the current sensor was converted into DC as the analog input of the microcontroller. LED1 and LED2 were used to indicate the over-voltage low-voltage level respectively. The block diagram and the complete circuit diagram of the developed system are depicted in Figure 1 and Figure 2 respectively. Figure 1: Block diagram of the developed system 50

2.1 Low-voltage Power Supply Figure 2: Complete circuit diagram of the developed system The low-voltage power supply circuit consists of transformer X, D 1, D 2, D 3, D 4, C 1, C 2, and IC1 [5]. The output of the IC1 is +5V DC. The capacitor C 2 is connected across the output of IC1 to eliminate the high frequency noise. 2.2 Current Sensing Circuit The current sensing circuit is consisting of current sensor, R 3, D 5 and C 3. One of the connecting wires of the load passes through the current sensor without interrupting it to the coil. When current passes through the load, an ac voltage is induced across the coil of the sensor. The sensor is designed in such a way that the voltage developed across the coil is proportional to the amount of load current. The output of the current sensor is rectified and filtered. 2.3 Microcontroller (PIC 12F675) unit This powerful (200 nanosecond instruction execution) and easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchip s powerful Programmable Interface Controller (PIC) architecture into a 8-pin package [6] and is compatible with the PIC12F675 and PIC12F629 devices. The PIC microcontroller is a Multipoint Control Unit (MCU) that is used in this project. MCU measures the period of the input signal and it converts into a digital voltage data. The PIC's Console Command Processor (CCP) which can also detect rising or falling edges every four or 16 pulses. PIC12F675 features 128 bytes of electrically erasable programmable read-only memory (EEPROM) data memory, self programming, 4 channels of 10-bit Analog-to-Digital (A/D) converter [7, 8]. All of these features make it ideal for an advanced level A/D applications in automotive, industrial appliances and consumer applications. Features High-Performance RISC CPU Only 35 single word instructions to learn All instructions are single cycle (1µs) except for program branches 51

Operating speed: DC - 20MHz clock input 1 k Bytes Flash Program Memory 64 Byte RAM Data Memory 128 Byte EEPROM Data Memory In-circuit serial programming Peripherals Features One 8-bit timer/counter (TMR0) with 8- bit programmable prescalar One 16 bit timer/counter (TMR1) 10-bit, 4-channel Analog-to-Digital converter High current sink/source for direct LED driver One Analog Comparator Watchdog Timer (WDT) with independent oscillator for reliable operation Special Microcontroller Features 100,000 erase/write cycle Enhanced FLASH program memory 1,000,000 erase/write cycle Data EEPROM memory typical Power saving SLEEP mode Programmable code protection Selectable Oscillator Options Self-reprogrammable under software control Flash/Data EEPROM Retention: > 40 years CMOS Technology Low power, high speed CMOS FLASH technology Fully Static Design Low Power Consumption I/O and Packages 6 I/O pins with individual direction control 8-pin DIP 2.4 Relay Driver Circuit The relay driver circuit consists of R 2, C 4, D 6, transistor Q, and relay RL. The transistor Q acts as emitter follower [9], the output of which drives the relay RL. Diode D 4 across the relay coil protects the transistor Q from the back EMF induced in the relay coil during breaks. The load current depends on the contact rating of the relay. 3. SYSTEM PROGRAM The software was divided into different sub routines and main routines. The compiler PCWH was used to develop the software [10]. 52

Figure 3: Flow chart of the system program The system program and flow chart is depicted in Figure 3 that shows the interaction of line voltage and water-pump via microcontroller. When the system is activated, it will invoke the microcontroller to reset all hardware devices in a normal and controlled mode. The current sensor will then start to sensing the current and produce the corresponding voltage data that records the microcontroller. If the collected voltage data is less than the setting value, the relay turns off; LED2 indicates light and the device off. Also, if the collected voltage data is high than the setting value, the relay turns off, LED1 indicates light and the devices also off. Otherwise, the device will be switched ON automatically and the system will complete automatic operation. 4. RESULTS AND DISCUSSION The system was successfully developed and its performance was strong. The system employed a local, low-cost PIC12F675 microcontroller. To avoid the complex comparator and A/D converter circuit, we used an internal comparator and A/D converter for the microcontroller. Furthermore, the internal frequency successfully avoided the external oscillator circuit. Thus the entire system function depends on the developed software. The circuit design is simple and compact. The low voltage power supply unit was designed for highly regulated output to bias the microcontroller. In this design we had varied the input ac voltage from 198 volt to 248 volt but the output was remain constant at 5 volt DC. The output waveform of this unit is depicted in Figure 4. 53

Figure 4: Output of the low-voltage power supply The current sensor with its circuitry was designed in such a way, that it provided 2.5 volt dc to 5 volt dc for the line voltage fluctuation between ±10% of 220 volt. The output level of this unit is shown in Figure 5. Figure 5: DC output level of the current sensor The performance of the developed system was studied by comparing its accuracy, reliability and cost. The working of this device was similar to that on which M.A.A. Mashud et. al., worked [4]. A series of large-scale laboratory experiments were conducted with the help of this unit, with satisfactory results. This unit was used with single phase water-pump which had sound stability, operation speed and accuracy. The comparative study of the developed system in terms of features and accuracy with the conventional system is depicted in table 1. It can be seen from Table 1 that the developed system has very good accuracy. The cost of the system which is significantly lower compared to other systems with similar features is another advantage of this system. 54

Table 1. Comparisons of the developed system with the conventional system Transistor Based IC Based Developed System System [3] System [4] Module Transistor IC Microcontroller Operation Type Analog Analog Digital Accuracy ±0.5% ±0.2% ±0.05% Operation Speed Slow Medium High Circuit design Complex Simple Very Simple 5. CONCLUSION The developed system was put under a series of tests for ascertaining its performance as a protective device and very satisfactory results were obtained. When the load current exceeds 10A, the load was turned off. The upper and lower level responses of this device were also found to be sufficiently quick, so that the safety of the equipment protection by the device under any undesired transient condition of the main supply was ensured. This device had a very high sensitivity. It was also simple in design, reliable in operation and cost competitive with any other product available in the market. From the above analysis, it is concluded that this device can easily protect electrical appliances against fluctuation of line voltages and over load current. REFERENCES [1] M. S. Islam and M. A. Zulquarnain, (1991), Journal of the Bangladesh Electronics Society, pp 31. [2] M. S. Islam and M. Kamruzzaman, (1992), Journal of the Bangladesh Electronics Society, Vol.2,No. 1, pp 29. [3] S. Islam, (1994) Nuclear Science and Applications, Vol. 3, No. 2. [4] M.A.A. Mashud, E. Haque and S. Islam, (2011) Jahangirnagar Physics Studies, Vol. 17, pp 151 ISSN 1999-6632. [5] V. K. Mehta and R. Mehta, (2007) Principles of Electronics, S. Chand & Company Ltd. New Delhi, pp 438. [6] http:/ww1.microchip.com/downloads/en/devicedoc/41190c.pdf, 2 [7] M. A. Mazidi, R.M. Kinlay & D. Causey, (2008) PIC Microcontroller, Prentice Hall Inc.,pp 24. [8] J. B. Peatman, (1997) Design with PIC microcontroller, Prentice Hall Inc., pp 2 [9] B.L. Theraja and A.K Theraja, (2002) A Textbook of Electrical Technology, S. Chand & Company Ltd. New Delhi, pp 2105. [10] PCWH Compiler IDE version 3.43, www.ccsinfo.com Authors Md. Abdullah-Al-Mashud (M. A. A. Mashud) was born on Nov.15, 1980 in kushtia, Bangladesh. He received the B.Sc (Hons) degree and M.Sc degree in Applied Physics, Electronics and Communication Engineering (APECE) from Islamic University, Kushtia, Bangladesh in 2003 and 2004 respectively. He works as a lecturer in the department of APECE, Islamic University, Bangladesh. His current interest is microprocessor / microcontroller applications in control, automation, medical instruments, environmental monitoring, low cost electronic systems, Medical Image: Segmentation, Processing and assessment. His work has produced 08 peer-reviewed scientific International and National Journal papers. He has published 04 papers in 55

National and International Conferences. Prof. Md. Serajul Islam was born in Panchagar, Bangladesh. He received the M.Sc degree in Physics from Rajshahi University, Bangladesh. He was a Chief Scientific Officer and Director in the Institute of Electronics, AERE, Atomic Energy Commission, Savar, Bangladesh. Now he is a Professor in the department of Medical physics and Biomedical Engineering, Gono Bishwabidyalay, Saver, Bangladesh. His work is design, development and analysis of electronic instruments and reactor control. His work has produced nearly 45 peer-reviewed scientific papers and 02 patents. M. A. A. Tariq was born on Dec.14, 1989 in Meherpur, Bangladesh. He a B.Sc (Hons) final year student in the department of Applied Physics, Electronics and Communication Engineering (APECE), Islamic University, Kushtia, Bangladesh.. His current interest is automation and microcontroller based system design. M. Shamim Hossain was born on Oct. 21, 1982 in kushtia, Bangladesh. He received the B.Sc (Hons) degree and M.Sc degree in Computer Science and Engineering (CSE) from Islamic University, Kushtia, Bangladesh in 2006 and 2007 respectively. He works as a lecturer in the department of CSE, Islamic University, Bangladesh. His current interest is microprocessor / microcontroller based system design and wireless networking. His work has produced 06 peer-reviewed scientific International Journal papers 56