DESIGN AND IMPLEMENTATION OF A MICROPROCESSOR BASED TEMPERATURE CONTROLLER WITH REAL TIME DISPLAY

Similar documents
STAR Research Journal

Design and Simulation of Automatic Temperature Control and Alert System Based PIC16F887

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

I. INTRODUCTION MAIN BLOCKS OF ROBOT

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

Automatic Fan Speed Control using Temperature and Humidity Sensor and Arduino

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

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

Instrument Cluster Display. Grant Scott III Erin Lawler Mike Carlson


Lock Cracker S. Lust, E. Skjel, R. LeBlanc, C. Kim

PIC based Frequency and RMS Value Measurement

User friendly tobacco barn heat controller for use by upcoming farmers

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

Speed Control Of Transformer Cooler Control By Using PWM

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

A Temperature Control System for Near Infrared Spectroscopic Analysis using Proportional Controller

Design of double loop-locked system for brush-less DC motor based on DSP

SPEED CONTROL OF DC MOTOR USING PWM TECHNIQUE

The Fan Company Microcontroller Fan. Prepared by. JMC Engineering

PROCEEDINGS OF EIE s 2ND INTERNATIONAL CONFERENCE ON COMPUTING, ENERGY, NETWORKING, ROBOTICS AND TELECOMMUNICATIONS. eiecon2012.

CHAPTER 3 APPLICATION OF THE CIRCUIT MODEL FOR PHOTOVOLTAIC ENERGY CONVERSION SYSTEM

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

EEL4914 Senior Design. Final Design Report

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

PROJECT DESCRIPTION DESIGN FEATURES. HARDWARE and SOFTWARE Used

DC Motor and Servo motor Control with ARM and Arduino. Created by:

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

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

Micro Controller Based Ac Power Controller

MICROCONTROLLER BASED BOOST PID MUNAJAH BINTI MOHD RUBAEE

Design and Implementation of Integrated Smart Township

Humidity Sensing Device for Soil, Atmosphere and Other Material with Temperature Intuit

Subject Description Form. Industrial Centre Training I for EIE. Upon completion of the subject, students will be able to:

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

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

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

TC LV-Series Temperature Controllers V1.01

Using Magnetic Sensors for Absolute Position Detection and Feedback. Kevin Claycomb University of Evansville

Smart eye using Ultrasonic sensor in Electrical vehicles for Differently Able.

Sensors and Sensing Motors, Encoders and Motor Control

SPEED SYNCHRONIZATION OF MASTER SLAVE D.C. MOTORS USING MICROCONTROLLER, FOR TEXTILE APPLICATIONS

Simulation Of Radar With Ultrasonic Sensors

Analysis of Solar PV Inverter based on PIC Microcontroller and Sinusoidal Pulse Width Modulation

Photovoltaic Battery Charging System Based on PIC16F877A Microcontroller

ECE Senior Design Final Report For. Scalable Regulated Three Phase Power Rectifier. May 10, 2004 Rev. 1.0

Design of PID Control System Assisted using LabVIEW in Biomedical Application

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Fuzzy Logic Temperature Control System For The Induction Furnace

OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Microcontroller Based Automatic Control Home Appliances

Sensorless Drive for High-Speed Brushless DC Motor Based on the Virtual Neutral Voltage

Microcontroller: Timers, ADC

Simulation of Solar Powered PMBLDC Motor Drive

Microcontroller Based Electric Expansion Valve Controller for Air Conditioning System

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

PCB & Circuit Designing

International Journal of Advance Engineering and Research Development

MICROCONTROLLER BASED SPEED SYNCHRONIZATION OF MULTIPLE DC MOTORS IN TEXTILE APPLICATIONS

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

PCB & Circuit Designing (Summer Training Program) 6 Weeks/ 45 Days PRESENTED BY

Current Amplifying using a Line Driver

Color Stabilization of RGB LEDs in an LED Backlighting Example Application Note

CHAPTER 6 DEVELOPMENT OF A CONTROL ALGORITHM FOR BUCK AND BOOST DC-DC CONVERTERS USING DSP

Microcontroller Based Speed Control of Induction Motor using Wireless Technology

EE152 Final Project Report

Keywords BTS, Current measurement, DSP controller, Current Shunts, TMS320F28031.

A Simple Microcontroller-Based 4-20 ma Current Loop Receiver for Sensors with Current Transmitters

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

Testing the hardware 7. Worksheet 1 - Driving the DC motor 8. Worksheet 2 - Driving the stepper motor 10. Worksheet 3 - Driving the servo motor 12

Design of Low Cost Embedded Power Plant Relay Testing Unit

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

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

EIE 528 Power System Operation & Control(2 Units)

Temperature controlling system using embedded equipment

Hashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory

Outlines. Examples. Hardware Interface. What s Embedded Systems? Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

RFID Based Toll Gate Access

CHAPTER 6 THREE-LEVEL INVERTER WITH LC FILTER

To Measure Dielectric Constant of Liquid By Using PIC Microcontroller

DLVP A OPERATOR S MANUAL

Temperature Monitoring and Fan Control with Platform Manager 2

Unit level 5 Credit value 15. Introduction. Learning Outcomes

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

Feed Forward Control of Induction Motor using AC Voltage Regulator

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

TF Electronics Throttle Controller

Monitoring Temperature using LM35 and Arduino UNO

Chapter 10 Digital PID

Standalone Instrument Cluster Display

LINE MAZE SOLVING ROBOT

Automatic Load Sharing of Transformers using Microcontroller

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

King Fahd University of Petroleum and Minerals. Department of Electrical Engineering

PICee Development System

Reconstruction of Information Technology Curriculum From Empirical Selection to Projection of Thought

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

Transcription:

EIE s 2nd Intl Conf.Comp., Energy, Net., Robotics and Telecom. eiecon2012 14 DESIGN AND IMPLEMENTATION OF A MICROPROCESSOR BASED TEMPERATURE CONTROLLER WITH REAL TIME DISPLAY 1 Samuel Ndueso John, 2 Charles Ndujiuba, 3 Oladeinde Ifedayo Oluwaseyi, 4 Ibeanu Charity Onyinye 1,2,3,4 Department of Electrical and Information Engineering, Covenant University, Ota, Ogun State Abstract: The objective of the project was to automate and control temperature for a server room. The system is allowed entry of a desired room temperature within a prescribed range and to exhibit overshoot and steady-state temperature error of less than 1 degree displaying the value in real time. The details of the design developed, based on a PIC18F452 microcontroller are described. Time, cost and energy are saved by delivering power efficiently using this system. It can be applied in industries, auditoriums, green house buildings, server rooms and nuclear facilities. It is shown that the solution requires broad knowledge drawn from several engineering disciplines including electrical, mechanical, and control systems engineering. Keywords: Temperature, Sensor, Display, Control, Microcontroller, Real Time. 1 INTRODUCTION Most people still rely on electricity as it has proven itself to be an integral part of our lives a grand sector of the nation s economy depends on power. The average temperature in Nigeria ranges from 23 degrees Celsius to 34 degrees Celsius and proper cooling is needed to make the body feel comfortable at all times. Temperature is a physical property of a body that underlies the common notions of hot and cold. Temperature plays an important role in all fields of natural science, including physics, geology, chemistry, atmospheric sciences and biology. [1] Temperature control as defined by Wikipedia.com is a process in which the temperature value of an object is taken and the passage of heat energy into or out of the object is adjusted to achieve a desired temperature. [2] The American Society of Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE) have listings for suggested temperature values and air flow rates in different types of buildings and different environmental circumstances. For example, a single office in a building has an occupancy ratio per square meter of 0.1. The room temperature recommended is 21.1 degrees Celsius (70 degrees Fahrenheit). A comfortable room temperature depends on individual needs and other factors. According to the West Midlands Public Health Observatory (UK), 22 degrees Celsius (71.6 degrees Fahrenheit) is the recommended living room temperature and 18 degrees Celsius (64.4 degrees Fahrenheit) is a good bedroom temperature. [3] Section 2 gives a more detailed statement of the problem, including performance specifications, and Section 3 describes the students design. Section 4 makes up the bulk of the paper, and discusses in some detail several aspects of the design process which offer unique pedagogical opportunities. Finally, Section 5 offers some conclusions. 2 PROBLEM STATEMENT In the Nigerian society today, prototypes of implemented designs or schematic diagrams are not recognized or carried out here, instead they are taken out of the country to be designed or implemented. A policy to protect the production of such products where Nigeria has comparative production cost advantage has to be created.

EIE s 2nd Intl Conf.Comp., Energy, Net., Robotics and Telecom. eiecon2012 15 3 PROJECT SIGNIFICANCE A temperature controller is a closed loop control system which senses the temperature of the environment and compares it with a user-fed threshold temperature value and changes the speed of fan accordingly. Such kind of product prototype is of great importance in industrial applications, as a little or abrupt change in the required temperature may bring voids in the functioning of systems or deteriorate the quality of the product being manufactured. Office Buildings, Auditoriums, Nuclear Plants and Pharmaceutical Industries, including Green House Buildings can make use of this intelligent technology. Table 3.1 shows the system specification. There are three main functions of this system: v To monitor the recent value of temperature within the set range using the temperature sensor. v To track the changes in temperature to change the speed of the fan proportionally. v To display actual temperature values in degrees Celsius. Table 3.1: Temperature Controller Specifications Temperature Sensor Range (-)70 C - 150 C Accuracy 0.5 C Operating Temperature (-)30 C - 75 C Operating Voltage 5V 4 METHODOLOGY This shows the steps involved in the design and implementation of the system. START LITERATURE REVIEW OF THE PROJECT CIRCUIT DESIGN & ASSIGN THE PORTS PIC BASIC CIRCUIT SENSOR & OUTPUT CIRCUIT TESTING PIC MICROCONTROLLER PROGRAM PROGRAM ASSEMBLE CIRCUIT AND PROGRAM TESTING COMBINING HARDWARE & SOFTWARE TESTING TEMPERATURE CONTROL SYSTEM END Figure 4.1: Methodology applied in the production of the system 5 SYSTEM DESIGN The requirements for digital temperature displays and fan control alone are enough to dictate that a microcontroller-based design is likely the most appropriate. Figure 3.1 shows a block diagram of the hardware design.

EIE s 2nd Intl Conf.Comp., Energy, Net., Robotics and Telecom. eiecon2012 16 TEMPERATURE SENSOR ADC MICRO CONTROLLER FAN re 3.1: Temperature Controller Hardware Block Diagram Figu The microcontroller, PIC18F452, is the heart of the system. It accepts inputs from a semiconductor type temperature sensor, LM35 which allows for the measurement of the current room temperature, and it is then displayed using. All these inputsand outputs are accommodated by parallel ports on the microcontroller. Finally, a pulse-width modulation (PWM) output on the microcontroller is used to drive the fan.figure 3.2 shows the schematic diagram of the output electronics and the interfacing to the PIC18F452. The display is driven by Hitachi HD44780 controllerconnected to pins RD0 RD5 (Port D) configured as output pins. A potentiometer is connected to Pin 3 (VEE) of the for changing contrast level. Finally, Pin 17 (CCP1) on Port C which connects fan operating on the principle of PWM which controls the fan speed by turning the fan on and off continuously at a switching frequency that is much faster than what would affect the load Figure 3.2: Schematic Diagram of the output interfacing with the microcontroller The fan always gets full 12V when turned on. The pulse width (length) defines the fan power.the power is the relation between the duty cycle and off time. The duty cycle is linearly proportional to the fan speed.figure 3.3 shows the relation between the PWM pulse and the fan speed. The green line indicates the fan speed. Figure 3.3: Relationship between the PWM pulse and fan speed Duty cycle is expressed in percent, 100% being fully on. It is calculated using the formula;

EIE s 2nd Intl Conf.Comp., Energy, Net., Robotics and Telecom. eiecon2012 17 The power needed to operate this system requires transformation and rectification. Full wave rectification was used to produce the necessary DC voltage required: 12V and 5V as seen in Figure 3.4. The voltage from the mains (220/240V AC) is stepped down by a transformer to 12V AC, then rectified to 12V DC by a diode bridge. The 12V DC passes through the voltage regulator to give a clean 5V DC. START Initialize Configure PORTA pins as input Configure the ADC modules Set 200ms delay Display PRESENT TEMP Set 200ms delay Read and Display current temperature in ºC Clear Display END Figure 3.5: Flowchart of the display system 6 TESTING AND ANALYSIS Figure 3.4: Schematic Diagram of the Power Supply Unit Software on the PIC18F452 implements the temperature control algorithm, maintains the temperature value display, and controls the speed of the fan in response to temperature input. Figure 3.5 shows the flowchart of the process in the display system. The hardware components were tested before being implemented on PCB, while the programming was simulated with the circuit design using PROTEUS, a virtual environment used in replicating the real life environment before implementation. The implementation and testing phase are divided into two sections which are the hardware section and the software section. Microcontroller Application Development Bread boarding of the peripheral hardware, development of microcontroller software, and final debugging and testing of the custom printed-circuit board for the microcontroller and peripherals all require a development environment which was simulated with PROTEUS.

EIE s 2nd Intl Conf.Comp., Energy, Net., Robotics and Telecom. eiecon2012 18 Printed-Circuit Board The layout of a simple (though definitely not trivial) printed-circuit board is another practical learning opportunity presented by this project. The final board layout, with package outlines, is shown in Figure 3.6. The relative simplicity of the circuit makes manual placement and routing practical. The layout software used was ARES package and the board was fabricated in-house. REFERENCES [1] Axelson, J. (1994). The Microcontroller Idea Book. USA: Lakeview Research. [2] Douglas v. Hall, (2004). Microprocessor and Interfacing, Tata McGraw-Hill, Second edition page 39, pages 273-300, pages 330-344 [3] Gregor, E. A. (2012, February 14). Functions and Advantages of Microchip PIC Microcontroller. [4] Microchip. (2006). Microchip 18F452 Data Sheet-High Performance, Enhanced Flash Microcontrollers with 10-bit A/D. U.S.A: Microchip Technology Incorporated. [5] "4-Wire PWM Controlled Fans Specification". 2005-09. [6] Barr, M. (2001, September 07). Introduction to Pulse Width Modulation. pages 103-104 [7] Corporation, N. S. (2011). LM35 Precision Centigrade Temperature Sensor. Figure 3.6: Layout for the Microcontroller Board 7 CONCLUSION In this work, the aim has been to describe an interdisciplinary, undergraduate engineering design project: a microcontroller-based temperature control system with actual temperature display. Development of the project included the use of a microcontroller with simple peripherals, the opportunity to usefully apply introductory level modeling of physical systems and design of closed-loop controls, and the need for relatively simple experimentation (for model validation) and simulation (for detailed performance prediction). Also desirable are some of the technology related aspects of the problem including practical use of switching components and temperature sensors (requiring knowledge of PWM and calibration techniques, respectively), microcontroller selection, use of development systems, and also production of printed circuit board. [8] "HD44780U". HITACHI, Semiconductor & Integrated Circuits. [9] Sandhu, H.S. (2002) Latest Edition. Hand on Introduction to Robotics pages 50-88 [10] Microprocessors and Programmed Logic (1987) Kenneth L. Short. Page 16