Automatic Street Light Control System Using Microcontroller



Similar documents
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Controlling a Dot Matrix LED Display with a Microcontroller

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

GLOLAB Two Wire Stepper Motor Positioner

Low Cost Pure Sine Wave Solar Inverter Circuit

PLC Based Liquid Filling and Mixing

Fig.1 block of PFC using PIC. Index Terms:-power factor, PIC, Hardware

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

Understanding Mechatronics Engineering Using a School Project

AUTOMATIC LPG BOOKING, LEAKAGE DETECTION AND A REAL TIME LPG MEASUREMENT MONITORING SYSTEM

A Practical Guide to Free Energy Devices

Ignition Alert Anti-Theft Security System for Motorbikes with Remote Control Amit Yadav, Anushri Jha, Neelesh Gupta

Operational Amplifier - IC 741

Conversion Between Analog and Digital Signals

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

MAS.836 HOW TO BIAS AN OP-AMP

GRADE 11A: Physics 5. UNIT 11AP.5 6 hours. Electronic devices. Resources. About this unit. Previous learning. Expectations

GT Sensors Precision Gear Tooth and Encoder Sensors

Voltage/current converter opamp circuits

Chapter 19 Operational Amplifiers

Intelligent Home Automation and Security System

Transistor Amplifiers

Modern Multipupose Security And Power Management System

AP331A XX G - 7. Lead Free G : Green. Packaging (Note 2)

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Innovative Practices in Optimal Utilization of Solar Energy (Solar Tracking System)

Tire pressure monitoring

Room Temperature based Fan Speed Control System using Pulse Width Modulation Technique

3. Identification of water pumps through RFID technology. 4. Wireless control of remote water pump using RF technology.

OPERATIONAL AMPLIFIER

Bipolar Transistor Amplifiers

EMBEDDED GSM MONITOR AND CONTROL USING ANDROID APPLICATION

OPERATING PRINCIPLES FOR PHOTOELECTRIC SENSORS

Accident Notification System by using Two Modems GSM and GPS

How to Read a Datasheet

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

A Digital Timer Implementation using 7 Segment Displays

Specifications for EM VDC 4 In/4 Out and EM VDC 4 In/4 Relay Out

Smart Thermostat page 1

Miniature High-Resolution Registration Mark Sensor White LED AUTOSET Remote Setup Option

LM139/LM239/LM339/LM2901/LM3302 Low Power Low Offset Voltage Quad Comparators

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

Smart Sensing Solutions Since 1954

CHAPTER 11: Flip Flops

Advanced Car Security System Using GSM

OPTICAL COMMUNICATION BASED STEPPER MOTOR CONTROL USING PULSE WIDTH MODULATION

Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

Features. Applications

Development of a GSM based Control System for Electrical Appliances

Development of a Single Phase Automatic Change-Over Switch

Application Note SAW-Components

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

GSM Based Electrical Control System for Smart Home Application

Physics. Cambridge IGCSE. Workbook. David Sang. Second edition Cambers & Sibley: IGCSE Physics Cover. C M Y K

Wireless power meter monitoring with power theft detection and intimation system using GSM and Zigbee networks

28V, 2A Buck Constant Current Switching Regulator for White LED

Keywords: rainfall detection, rain sensor, buzzer and alarm system.

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

BUILD YOUR OWN RC SWITCH (Issue 3)

Building the AMP Amplifier

Frequency Response of Filters

Design of Wireless Home automation and security system using PIC Microcontroller

Experimental Study of Automated Car Power Window with Preset Position

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

Raghavendra Reddy D 1, G Kumara Swamy 2

Fingerprint Based Biometric Attendance System

Speed Control Relays SX2

Microcontroller Based Automated Water Level Sensing and Controlling: Design and Implementation Issue

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Development of Low Cost Private Office Access Control System(OACS)

Lab 5 Operational Amplifiers

BJT Characteristics and Amplifiers

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Accurate Measurement of the Mains Electricity Frequency

INFRARED PARTS MANUAL

Gates, Circuits, and Boolean Algebra

Radio sensor powered by a mini solar cell the EnOcean STM 110 now functions with even less light

A Guide to IR/PIR Sensor Set-Up and Testing

Improvements of Reliability of Micro Hydro Power Plants in Sri Lanka

International Journal of Advancements in Research & Technology, Volume 3, Issue 5, May ISSN THROUGH MOBILE

SIM300 GSM Module Controller For Smart Home

MODEL 5010 DUAL CHANNEL SMOKE/FIRE DETECTION MODULE

Decimal Number (base 10) Binary Number (base 2)

Diodes have an arrow showing the direction of the flow.

Wireless Security Camera

Microcontroller-based experiments for a control systems course in electrical engineering technology

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

TLP521 1,TLP521 2,TLP521 4

Phase II Design for a Multiband LMR Antenna System

Optical Sensor Interface for AFX Digital LED Timer/Counter by George Warner, Jan

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Micro-Step Driving for Stepper Motors: A Case Study

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

AN ESTIMATION OF A PASSIVE INFRA-RED SENSOR'S PROBABILITY OF DETECTION

Transcription:

Automatic Street Light Control System Using Microcontroller MUSTAFA SAAD, ABDALHALIM FARIJ, AHAMED SALAH and ABDALROOF ABDALJALIL Department of Control Engineering College of Electronic Technology/ Baniwalid Baniwalid- Libya LIBYA mustafasaad9@yahoo.com Abstract: - This paper aims at designing and executing the advanced development in embedded systems for energy saving of street lights. Nowadays, human has become too busy, and is unable to find time even to switch the lights wherever not necessary. The present system is like, the street lights will be switched on in the evening before the sun sets and they are switched off the next day morning after there is sufficient light on the roads. this paper gives the best solution for electrical power wastage. Also the manual operation of the lighting system is completely eliminated. In this paper the two sensors are used which are Light Dependent Resistor LDR sensor to indicate a day/night time and the photoelectric sensors to detect the movement on the street. the microcontroller PIC16F877A is used as brain to control the street light system, where the programming language used for developing the software to the microcontroller is C-language. Finally, the system has been successfully designed and implemented as prototype system. Key-Words: - Street light, LDR, photoelectric sensor, microcontroller, energy saving and circuit design. 1 Introduction The idea of designing a new system for the streetlight that do not consume huge amount of electricity and illuminate large areas with the highest intensity of light is concerning each engineer working in this field. Providing street lighting is one of the most important and expensive responsibilities of a city. Lighting can account for 10 38% of the total energy bill in typical cities worldwide [1]. Street lighting is a particularly critical concern for public authorities in developing countries because of its strategic importance for economic and social stability. Inefficient lighting wastes significant financial resources every year, and poor lighting creates unsafe conditions. Energy efficient technologies and design mechanism can reduce cost of the street lighting drastically. Manual control is prone to errors and leads to energy wastages and manually dimming during mid night is impracticable. Also, dynamically tracking the light level is manually impracticable. The current trend is the introduction of automation and remote management solutions to control street lighting [2]. There are various numbers of control strategy and methods in controlling the street light system such as design and implementation of CPLD based solar power saving system for street lights and automatic traffic controller [1], design and fabrication of automatic street light control system[3], automatic street light intensity control and road safety module using embedded system [4], automatic street light control system [5], Intelligent Street Lighting System Using Gsm [6], energy consumption saving solutions based on intelligent street lighting control system [7] and A Novel Design of an Automatic Lighting Control System for a Wireless Sensor Network with Increased Sensor Lifetime and Reduced Sensor Numbers[8]. In this paper two kinds of sensors will be used which are light sensor and photoelectric sensor. The light sensor will detect darkness to activate the ON/OFF switch, so the streetlights will be ready to turn on and the photoelectric sensor will detect movement to activate the streetlights. LDR, which varies according to the amount of light falling on its surface, this gives an inductions for whether it is a day-night time, the photoelectric sensors are placed on the side of the road, which can be controlled by microcontroller PIC16f877A. The photoelectric will be activated only on the night time. If any object crosses the photoelectric beam, a particular light will be automatically ON. By using this as a basic principle, the intelligent system can be designed for the perfect usage of streetlights in any place. The block diagram of street light system as shown in Fig. 1 consists of microcontroller, LDR, and photoelectric sensor. By using the LDR we can operate the lights, i.e. when the light is available ISBN: 978-960-474-339-1 92

then it will be in the OFF state and when it is dark the light will be in ON state, it means LDR is inversely proportional to light. When the light falls on the LDR it sends the commands to the microcontroller that it should be in the OFF state then it switch OFF the light, the photoelectric sensor will be used to turn ON or OFF the light according to the presence or absent of the object. All these commands are sent to the controller then according to that the device operates. We use a relay to act as an ON/OFF switch. in Fig 3. Light from the emitter strikes the target and the reflected light is diffused from the surface at all angles. If the receiver receives enough reflected light the output will switch states. When no light is reflected back to the receiver the output returns to its original state. In diffuse scanning the emitter is placed perpendicular to the target. The receiver will be at some angle in order to receive some of the scattered (diffuse) reflection. The photoelectric sensor specifications are illustrated in Table 1. Fig. 3 Photoelectric sensor Fig. 1 Block diagram of street light system 2 Automatic street light system circuit design The system basically consists of a LDR, Photoelectric sensor, Power supply, Relays and Micro controller. 2.1 LDR The theoretical concept of the light sensor lies behind, which is used in this circuit as a darkness detector. The LDR is a resistor as shown in Fig. 2, and its resistance varies according to the amount of light falling on its surface. When the LDR detect light its resistance will get decreased, thus if it detects darkness its resistance will increase. Table 1 Photoelectric sensor specifications Sensing range Sensing object Photoelectric Sensors (MC005) Supply voltage, current Output operation Output Diameter, Length Ambient temperature 3-80 cm Translucency, opaque DC 5V, 100mA Normally open DC three-wire system (NPN) 18mm, 45mm -25_70 2.3 Regulated Power Supply Usually, we start with an unregulated power supply ranging from 9volt to 12volt DC. To make a 5volt power supply, KA8705 voltage regulator IC as shown in Fig. 4 has been used. Fig. 2 LDR 2.2 Photoelectric Sensor To detect the movement in the street, the photoelectric sensors have been used in this paper, where emitter and receiver are in one unit as shown Fig. 4 Power supply regulator The KA8705 is simple to use. Simply connect the positive lead form unregulated DC power supply (anything from 9VDC to 24VDC) to the input pin, connect the negative lead to the common pin and ISBN: 978-960-474-339-1 93

then turn on the power, a 5 volt supply from the output pin will be gotten. 2.4 Relays Relays are remote control electrical switches that are controlled by another switch, such as a horn switch or a computer as in a power train control module. Relays allow a small current flow circuit to control a higher current circuit. Several designs of relays are in use today, 3-pin, 4-pin, 5-pin, and 6- pin, single switch or dual switches. Relays which come in various sizes, ratings, and applications, are used as remote control switches. Fig. 5 shows different types of relays. In this paper, the 4-pin relay will be used. Fig. 5 Different types of relays 2.5 PIC16F877A Microcontroller A microcontroller is a computer control system on a single chip. It has many electronic circuits built into it, which can decode written instructions and convert them to electrical signals. The microcontroller will then step through these instructions and execute them one by one. As an example of this a microcontroller we can use it to controller the lighting of a street by using the exact procedures. Microcontrollers are now changing electronic designs. Instead of hard wiring a number of logic gates together to perform some function we now use instructions to wire the gates electronically. The list of these instructions given to the microcontroller is called a program. There are different types of microcontroller, this project focus only on the PIC16F877A Microcontroller where it's pins as shown in Fig. 6. Fig. 6 Pin diagram of PIC16F877A microcontroller 3 Automatic street light control Circuit Design The inputs in the streets lighting system are LDR and photoelectric sensors, after dusk the light sensor will activate the system, to be ready to detect any object by photoelectric sensors, on the road to turn ON the streetlights. Lamps will be used as streetlights in this paper. In this section each circuit, which has been designed will be discussed. Firstly the LDR circuit as shown in Fig. 7, the LDR and RV 1 form one arm of the bridge, and R 1 -R 2 form the other arm. These arms can actually be regarded as potential dividers, with the R 1 -R 2 arm applying a fixed half-supply voltage to the non-inverting input of the op-amp, and with the LDR-RV 1 divider applying a lightdependent variable voltage to the inverting terminal of the op-amp. Fig. 7 LDR circuit In use, RV 1 is adjusted so that the LDR-RV 1 voltage rises fractionally above that of R 1 -R 2 as the light intensity rises to the desired trigger lever, and under this condition the op-amp output switches to negative saturation and thus drives the relay on via Q 1 and biasing resistors R 3 -R 4 when the light ISBN: 978-960-474-339-1 94

intensity falls below this level, the op-amp output switches to positive saturation. The circuit is very sensitive, being able to detect light-level changes too small to be seen by the human eye, the circuit can be modified to act as a precision dark-activated switch by either transposing the inverting and noninverting input terminals of the op-amp, or by transposing RV 1 and the LDR. Further, the Reset circuit is used to put the microcontroller into known state. Normally when a PIC microcontroller is reset, execution starts from address 0 of the program memory. Also, the oscillator circuit has been used to provide a microcontroller with a clock, so that the microcontroller can execute a program. Four photoelectric sensors are used in this paper. Their function to sense the objective that will pass through the street, at the same time give a signal to the microcontroller to turn on the lamp. The idea to save the energy, where the system have been designed to light ON the lamp in the night only and only if there is any object passes through the street. Except to that the light will be OFF. First photoelectric sensor is used to turn ON the first lighting column via microcontroller automatically when any object passes in front of it. Meanwhile the second photoelectric sensor will turn ON the second lighting column and turn OFF the first one after few delay when the object passes in front of it. The third sensor will activate the third lighting column when the object passes in front of it, and will turn OFF the second lighting column after few delays. Finally the last sensor which will be used to turn OFF the third lighting column after the object passes in front of it. Fig. 8 shows the overall system schematic circuit that has been designed in this paper to control the street lights using PIC microcontroller. The details of this circuit can be summarized as follow: 1. Pins 13 & 14 of the PIC are connected to the Oscillator circuit and Crystal which consisting of 4 MHz crystal connected to two 33 Pf capacitors. 2. Pin 1 is connected to VCC +5V through 10KΩ resistor, connected to reset bottom for resetting the circuit. 3. Pin 5 is connected to the LDR Circuit. 4. Pins 16, 17, 18, and 19 connected to the photoelectric sensors through 10KΩ resistor. 5. Pins 29, 30 and33 connected to the lamp1, lamp2 and lamp3, through 2.2KΩ resistance and transistor and Relay. 4 RESULTS AND DISCUSSIONS The project aims were to reduce the side effects of the current street lighting system, and find a solution to save power. In this project the first thing to do, is to prepare the inputs and outputs of the system to control the lights of the street. The prototype as shown in Fig. 9 has been implemented and works as expected and will prove to be very useful and will fulfill all the present constraints if implemented on a large scale. Fig.9 Prototype of street light system Fig. 8 Schematic circuit of the street light system Fig. 9 shows the street light system, from the figure it can be seen that, all lighting column are OFF, because there is no any object passes through the street, even though the weather is night. This is the idea of using the microcontroller to control each lighting column alone. When any object passes in ISBN: 978-960-474-339-1 95

front specific photoelectric sensor the lighting column which connected to it will be turn ON automatically. 5 Conclusion This paper elaborates the design and construction of automatic street control system circuit. Circuit works properly to turn street lamp ON/OFF. After designing the circuit which controls the light of the street as illustrated in the previous sections. LDR sensor and the photoelectric sensors are the two main conditions in working the circuit. If the two conditions have been satisfied the circuit will do the desired work according to specific program. Each sensor controls the turning ON or OFF the lighting column. The street lights has been successfully controlled by microcontroller. With commands from the controller the lights will be ON in the places of the movement when it's dark. furthermore the drawback of the street light system using timer controller has been overcome, where the system depends on photoelectric sensor. Finally this control circuit can be used in a long roadways between the cities. Intelligent Street Lighting System Using Gsm, International Journal of Engineering Science Invention, Vol2, Issue 3, March 2013, PP. 60-69. [7] M. Popa, C. Cepişcă, Energy Consumption Saving Solutions Based on Intelligent Street Lighting Control System. U.P.B. Sci. Bull., Vol. 73, April 2011, PP. 297-308. [8] R. Mohamaddoust, A. T. Haghighat, M. J. M. Sharif and N. Capanni, A Novel Design of an Automatic Lighting Control System for a Wireless Sensor Network with Increased Sensor Lifetime and Reduced Sensor Numbers, Sensors, Vol. 11, PP. 8933-8952. [9] L. Jasio, T. Wilmshurst, D. Ibrahim, J. Morton, M. Bates, J. Smith D. Smith and C. Hellebuyck, PIC Microcontrollers: know it all, Publishing Elsevier Science, 2008. [10] W. Bolton. Instrumentation and Control Systems, Elsevier Science & Technology Books, August 2004. [11] PIC16F87XA Data Sheet. 2003 Microchip Technology. References: [1] D. A. Devi and A. Kumar, Design and Implementation of CPLD based Solar Power Saving System for Street Lights and Automatic Traffic Controller, International Journal of Scientific and Research Publications, Vol. 2, Issue11, November 2012. [2] J. Mohelnikova, Electric Energy Savings and Light Guides, Energy& Environment, 3rd IASME/WSEAS International Conference on, Cambridge, UK, February 2008, pp.470-474. [3] M. A. Wazed, N. Nafis, M. T. Islam and A. S. M. Sayem, Design and Fabrication of Automatic Street Light Control System, Engineering e-transaction, Vol. 5, No. 1, June 2010, pp 27-34. [4] R. Priyasree, R. Kauser, E. Vinitha and N. Gangatharan, Automatic Street Light Intensity Control and Road Safety Module Using Embedded System, International Conference on Computing and Control Engineering, April 2012. [5] K. S. Sudhakar, A. A. Anil, K. C. Ashok and S. S. Bhaskar, Automatic Street Light Control System, International Journal of Emerging Technology and Advanced Engineering, Vol. 3, May 2013, PP. 188-189. [6] K.Y. Rajput, G. Khatav, M. Pujari, P. Yadav, ISBN: 978-960-474-339-1 96