A DIY solar lantern circuit is an excellent beginner project that teaches you practical solar energy concepts while producing something genuinely useful. Solar lanterns are in wide use across rural India, replacing kerosene lamps and providing clean, free lighting at night. This guide covers a complete solar lantern circuit using a 6V solar panel, NiMH battery pack, and efficient LED driver with automatic day/night switching.
Table of Contents
- Circuit Overview and Operating Principle
- Component List and Specifications
- Battery Charging Circuit Design
- LED Driver Circuit
- Automatic Day/Night Switching
- Assembly and Housing
- Troubleshooting Guide
- Frequently Asked Questions
Circuit Overview and Operating Principle
The solar lantern operates on a simple principle: during the day, the solar panel charges the NiMH battery through a charging circuit with overcharge protection. At night (or low light), a light-sensing circuit detects darkness and automatically switches on the LED driver, powering the lamp. A battery protection circuit prevents deep discharge damage.
A 6V, 1W panel (Voc ≈ 7.2V, Isc ≈ 200mA) is ideal for charging a 4-cell NiMH pack (4.8V, 2500mAh). This combination provides 6-8 hours of LED lighting per night with a full day’s charge.
Component List and Specifications
Power Components
- Solar panel: 6V, 1W (Voc 7.2V, Isc 200mA) – polycrystalline, available on Amazon India for Rs 150-250
- NiMH battery: 4 x AA NiMH (4.8V nominal, 2500mAh) or 1.2V x 4 = 4.8V
- LED: 1W high-brightness white LED (Cree/Epistar, 100 lm typical)
Electronic Components
- IC1: LM358 dual op-amp (for light sensor and charge control comparators)
- IC2: LM317 adjustable voltage regulator (charging current limiter)
- T1: BC547 NPN transistor (LED driver switch)
- T2: BC557 PNP transistor (charge control switch)
- D1: 1N5817 Schottky diode (blocking diode, prevents battery discharge through panel at night)
- D2: 1N4148 signal diode (reference for comparator)
- LDR: Light Dependent Resistor (GL5528 or similar)
- R1: 10 ohm, 1W (LED current limiting resistor)
- R2, R3: 10k ohm (voltage divider for LDR)
- R4: 1.2k ohm (LM317 current set, for 100mA charge current)
- R5: 240 ohm (LM317 reference)
- C1: 100uF 16V electrolytic (supply decoupling)
- C2: 10uF 16V electrolytic (LDR filter)
Battery Charging Circuit Design
NiMH batteries should be charged at C/10 (10% of capacity per hour) for safe, reliable operation. For a 2500mAh pack, charge current = 250mA. However, a simpler C/20 charging rate (125mA) eliminates the need for complex delta-V detection and is safe for extended periods.
/* LM317 Constant Current Charging Circuit */
/* Charge current calculation:
I_charge = 1.25V / R_adj
For 125mA: R_adj = 1.25 / 0.125 = 10 ohm
For 250mA: R_adj = 1.25 / 0.250 = 5 ohm
Use R4 = 10 ohm for safe C/20 charging
*/
// Connection:
// Solar panel (+) -- D1 (1N5817) -- LM317 ADJ pin -- R4 (10 ohm)
// LM317 OUT -- Battery (+)
// LM317 IN -- Solar panel (+) via D1
// Battery (-) -- GND
// Overcharge protection:
// Zener diode (5.6V) across battery
// When battery reaches 5.6V (4x 1.4V = overcharged NiMH)
// Zener conducts, T2 (PNP) turns off, cutting charge current
// Full charge voltage per NiMH cell: 1.40-1.42V
// 4 cells: 5.60-5.68V
LED Driver Circuit
A 1W white LED requires a constant current driver. The LED forward voltage is approximately 3.0-3.4V at 350mA rated current. For our 4.8V NiMH pack, a simple transistor current sink is sufficient:
/* Simple LED Driver with BC547 */
/* Resistor calculation:
V_battery = 4.8V (nominal), 4.2V (discharged)
V_LED = 3.2V forward voltage at 200mA
V_R = 4.8 - 3.2 - 0.6(transistor Vce_sat) = 1.0V
R_LED = V_R / I_LED = 1.0V / 0.2A = 5 ohm (use 4.7 ohm)
Power in R_LED = 1.0V x 0.2A = 0.2W (use 0.5W or 1W resistor)
*/
// Transistor switch:
// BC547 collector -- Cathode of LED
// BC547 emitter -- GND via R_LED (4.7 ohm)
// BC547 base -- via 10k from LDR circuit output
// LED anode -- Battery (+) when switched on by auto circuit
Automatic Day/Night Switching
The LDR and LM358 comparator circuit detects ambient light level and switches the LED on at night and off during the day:
/* LM358 Comparator for Day/Night Detection */
/* At night: LDR resistance high (>50k ohm in dark)
At noon: LDR resistance low (<1k ohm in bright light)
Voltage divider: Vcc -- LDR -- Node A -- 10k -- GND
Reference: Vcc -- 47k -- Node B -- 10k -- GND
(Node B = 4.8V x 10k/(47k+10k) = 0.84V reference)
At night: Node A voltage RISES (LDR high)
LM358 non-inverting input > inverting input
Output goes HIGH
BC547 base turns ON
LED turns ON
At day: Node A voltage LOW (LDR low)
LM358 output goes LOW
LED turns OFF */
// Hysteresis: Add 470k between output and non-inverting input
// Prevents flickering at threshold light levels
Assembly and Housing
For a weather-resistant solar lantern suitable for Indian outdoor use:
- Use a 80mm PVC pipe as the lantern body (available at any hardware store for Rs 30-50)
- Mount the solar panel on top with a clear polycarbonate cover (protects from rain)
- House the PCB, battery holder inside the pipe with silicone-sealed end caps
- Diffuse the LED with a white frosted polycarbonate cover for wide-angle illumination
- Total cost of materials: Rs 300-600 for a complete functional solar lantern
Troubleshooting Guide
- LED does not turn on at night: Check LDR voltage at non-inverting pin of LM358 – should be >0.84V in darkness. Check BC547 base voltage >0.6V when LED should be on.
- Battery not charging: Verify solar panel Voc is above 6V in sunlight. Check D1 (1N5817) is installed correctly (striped band towards battery). Measure LM317 output current with multimeter in series.
- LED flickers: Add 470k hysteresis resistor on LM358. Check battery voltage – below 3.6V (flat battery) causes flickering.
- Low light output: Increase LED current by reducing R_LED (try 2.2 ohm instead of 4.7 ohm). Ensure LED is mounted on a small heatsink (aluminium sheet 20x20mm minimum).
- Short run time: Verify NiMH batteries are good quality (check with multimeter at >4.5V fully charged). Increase panel size to 2W for faster charging.
Frequently Asked Questions
Can I use a Li-ion battery instead of NiMH?
Yes, but the charging circuit must be changed. Li-ion (3.7V single cell) requires a dedicated CC/CV charger IC like TP4056 (available for Rs 10-15 in India). Use a TP4056 module instead of the LM317 circuit described above. Li-ion gives higher energy density but requires careful overcharge protection.
What is the light output of a 1W LED solar lantern?
A quality 1W LED produces 80-120 lumens, equivalent to a 10W incandescent bulb. For a small 3×3 metre room, this provides adequate reading light. For brighter illumination, use 3W LED (requires 500mA current and larger battery).
How many hours will the lantern run on a full charge?
With a 2500mAh NiMH pack and 200mA LED current: runtime = 2500mAh / 200mA = 12.5 hours theoretical. In practice (accounting for efficiency losses), expect 8-10 hours of light per full day of solar charging.
What solar panel size do I need for consistent daily charging?
A 1W, 6V panel in India receives about 5-6 peak sun hours daily. Total charge = 1W x 5.5h / 4.8V = 1.15Ah. This partially charges a 2500mAh battery in one day. For full daily recharge, use a 2W or 3W panel (Rs 250-400 on Amazon India).
Add comment