Build it step by step
0 of 7 doneTest the charger
Panel in the sun, watch the charge LED.
Build the dusk switch
LDR, resistors and transistor on a breadboard.
Test in the dark
Cover the LDR with your hand.
Shield the LDR
Keep it from seeing the LED.
Glue it in the lid
Panel on top and parts underneath.
Charge for a day
Full sun.
Time the lamp
How many hours it lasts.
How do you build a solar jar light?
A small solar panel charges a cell in a jar lid by day, and an LED turns on at dusk with no microcontroller. You need Solar panel 6 V 1 W, CN3065 solar Li-ion charger module, Li-Po battery 3.7 V 500 mAh, LDR Photoresistor, BC547 NPN transistor, Resistor 10 kΩ, Resistor 100 kΩ, LED 5 mm white and Resistor 220 Ω. It takes 7 steps and about 60 minutes.
- Level
- Beginner
- Time
- About 60 min
- Parts
- 9
Parts list
- PowerBuy
- PowerBuy
- BatteriesBuy
- SensorsBuy
- SemiconductorsBuy
- PassivesBuyResistor 10 kΩ × 1
- PassivesBuyResistor 100 kΩ × 1
- OptoelectronicsBuyLED 5 mm white × 1
- PassivesBuyResistor 220 Ω × 1
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Solar panel plus and minus | CN3065 module IN+ and IN- | Charging input |
| CN3065 BAT+ and BAT- | Protected LiPo cell | Charge the cell |
| Cell plus | 100 kΩ resistor to the sense node | Divider top |
| Sense node | LDR to cell minus | Divider bottom (dark means high voltage) |
| Sense node | 10 kΩ to BC547 base | Dusk switch |
| BC547 emitter | Cell minus | Ground |
| Cell plus | 220 Ω, then white LED anode | Lamp |
| White LED cathode | BC547 collector | Switched by the transistor |
No code needed
This build has no code. In daylight the LDR has a low resistance, so the sense node sits near 0 V and the transistor stays off; at dusk the LDR's resistance climbs past about 20 kΩ and the node rises above 0.65 V, which switches the transistor on and lights the LED. The 100 kΩ resistor sets the dusk level, so use a smaller one for darker or a larger one for lighter switching, and add a little hysteresis with a larger LDR if the light flickers at dusk. The CN3065 module charges a single Li-ion or LiPo cell from a 4.4 to 6 V panel with the proper charge profile, so never connect a panel straight to the cell. Use a protected cell that has its own protection circuit, because nothing here stops over-discharge. A 220 Ω resistor gives only a few milliamps from a 3.7 V cell, so the light lasts for days after one sunny day; measure the real time with the cell fully charged. Keep the LDR shaded from the LED so the lamp does not switch itself off, seal the jar against rain, and never use damaged or swollen cells.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Daylight | LED off and the cell charging |
| Dusk | LED turns on |
| Covered LDR | LED on at once |
| Run time | Hours measured from a full charge |
If it does not work
LED always on
Lower the 100 kΩ or check the LDR.
LED never on
Check the transistor pins.
Flicker
Shade the LDR from the LED.
Cell never charges
Check the panel polarity and sun angle.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the solar jar light?
Solar panel 6 V 1 W, CN3065 solar Li-ion charger module, Li-Po battery 3.7 V 500 mAh, LDR Photoresistor, BC547 NPN transistor, Resistor 10 kΩ, Resistor 100 kΩ, LED 5 mm white and Resistor 220 Ω.
How long does the solar jar light take to build?
About 60 minutes for a beginner maker, in 7 steps.
How do I know the solar jar light works?
Daylight: LED off and the cell charging. Dusk: LED turns on. Covered LDR: LED on at once.
LED always on: what should I check?
Lower the 100 kΩ or check the LDR.
LED never on: what should I check?
Check the transistor pins.
Flicker: what should I check?
Shade the LDR from the LED.
Cell never charges: what should I check?
Check the panel polarity and sun angle.
