• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Solar Controller Circuits / Programmable Solar Porch Light Circuit

Programmable Solar Porch Light Circuit

Last Updated on December 21, 2023 by Swagatam 25 Comments

In this post I have explained a porch light circuit with programmable timer controller which enables the connected LEDs to light up or shut off after some delay, as preferred by the user, thus it's not entirely dependent on the solar panel parameters. The idea was requested by "Unknown".

Table of Contents
  • Technical Specifications
  • Circuit Description
  • Single Adjustable Delay OFF Solar Timer Circuit
  • Simple Porch Light Circuit using IC 555

Technical Specifications

It'd be neat if you devised a circuit that could:

1. Detect Darkness
2. Wait an adjustable amount of time, say 1-3 hours
3. energize a light, or relay
4. Stay on for an adjustable amount of time 3-8 hrs

That'd be a huge improvement over typical solar porch lights, as they typically come on too early, and stay on too long.

Thanks

warning message: electricity is dangerous, proceed with caution
Programmable Solar Porch Light Circuit

Circuit Description

Referring to the proposed solar outdoor light circuit diagram, we see a couple of IC 4060 timer stages interlinked together to form a set of sequential programmable timers.

During day time when the solar panel is active, the connected battery is allowed to charge through it, while the 4060 timers are held inactive due to the presence of the positive voltage from the panel to pin12 of the upper 4060 IC.

When darkness sets in, depending upon the selection of the zener diode between the solar panel positive and pin12 of the upper 4060 IC, the voltage is brought down to zero allowing pin12 to get a resetting zero logic via the connected 1M resistor.

Once this happens the upper IC 4060 begin counting and after a predetermined delay set by its pin9 capacitor and pin10 pot, its pin3 goes high.

The BC547 connected with this pin3 now activates all the connected LEDs illuminating them after the desired period of time has elapsed. The 1N4148 diode connected across this pin3 and pin11 of the upper 4060 freezes the IC counting process and latches the LEDs permanently ON.

However, in this situation, the lower BC547 also gets triggered and resets pin12 of the lower IC 4060 which in turn begins counting, and identically after a set period of time determined by its own pin9 capacitor and pin10 pot values switches ON its pin3.

This high from pin3 of the lower IC 4060 latches itself due to the presence of the 1N4148 diode across its pin3 and pin11, and it also grounds the base of the LED BC547 driver such that all LEDs shut off.

The entire solar porch light timer circuit now latches in this position until the next morning, when the rising positive voltage from the solar panel yet again resets the upper IC pin12 and the entire circuit. The circuit stays inactive until dark.

The cycle thus keeps repeating as explained above.

Single Adjustable Delay OFF Solar Timer Circuit

The above explained design can be simplified to obtain an adjustable delay switch OFF after the LEDs are switched ON in the evening.

Circuit Diagrams

Adjustable Delay OFF Solar Timer Circuit

Simple Porch Light Circuit using IC 555

The circuit design for the simple automatic porch light circuit is shown in the following figure.

Porch Light Circuit using IC 555

The system's sensor is the Light Dependent Resistor LDR1. The quantity of light falling on it determines its resistance; higher the light, lower will be the resistance. IC1 is utilised as a hysteresis level detector.

The 555 has 2/3Vcc and 1/4Vcc resistance levels built in. The output, pin 3, flips low whenever the voltage on pins 2 and 6 increases beyond 2/3Vcc, and high whenever the value falls under 1/4Vcc. 

The preset RV1 is set such that it is turned on at the desired light level. A 10 second time constant is formed from R3 and C3.

This 10 second is the time it takes for the voltage on pins 2 and 6 to increase to 2/3Vcc, assuming C3 charges from 0 V, and it's added to help prevent unwanted triggering from things like approaching car headlights or kids with flashlights!

The circuit is powered by D1-D5, R1, and is controlled by D6.

Supply DC smoothing is provided by the capacitor C2.

The thyristor SCR1 controls the outside light. A thyristor had been adopted over a triac since it is easy to trigger and does not create radio frequency interference in this setup.

The downside of this technique is that it necessitates the use of a diode bridge (D1-D4), which should be correctly rated to handle the lamp current.

When testing early versions, it was discovered that mains transients may cause the light to flicker as soon as it approached the lower (switch on) threshold level.

D5, R1, C1, and C2 are all part of a thorough filter circuit. Any high frequency spikes on the mains supply will travel via D1 -D5 and be isolated from the supply's negative side by C1.

C1 has a lower impedance than R1 and hence has a lower impedance. C2 would try to discharge through R1 and the light circuit if the mains voltage failed or dropped for a few cycles. For this brief period, D5 and C2 keep supply high, with D5 being reversed biased.

The sensitive gate type C106D thyristor was employed in this simple porch light circuit. Between the SCR  gate and cathode, you'll need an 0.8 V, with a gate current of 20 mA.

The output of the 555 is used to activate it. R5 and R6 create a voltage divider network, resulting in a cathode to gate voltage of roughly 2 V, which is adequate for effective triggering.

Whenever the 555 output drops low, R5 guarantees that the gate recovers to the very same voltage as the cathode, guaranteeing that the thyristor stays untriggered.

By lowering the value of R1 to 4k7 (2 W), the circuit may be changed for 115 V operation. The rest of the components are the same.

However, due to the lower supply voltage, the maximum wattage that may be switched is decreased to 250 W, with a maximum current of 2 A flowing via the diode bridge D1-D4 and thyristor SCR1.

You'll also like:

  • 1.  5V 3 Amp Fixed Voltage Regulator Circuit using IC LM123
  • 2.  Simple Delay Timer Circuits Explained
  • 3.  Simple Adjustable Industrial Timer Circuit
  • 4.  3 Stage Timer Circuit for Industrial Camshaft
  • 5.  High Efficiency Solar Charger Circuits using Switching Regulators
  • 6.  How to Make Dye-Sensitized Solar Cell or Solar Cell from Fruit Tea

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « 32V, 3 Amp LED Driver SMPS Circuit
Next Post: PIR Ceiling Fan Controller Circuit »

Reader Interactions

Comments

  1. Ritesh says

    April 2, 2025 at 9:42 pm

    Respected sir,
    Please guide me to build a circuit for a solar powered intruder alarm of 50w which will be on 24 hrs and back-up by battery during night.

    Reply
    • Swagatam says

      April 3, 2025 at 8:12 am

      Hello Ritesh,
      You can try the following circuit.
      But for higher power, I think the battery should be a 12V battery and the solar panel should be rated at 18V, and the transistor zener diode must be a 15V zener. Also now the 330 ohms must be increased to 1k 1/4 watt..
      " rel="ugc">comment image

      Reply
  2. Joseph says

    August 21, 2022 at 1:58 am

    Hello Swagatan
    I’d like to be able to control my solar light string with a switch, instead of the built in darkness detector.

    I have the: S14 LED solar light string
    Solar Panel: 3W/5V
    Li-ion 2000mAh3.7V
    15 Bulbs

    I have a room that doesn’t get a lot of afternoon light, and this is where I’ve put the light bulbs, but the solar panel is out in the sunshine. If I forget to take the cardboard off the panel, Well…
    So can I put the wire that feeds the light bulbs directly to the battery wires, or is this a bad Idea? I’ll put my timer switch on the light feed wire.

    I understand a little bit about circuitry, but not enough to figure out what part of the circuit board controls the darkness detector

    Cardboard Joe in Pacific Grove

    Reply
    • Swagatam says

      August 21, 2022 at 10:28 am

      Hello Joseph,
      If, assuming your darkness detector circuit also connects the battery directly with the LEDs then it is fine to replicate this and use a jumper wire to connect the battery directly with the LEDs.

      Reply
      • Joesph says

        August 22, 2022 at 9:18 pm

        Thank you
        I’ll try it out.

        Reply
      • Joseph says

        August 27, 2022 at 9:00 am

        I’m really enjoying my accent lights.
        I’ve been looking around on the web trying to find the schematic for my BMC, but no luck. I really don’t like the way I’ve wired it, because I could kill the batteries. I’d like to attach a photo so maybe you could see a way where a could attach a jumper or d-solder something. Other wise I’m thinking of switching it out for the TP4056.

        https://photos.app.goo.gl/7pFQkJ3Ln2AkLkiB6

        Reply
        • Swagatam says

          August 27, 2022 at 1:18 pm

          Sorry, It could be extremely difficult to check and understand the circuit configuration from this image. The image should in the form of a schematic to enable proper understanding.

          Reply
          • Joseph says

            August 27, 2022 at 7:25 pm

            Okay Thanks, I’m going to mess with it a little bit, then go to plan “B”

            Reply
  3. Nélio Abreu says

    July 28, 2018 at 9:29 pm

    Hi Swag,
    How many LED’s can I use in this circuit?
    Best Regards.

    Reply
    • Swagatam says

      July 29, 2018 at 9:49 am

      Hi Nelio,

      It will basically depend on the transistor specs, for a TIP122 it can be around 30 watts of LEDs easily

      Reply
      • Nelio Abreu says

        November 7, 2020 at 9:14 pm

        If my calculations are correct, each LED is (P=U x I) = 3,5V x 0,02A (for white LED’s), that’s 0,07W per LED, eache row is 4 LED, which will give 0,28W per row. All 4 rows 1,12W.
        That’s 107 rows of 4 LED each, total 428 LED’s…..
        Uau!!!! That’s a lot of LED’s….
        LOL
        Best Regards.
        Nélio Abreu

        Reply
        • Swagatam says

          November 8, 2020 at 8:24 am

          Yep, you are right, by using higher rated transistor and panel, you can increase it even more.

          Reply
          • Nelio Abreu says

            November 8, 2020 at 2:27 pm

            What changes do I need to do, in order to use a Li-Ion battery?
            Best Regards.
            Nélio Abreu

            Reply
            • Swagatam says

              November 9, 2020 at 9:04 am

              You can use a solar panel rated at around 4 V to 5 V higher than the battery, that’s all, but make sure the battery has a built in protection module.

              Reply
  4. Adam zanzino says

    December 14, 2015 at 12:21 am

    I have a couple of questions to ask… What is that red diode on top of the circuit?? And also how do i adjust the time delay???

    Reply
    • Swagatam says

      December 14, 2015 at 5:53 am

      It's a red LED, P1 and P2 are used for adjusting the delay periods.

      Reply
  5. Ashok Dhenge says

    February 9, 2015 at 5:02 am

    sir i made this circuit two to three times. I checked each and every point, but at first time relay get activated but after second third time relay not activated. I check test point. I get following observation.
    Data: Supply 12.39 volt, Using relay at LED
    1: I connect 1 led at pin 9 which blink with counting. at stops it continuous glow.
    2: At the end, pin 3 get voltage 10.36v
    3: At 10k left side 10.36v & right side 85.54mv
    4: At base of transistor 85.55mv
    5: Relay not activate.
    6: 2nd IC not counting, it gets freeze.

    Please help me i already made 3 pcb board but not successful.
    please check below link
    https://drive.google.com/file/d/0ByzJSqCugD_yR1dwc3lGeUZmbnc/view?usp=sharing

    Reply
    • Swagatam says

      February 9, 2015 at 8:41 am

      Ashok, do not connect anything at pin9, 10,11 as it may disrupt the normal functioning of the ICs.

      connect LEd at pin14 or 15 03 13 of the IC, if it flashes will indicate the IC is counting.

      For confirming the operational sequence, connect LEDs in series with all the transistor base resistors.

      your statements are all contradicting

      First if you apply voltage at pin12 of IC1 it'll never start counting which in turn will keep the lower IC also frozen.

      you say that pin3 is showing 10V….that's impossible when pin12 is kept high.

      So there may be something critically wrong in your design….pin12 of the top IC must not get the 12V supply otherwise it'll never initiate.

      Reply
    • Ashok Dhenge says

      February 14, 2015 at 5:13 am

      SIR I GET THE PROBLEM SOLVE, ACTUALLY IC GET FAULTY. i replace 4060 then circuit works fine. but after some time because of my miss handling again ic have same problem. again i replace another new one now its work fine.
      Now my question is is there any procedure to avoid this parts fail? or how to check or purchase original parts.
      Are these parts are fragile?
      please help me for this so this project not goes to costly.

      Reply
    • Swagatam says

      February 14, 2015 at 2:37 pm

      Ashok, if the supply voltage to the IC does not exceed 15V it is very unlikely to get faulty.

      buy ICs of reputed brands like ST, MIC, intersil etc. for getting genuine response.

      Reply
  6. Ashok Dhenge says

    January 16, 2015 at 11:11 am

    Sir as commented in above i already made this circuit 4 times but delay on gets failed because from red LED indicator voltage get supply to the base of transistor BC 547 ( marked in pic).

    Reply
    • Swagatam says

      January 16, 2015 at 2:21 pm

      Ashok, that cannot happen because when switched ON the IC will reset and begin with a logic zero at its pin3, this zero logic will sink the LED voltage to ground level so that no voltage flows to pin11….and that's why the red LED would light up.

      for confirming you can remove the red and check…..

      Reply
  7. Ashok Dhenge says

    January 16, 2015 at 9:17 am

    Sir please check this image 4.bp.blogspot.com/-LWTCAHef9_I/VLjW36ME-vI/AAAAAAAAAKk/4Q59xls74T8/s1600/solar%2Bgarden%2Blight%2Bwith%2Btimer%2Bcircuit.png

    Reply
  8. shrikant says

    October 14, 2014 at 6:47 am

    hi swagatam

    i need a circuit which will charge 12v 3ah battery during day on solar and automatically illuminate leds at no sun light. and it will off after 4 to 5 hrs. the purpose is to drive led strings for diwali decoration

    Reply
    • Swagatam says

      October 15, 2014 at 4:30 am

      Hi Shrikant, you can try the following simple design:

      https://www.homemade-circuits.com/2013/03/simplest-automatic-led-solar-light.html

      use 4 leds in series with the 12V battery, when the voltage drops below 12V, the LEd will automatically become dim and gradually become switched as the battery reaches 11V.

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on 10 LED Tachometer Circuit Diagram
  • Swagatam on How Shunt Regulator TL431 Works, Datasheet, Application
  • Göran on 10 LED Tachometer Circuit Diagram
  • SA on How Shunt Regulator TL431 Works, Datasheet, Application
  • Swagatam on Adjustable 0-100V 50 Amp SMPS Circuit

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations