Design and Construction of Microcontroller Based Charge Controller for Photovoltaic Application



Similar documents
Design and Construction of Variable DC Source for Laboratory Using Solar Energy

Solar Energy Conversion using MIAC. by Tharowat Mohamed Ali, May 2011

Advanced Car Security System Using GSM

SIMPLE TECHNIQUES TO IMPROVE SOLAR PANEL EFFICIENCY USING A MICROCONTROLLER OR SOC

What is PWM? Why is there so much excitement about PWM?

Design Infrared Radar System

SOLAR PV-WIND HYBRID POWER GENERATION SYSTEM

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

EPSOLAR LS0512R / LS0524R. Solar Light Controller INSTRUCTION MANUAL. Please read this manual carefully before using the product!

Smart DC Micro-grid for Effective Utilization of Solar Energy

Power Supplies. 1.0 Power Supply Basics. Module

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

A Practical Guide to Free Energy Devices

Charger Output AC Ripple Voltage and the affect on VRLA batteries

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Renewable Energy Test Station (RETS) TEST PROCEDURES FOR SOLAR TUKI

The full wave rectifier consists of two diodes and a resister as shown in Figure

Actualization of Charging Direct Current Electric Fan with Solar Energy

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Mohamed First University Faculty of Science, dépt de Physique, laboratory LETAS, Oujda, Maroc. (2)

Small Scale Renewable Energy Control Systems

Chapter 22 Further Electronics

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.

12 Volt 30 Amp Digital Solar Charge Controller

The Basics of Solar Power for Producing Electricity An excellent place to start for those just beginning. The basics of solar power: 1000 W/m²

AN ULTRA-CHEAP GRID CONNECTED INVERTER FOR SMALL SCALE GRID CONNECTION

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Solar Mobile charging Solutions

Creating a Usable Power Supply from a Solar Panel

Conversion Between Analog and Digital Signals

Solar Controller / Battery Charger User s Manual

Design and Implementation of an Isolated Solar Photovoltaic Power Generation System

Implementing Energy Harvesting in Embedded System Designs

Solar Powered Wireless Sensors & Instrumentation: Energy Harvesting Technology Reduces Operating Cost at Remote Sites

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16400(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JAN.19,2000 TOTAL PAGE : 7 APPROVED BY:

LS1024B / LS2024B/ LS3024B. Solar Charge Controller USER MANUAL

Current Loop Application Note 1495

A Stable DC Power Supply for Photovoltaic Systems

BEIJING EPSOLAR TECHNOLOGY CO.,LTD.

How To Control A Battery Cell Phone With A Battery Power Control System

Application Note AN-1068 reva

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16290(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JUL.03,2001 TOTAL PAGE : 7

46120-F0 Solar Energy Training System

High voltage power supply (1 to 20 KV)

Design and implementation of a modified DC- DC converter suitable for renewable energy application

Design of Four Input Buck-Boost DC-DC Converter for Renewable Energy Application

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

Additional Solar System Information and Resources

Fox-2 MPPT Unit Testing

CURRENT ELECTRICITY INTRODUCTION TO RESISTANCE, CAPACITANCE AND INDUCTANCE

Diode Applications. As we have already seen the diode can act as a switch Forward biased or reverse biased - On or Off.

0.9V Boost Driver PR4403 for White LEDs in Solar Lamps

Charge Regulator SCR 12 Marine

PAM2804. Pin Assignments. Description. Applications. Features. Typical Applications Circuit 1A STEP-DOWN CONSTANT CURRENT, HIGH EFFICIENCY LED DRIVER

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Micro-Step Driving for Stepper Motors: A Case Study

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

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

STUDY OF CELLPHONE CHARGERS

Solar Powered Charging Station

Understanding Mechatronics Engineering Using a School Project

PIC BASED SOLAR CHARGING CONTROLLER FOR BATTERY

12 Volt 30 Amp Digital Solar Charge Controller Installation & Operation Manual

TruPower-Portable-500W. Solar Starter kit

HD44780-Based LCD Modules. Introduction to the LM018L

NC2000 Charge Controller for Nickel-Cadmium and Nickel-Metal Hydride Batteries

Section 19. Voltage Reference

Modeling and Analysis of DC Link Bus Capacitor and Inductor Heating Effect on AC Drives (Part I)

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

Peak Power Tracker Circuit Description (from

LEAD CRYSTAL. User Manual. Valve-regulated lead-crystal batteries Energy storage Cells

SOLAR POWER - THE NEW WAY TO RV!

High Intensify Interleaved Converter for Renewable Energy Resources

View Star series. Solar Charge Controller INSTRUCTION MANUAL

A Solar Power System for Electric Vehicles with Maximum Power Point Tracking for Novel Energy Sharing

CHAPTER 5 PHOTOVOLTAIC SYSTEM DESIGN

Design, Analysis, and Implementation of Solar Power Optimizer for DC Distribution System

S10I / S20I / S30I Solar Light Controller USER MANNUAL

Episode 126: Capacitance and the equation C =Q/V

Design of an Auxiliary Power Distribution Network for an Electric Vehicle

Dansk Solenergi RI TLF

Power Management: SCM

Accurate Measurement of the Mains Electricity Frequency

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

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

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

Current Digital to Analog Converter

CHARGING METHODS. Methods of Charging the Valve Regulated (Sealed) Lead-Acid Battery. 19 Valve Regulated (Sealed) Lead-Acid Batteries

Energy Storage System for Dc Micro Grid Using PIC Microcontroller

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

SERIES-PARALLEL DC CIRCUITS

Pulse Width Modulated (PWM) Controller for 12 Volt Motors

Power Electronics Lab

ENERGY HARVESTED ELECTRONIC SHELF LABEL

"Charging Lithium-Ion Batteries: Not All Charging Systems Are Created Equal"

Designing Applications with Lithium-Ion Batteries

Transcription:

IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-issn: 2278-1676,p-ISSN: 2320-3331, Volume 9, Issue 1 Ver. I (Jan. 2014), PP 92-97 Design and Construction of Microcontroller Based Charge Controller for Photovoltaic Application 1 F. Sani, 2 H.N Yahya, 1 M. Momoh, 1 I.G. Saidu and 1 D.O. Akpootu 1 Department of Physics, Usmanu Danfodiyo University Sokoto, Nigeria 2 Sokoto Energy Research Center, Sokoto, Nigeria. Abstract: This paper describes a microcontroller based charge controller using PWM (pulse width modulation) technique. This PWM technique is employed by the PIC16F877 microcontroller. The microcontroller is to charge a 12V battery using 80W solar panel. The main feature of this charge controller is dusk to dawn operation; it switches on the load (the light) at dusk (evening) and switches off at dawn (morning). During day time, the load is disconnected from the battery and the battery is to be recharged with current from the solar panel. When the battery is at full charge (14.7V), the charging current becomes pulsed interrupted by the PIC16F877. Battery Full will be displayed on the liquid crystal display (LCD). An inbuilt analog to digital converter (ADC) is used to determine voltage level of the battery and the solar panel voltage. The hardware design, software implementation, and flow chart of the program are also discussed in this paper. Keywords: Charge controller, battery, microcontroller, pulse width modulation, photovoltaic. I. Introduction As the source of conventional energy deplete day by day, resorting to alternative sources, energy like solar energy has become the need of the hour. Solar energy can be used to generate power in two-ways; solar thermal conversion and solar electric (photovoltaic) conversion. Solar thermal is employed in heating of fluids to produce steam to derive turbines for large scale centralized generation while solar electric (photovoltaic) which is considered in this paper, is the direct conversion of sunlight into electricity through photocells. Photovoltaic (PV) production becomes double every two years, increasing by an average of 48 percent each year since 2002 [2]. For this reason, it has become the world s fastest growing energy technology [4]. A charge controller is an essential part of nearly all power systems that charge batteries, whether the power source is PV, wind, hydro e.tc [3]. A PV system consists of a PV array which converts sunlight to direct current electricity, a control system which regulates the battery charging and operation of the load, energy storage in the form of secondary batteries and loads. A charge controller is one of the functional and reliable components of PV system. The main function of a charge controller in a PV system is to keep batteries properly charged and safe for the long term, and to protect it from deep discharging [3], without a charge controller, the battery will overcharge. Absence of charge controller in PV system results in high maintenance cost including frequent battery replacement. Hence, a charge controller is important to prevent battery overcharging excessively, over discharging, reverse current flow at night and to prolong the life of the batteries in a PV system [3]. When a lead acid battery is charged, its voltage rises. When the charge current is first turned on, the internal resistance of the battery resists the current, and the voltage immediately rises above the open circuit voltage. Towards the end of charge, the voltage rises sharply as the battery begins to gas. Gassing is the decomposition of the liquid water into hydrogen and oxygen gasses, and also called electrolysis [1]. If gassing is left to continue for a long period of time, the battery is overcharged, resulting in accelerated corrosion of the battery plates, loss of electrolyte, and physical damage of the plates. The aim of this paper is to design and construct a microcontroller based charge controller for PV application, capable of charging a 12V battery using 80W solar panel. The hardware and software design are adopted. II. Materials And Methods Hardware design In this study, we minimize components count using a programmable PIC microcontroller for all the switching actions of the lighting system. The system design is based on the block diagram shown in figure 1. The detail design procedures are then presented in each of the block. 92 Page

Figure 1: Block diagram of the system Software design The microcontroller operated according to the program written inside its memory. The main objective of the program is to give instruction, control and coordinate the PIC16F877 to execute various tasks, such as to control battery voltage. Control has been developed according to flow chart shown in figure 2.The chart represents the software development algorithm. Based on this chart a program was developed in C language and debugged. The software program was then loaded into the PIC16F877 using a PIC programmer. 93 Page

1 2 3 4 5 6 7 8 9 10 11 12 13 14 VSS VDD VEE RS RW E D0 D1 D2 D3 D4 D5 D6 D7 SOLAR PANEL 2 GND Design And Construction Of Microcontroller Based Charge Controller For Photovoltaic Application System modeling After power on, using switch SW, the microcontroller reads the battery voltage with the help of inbuilt ADC and displays the charging condition of the battery on LCD. It monitors the input signal of the ADC and activate the load or charging Relay RL 1. +5V is used as Vref of the ADC, the output voltage of the ADC should not exceed +5V. A potential divider is used at pin2 and pin4 of the microcontroller using resistors R 2, R 3, R 4, R 5,R 6, and R 7 to scale down the voltage from 0V 5V. When the solar panel voltage is present, the current flows from the solar module throgh diode D 1. The diode is preventing back currents flowing from the battery to the solar panel. The microcontroller activate the relay RL 1 connecting the solar panel to the battery through a transistor Q 2 and diode D 3. The diode D 3 helps dampen transient spikes that can be generated by the relay s coil. The battery will continue charging, to full charge (14.7V). When the battery is fully charged the microcontoller interrupts the charging current and start 5 minute timer. At this stage Batteryy full will be displayed on LCD based on the regulator U 2 which regulated the constant voltage value to be used by the PIC and the LCD. Diode D 4 protect reverse of the regulated voltage back to the battery. Capacitors C 1 and C 2 at the output and input of the 7805 regulator U 2 are used as ripple rejection and also to prevent debouncing of the switch. Atimes the switch cannot make smooth and clean contact but rather oscillate between low and high until settle, such oscillation will be prevented by the capacitors. In the absent of solar radiation, the microcontroller senses this through ADC and activate the load by switching on MOSFET Q 1 via a transistor Q 3 from pin 33 of the microcontroller and load on message as well as the battery s voltage are displayed on the LCD. In this mode, the microcontroller monitors for low battery. When the battery voltage drops below 9.4Volt the microcontroller turns off MOSFET Q1 and Battery low message is dispalyed. Figure 3 shows the circuit of the microcontroller based charger. B1 19V D1 RL1 NTE-R24-24 SW1 SW-SPST D2 1 U2 7805 VI D4 VO 3 Q2 2N2222 R8 4.7K D3 B 12V C2 100u C1 100u R2 20K R6 20K LOAD Q1 R9 IRFP064N LCD1 LM016L Q3 TIP41 R1 4.7K U1 33 RB0/INT OSC1/CLKIN 34 RB1 OSC2/CLKOUT 35 RB2 MCLR/Vpp/THV 36 RB3/PGM 37 RB4 RA0/AN0 38 RB5 RA1/AN1 39 RB6/PGC RA2/AN2/VREF- 40 RB7/PGD RA3/AN3/VREF+ RA4/T0CKI 15 RC0/T1OSO/T1CKI RA5/AN4/SS 16 RC1/T1OSI/CCP2 17 RC2/CCP1 RE0/AN5/RD 18 RC3/SCK/SCL RE1/AN6/WR 23 RC4/SDI/SDA RE2/AN7/CS 24 RC5/SDO 25 RC6/TX/CK 26 RC7/RX/DT 13 14 1 2 3 4 5 6 7 8 9 10 R4 R3 R7 R5 R10 100R 19 20 21 22 27 28 29 30 RD0/PSP0 RD1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP7 PIC16F877 Figure 3: Circuit of the microcontroller based charger 94 Page

The complete list of the components used is shown in table 1. Table 1: List of the components used S/N Component Quantity Value 1 Resistor 5 2 Resistor 2 20k 3 Resistor 2 4.7k 4 Resistor 1 100Ω 5 Capacitor 2 100µF 6 Diode 3 IN4007 7 Relay 1 NTE-R24-24 8 Transistor 2 2N2222A 9 MOSFET 1 IRFP064N 10 LCD 1 LM 016L 11 Switch 1 SW-SPST 12 Microcontroller 1 PIC16F877 13 Voltage Regulator 1 7805 III. Results And Discussion Charging test The test was conducted at the PV demonstration room, Sokoto Energy Research Centre (SERC) on March 7, 2013 from exactly 7:00AM to 13:30PM. In conducting the charging test, 80W solar module (LM08OAAOO), was used to provide charging voltage. A digital multimeter was used to measure the initial voltage of the battery as well as solar panel voltage. Another digital meter was connected across the solar module to measure the solar panel current. With the connection completed, the charge controller was switched on. A message reading charging as well as the battery voltage were displayed on the LCD. The solar panel voltage charging voltage were noted and recorded at the beginning of the charging experiment. Subsequently, the values were recorded after every 30 minutes interval. All the values obtained were then tabulated. The experiment continued until the battery became fully charged. At this point the LCD displayed Battery full. The result obtained during charging test is presented in table 2. The measured parameters included among others, battery voltage (V 1 ), PV array voltage (V 2 ), PV array current (I) and LCD voltage (V 3 ). The data were taken at 30 minutes interval. The result is tabulated in table 2. Table 2: Charging test result Time (min) V 1 (V) V 2 (V) I (A) V 3(V) Load Status 7:00 AM 13.01 13.67 0.02 12.9 Off Charging 7:30AM 13.06 13.80 0.17 13.0 Off Charging 8:00AM 13.14 13.02 0.33 13.1 Off Charging 8:30AM 13.25 14.06 0.48 13.2 Off Charging 9:00AM 13.35 14.19 0.69 13.04 Off Charging 9:30AM 13.48 14.48 1.56 13.16 Off Charging 10:00AM 13.63 14.74 2.54 13.9 Off Charging 10:30AM 13.75 14.86 2.59 14.0 Off Charging 11:00AM 13.90 14.99 2.48 14.2 Off Charging 11:30AM 14.10 15.18 2.34 14.3 Off Charging 12:00PM 14.29 15.34 12.18 14.5 Off Charging 12:30PM 14.42 15.47 2.05 14.6 Off Battery full 13:00PM 14.51 15.53 1.95 14.7 Off Battery full 13:30PM 14.50 15.49 1.70 14.7 Off Battery full The charging test for the battery voltage as a function of time is shown in figure 4. Figure 4: Charging test of battery voltage against time 95 Page

Discharging test result The voltages for the discharging test were recorded after 15 minutes intervals. The parameters recorded are: battery voltage (V 1 ), LCD voltage (V 2 ) and load status. The results are tabulated in table 3, while a plot of the discharging pattern is in figure 5. Table 3: Discharging test result Time V 1(V) V 2(V) Load status 2:30 pm 12.5 12.2 On 2:45 pm 12.3 12.0 On 3:00 pm 12.1 11.9 On 3:15 pm 11.9 11.5 On 3:30 pm 11.1 10.9 On 3:45 pm 9.8 9.6 On 4:00 pm 9.5 9.4 Off Figure 5: Discharging test graph The results of charging and discharging gives high values of coefficient of determination, R 2 the data excellently fit. this implies that Accuracy Test Result The accuracy test was deduced from charging test experiment. The result of the comparison of the standard digital voltmeter and that of the device is tabulated in the table 4. The parameters included are: Standard Digital Voltmeter Voltage (V 1 ) and the LCD Voltage (V 2 ). Table 4: Accuracy test result V1 (volts) V2 (volts) 13.01 12.9 13.06 13.0 13.14 13.1 13.25 13.2 13.35 13.4 13.48 13.6 13.63 13.9 13.75 14.0 13.90 14.2 14.10 14.3 14.29 14.5 14.42 14.6 14.51 14.7 14.50 14.7 Figure 6: Accuracy test graph 96 Page

From table 2, it could be seen that the panel voltage was 13.67V while that of the battery was 13.01V. This provides the potential difference necessary for the flow of current from the panel to the battery. At this point the LCD displayed the message charging and the value of the battery voltage while the load was switched off. This agreed with the design condition which stipulated that the charging takes place only during the day when there is no need for the lamp to be ON. It is seen that the panel voltage increased steadily from 7:00AM with a value of 13.67V and peaked at 13:00pm with a value of 15.53V, it then decreased gradually to 15.49V at 13:30pm. This is as expected as the sun shine hour of Sokoto is normally peaked around this time. The panel current which is a function of the solar radiation was also noted to rise gradually from 0.02A at 7:00AM to 2.05A at around 12:30pm then fall off gradually after then. At 12:30PM, the charge controller displayed Battery full on the LCD and even though the solar panel was still connected, the displayed battery voltage remained steady at 14.7V around 13:00pm and 13:30pm. The microcontroller has therefore interrupted the flow of charges from the solar panel to the battery thereby saving the battery from the harzadous effects associated with battery over charging. It was also noted that as long as there was voltage from the panel, the load remained off ensuring that power is not wasted during the day. From table 3, the voltage of the battery decreased gradually from a maximum value of 12.5V to a minimum value of 9.5V. The LCD also displayed Load on during the process of discharging. The load went off immediately when the battery reached 9.5V. By so doing the charge controller ensured that the battery is not discharged too deep to damage it The results obtained for voltage accuracy test as tabulated in table 4 show that there were small deviations between the two voltages. The measured voltages are therefore likely to have error of 0.05 to ±0.12 from the actual value. The possible reason for slight difference in the two measured voltages is that the output of the solar potential divider was rounded up to 5V. The ADC would read these voltages and convert them to an 8- bit number and ADC conversion involves quantization of the input, so it might introduced a small amount of error known as quantization error. IV. Conclusion In Nigeria today, we have a very disturbing scenario where the cost of energy from the conventional source for generating electricity continues to increase and the need to turn to renewable energy like solar energy becomes the only viable and sustainable alternative or solution. The microcontroller based solar charge control technique presented in this paper prevents overcharging by reducing the flow of energy in to the battery when the battery approaches a full charge state. During day time, the load is disconnected from the battery and the battery is to be recharged with the current from the solar panel. The microcontroller needs to know the presence of the solar panel to decide whether the load is to be connected or disconnected from the battery or whether the battery should be in charging mode or discharging mode. A simple sensor circuit is built using a potential divider. The relay RL 1 connects the solar panel to the battery through diode D 1. This allows charging current from the panel to flow into the battery, when the battery reaches full charge the microcontroller interrupts the charging current. In the absence of solar radiation, the microcontroller activates the load by switching on the MOSFET via a transistor. When the battery voltage drops to 9.5V, the microcontroller turns off the load to avoid overdischarge. The system displays the battery status on a liquid crystal display (LCD). References [1] Enric, P.U and Michael M.D (1998): Recommended Practices for Charge Controllers. Renewable Energy and Hybrid System Group CANMET Energy Diversification Research Laboratory. [2] Gazi, S.M., Muhaiminul, I and Salim, K.M (2009): Design and Construction of Microcontroller Based Maximum Power Point PWM Charge Controller for Photovoltaic Application. Development in Renewable Energy Technology (2009) 1 st International Conference, Pp. 1-4. [3] Jaya, N. I (2012): PIC Based Solar Charging Controller For Battery. International Journal of Engineering Science and Technology (IJEST), Pp 384. [4] Vikas, K. (2012): Microcontroller Based solar charge controller for power Application. International Journal of Electronics Communication and Computer Engineering. Volume 3, Issue 1. 97 Page