| REUK Shop | REUK Blog | Directory | About Us  |  | RSS Web Feed for Renewable Energy UK 

Use Solar Panel As Darkness Detector



Use Solar Panel As Darkness Detector

Make a day / night detector using a solar panel as the detector and battery charger

solar | electric circuit | electronics
  Printer Friendly Version Print Article     

In this article: Light Dependent Resistor we showed had a small light detector can be used within a circuit to turn on something (typically a light bulb) when it is dark or light. This is a very simple circuit with minimal components, however, there is one situation when things can be made even simpler: if a PV solar panel is being used to charge a battery, and you want to turn something on when it is night time - for example in garden lighting or security lighting - the solar panel itself can be used as the light detector. This is particularly useful since solar panels are already very waterproof and resilient UV light whereas light detectors tend not to be.

Solar Panel LED Driver Circuit

Circuit showing how a solar panel charging a battery can be used as a light detector

The circuit above shows how a solar panel used to charge a battery can also turn on an LED when it is dark (i.e. solar panel not generating) with the addition of a couple of resistors, an LED, and a PNP transistor.

In our article What is a Transistor we showed that a transistor is an electronic component which can be used to control a relatively large amount of current with a relatively small current in the same way that turning a small valve on a water pipe will allow a large amount of water to flow through the pipe. In the vast majority of our projects we use NPN transistors. These allow current to flow between the collector (C) and emitter (E) of the transistor only when a small current is being applied to the base (B).

Labelled diagram of a typical transistor

In this light/dark detecting circuit, we instead use a PNP transistor. This component does the opposite of the NPN - i.e. current is allowed to flow between the collector and emitter except when there is current being applied to the base.

So, in the above circuit, when the solar panel is generating, current flows from the positive output of the solar panel through the 10K resistor and into the base of the PNP transistor which prevents current flowing from the collector to the emitter and so the LED is turned off.
When the solar panel is not generating (e.g. at night), no current flows into the base of the PNP transistor and so the positive of the battery is connected via the collector and emitter to the LED. Therefore the LED is turned on.

The diode (labelled D1) prevents stored battery charge from escaping through the solar panel at night (dark current). Without it this light/dark detector would not work since the positive of the battery would be permanently supplying current to the base of the transistor keeping the LED turned off. A Schottky Diode is best for this job since it takes around half as much power as a standard silicon diode.

The 1K8 resistor (1,800 Ohm) is there to protect the LED from being burned out by too much current since it requires just a couple of volts, but in our example schematic the power source is 12V. The 10K resistor (10,000 Ohm) is there to limit the current going into the base of the transistor.

Modifications

To modify this circuit for a lower voltage solar panel and battery you just need to change the values of the two resistors - for example for a 6V solar panel charging a 4AA battery pack, the 10K could be changed to 5K and the 1K8 to something around 1K depending on the specs of the LED and how bright you want it to be.

Instead of an LED, this circuit could be used to control a relay which could in turn switch anything (subject to the limitations of the chosen relay). However, a more complex circuit should really be used in this case so that the output does not multi-switch (turn on and off repeatedly and rapidly) during the transition from light to dark and back again - for example: light dark sensor circuit relay, or REUK Super LDR Dusk/Dawn Relay Controller.



Article Last Modified: 17:16, 3rd Aug 2012

Comment on this Article

If you have any comments on this article, please email them to neil@reuk.co.uk.


Related REUK Categories

solar | electric circuit | electronics
© 2006-2013 REUK - All Rights Reserved
Page Last Updated on 19th June 2013 at 12:28:19pm

Recent
Blog Posts


1.Bricking a Beaglebone Black

2.Project of the Day – 12V High Power Regulator with LT1084CP-12

3.Raspberry Pi Temperature Datalogger with DS18B20 Sensor

4.New Raspberry Pi Category on REUK.co.uk Website

5.Special Offer of the Day – 20W PV Solar Panel £25.99

6.Reducing Reflectivity of PV Solar Panels to Increase Efficiency

7.Low Voltage Disconnect with Display and Datalogger

8.Saudi Solar Power Boom About to Begin

9.Compressed Air for Storage of Renewable Energy

10.Offer of the Day – 80W Monocrystalline Solar Panel £71.98


Latest
Articles


Wire 5V Direct to Raspberry Pi
Find out how to connect 5V directly to Raspberry Pi instead of using micro USB
raspberry pi
12:28, 19th Jun 2013

Solar Powered Raspberry Pi
Power your Raspberry Pi permanently from a PV solar panel
raspberry pi
20:42, 17th Jun 2013

Beaglebone Black Credit Card Sized Computer
Find out about the Beaglebone Black - tiny, low cost, low power use computer
raspberry pi
15:46, 14th Jun 2013

Power over Ethernet
Find out how to power your networked microcontroller projects directly via the ethernet cable
electronics
17:04, 13th Jun 2013

Raspberry Pi Temperature Logger with Xively
Make a Raspberry Pi temperature data logger accessible online with Xively
raspberry pi
20:44, 12th Jun 2013

DS18B20 Temperature Sensor with Raspberry Pi
Measure temperatures with a 1-wire DS18B20 sensor and Raspberry Pi
raspberry pi
20:37, 12th Jun 2013

Simple Raspberry Pi Relay Control over the Internet
Take your first steps in Raspberry Pi home automation - controlling a relay
raspberry pi
15:57, 6th Jun 2013

Raspberry Pi Flashing LED with GPIO and Python
Find out how to set up Raspberry Pi to flash an external LED using GPIO
raspberry pi
15:57, 6th Jun 2013



REUK Shop

Popular Items


REUK SUPER LDR DUSK DAWN RELAY CONTROLLER
Multi-function light detector triggered light/dark dawn/dusk relay controller
£19.95 each.
Complete Circuits



KARASOULI SCC 20 CHARGE CONTROLLER
20A rated wind turbine charge controller and dump load controller with blocking diode and heatsink
£43.95 each.
Renewable Energy System Parts



2013 SOLAR PUMP CONTROLLER WITH RELAY
New solar water heating pump controller with fitted 10A relay
£25.99 each.
Complete Circuits



REUK SUPER POULTRY LIGHTING CONTROLLER
Control up to 8 Watts of LED spotlights to stimulate egg production in birds
£29.99 each.
Complete Circuits



REUK SUPER TIMER 2
User programmable 12VDC powered 16A rated repeating relay timer. 1 second to 99 hours ON and OFF times
£23.99 each.
Complete Circuits



300 WATT POWER INVERTER
Convert 12V DC battery power into 230 AC to power portable televisions, computers, video recorders etc. 300 Watt power rating - peak power 600 Watts
£29.99 each.
Renewable Energy System Parts



CONVERTED PROGRAMMABLE DIGITAL TIMER RELAY
Mains powered programmable timer converted to low voltage with relay board
£21.99 each.
Renewable Energy System Parts



12 VOLT REGULATOR
Supply a fixed 12.0 Volt DC to your devices (up to 0.7 Amp output)
£4.79 each.
Complete Circuits



MR16 CERAMIC BULB HOLDER
Bulb holder for 12 Volt LED spotlight bulbs
£1.39 each.
Energy Efficient Lighting