• 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 / Lamps and Lights / PIR Solar Home Lighting Circuit

PIR Solar Home Lighting Circuit

Last Updated on July 29, 2024 by Swagatam 33 Comments

In this post I have explained a simple circuit using Passive Infrared or PIR for making an automatic solar LED lamp which can be used for illuminating your home automatically at sunset, and only in the presence of a human member in the premise.

Table of Contents
  • Introduction
  • Circuit Working:
  • Circuit Diagram
  • List of Components:
  • PIR Solar LED Home Lighting Circuit made Simpler
  • How the Circuit Works

By SS Kopparthy

Introduction

Here, in this article, I will discuss a simple yet useful and improved version of the PIR based automatic home lighting system. A previous version of this circuit is already discussed and is available here: https://www.homemade-circuits.com/pir-motion-activated-relay-circuit/ The major improvement is the static detection of human beings and also it works completely on solar energy unless the battery doesn’t get charged on a rainy day or something.

Circuit Working:

The circuit consists of different stages, where each one performs a specific task to keep the circuit working. The first one is the solar panel, solar charge controller and the battery which together control solar based power supply to the circuit. The same stage decides whether power is to be fed from the battery or from the mains, depending on the battery charge and voltage.

Circuit Diagram

warning message: electricity is dangerous, proceed with caution
PIR controlled LED solar lamp circuit

A 8550 PNP transistor is used here in the solar charge controller to decide it is day or night depending on the voltage form the solar panel. This is achieved by feeding the solar panel voltage to the base of the transistor hence holding it off during the day time when the voltage is produces by panel. When the dusk sets in the voltage drops across the transistor and battery voltage gets routed to rest of the circuit.

The next stage is a voltage source switcher that decides whether the circuit should be powered using battery voltage or the AC power source depending on the battery voltage level. A DPDT relay is configured to take care of this switching. Hence, the power to the circuit remains uninterrupted.

The next stage consists of the day/night detector that senses whether it is day or night depending on the sunlight incident on the LDR and it triggers the relay correspondingly. A capacitor C1 is attached at base of the transistor T3 in this stage. That makes sure that a small delay is introduced in the sensing so that sudden changes in the intensity of light does not false trigger the circuit. Output of T3 is fed to the next transistor Q1 which actually triggers the relay.

Final stage consists of a PIR sensor HC-SR501 that produces a high output when it detects the presence of a human being in its vicinity which is fed to the base of the transistor Q2 and immediately it fires the relay and the LED’s connected to it gets lit up. When the human moves away, the light gets turned off automatically using the same mechanism.

Finally, for the circuit to work even when there is static occupancy, the an additional stage consisting of the Hex Schmitt trigger IC and few other components may be used in combination with the existing circuit, but please remember to use a bigger battery and solar panel as per requirement. The circuit can be found here: https://www.homemade-circuits.com/pir-circuit-for-detecting-static-or/

List of Components:

Solar panel- 10.2V,400mA, 6Watts,
BATT1- 6V, 4.5Ah battery
R1- 1K
D1, D2, D3, D5, D6- 1N4007
D4, D7- 1N4148
R2- 10K trimpot
R3- 200E
R4- LDR
R5, R8, R9- 1K
R6- 10K preset
R7- 10K
T1- 8050
T2, T3, Q1, Q2- BC547
C1- 10
RY1- 5V, DPDT relay
RY2, RY3- 5V, SPDT relay
L1, L2, L3- LED's
PIR- HC-SR501

Notes:

After completion of this automatic PIR based solar home lighting circuit assembly, the unit can be housed inside a suitable casing(plastic) and installed the in a safe position protected from weather. The solar panel, LDR needs to be located such that sunlight is incident on them directly.

Here is the video of my prototype showing the static occupancy detection, please note that solar panel is not connected to the circuit in the video as the circuit is indoor and also the circuit for PIR sensor motion is powered externally for the time being.

A Simplified Design can been seen below:

simple PIR based solar lamp circuit

PIR Solar LED Home Lighting Circuit made Simpler

In this next concept I have explained yet another simpler version of a PIR based solar home lighting circuit which will provide the user with the following useful features:

1) It will charge a battery during daytime through a solar panel while sunlight is available.

2) As soon as darkness sets in, the circuit will automatically switch ON a connected LED lamp using the charged battery power, but only in the presence of a human being within the range of the PIR device.

That means, the circuit will not only switch ON an your home LED lamp automatically during evening, but also ensure that the lamp is not always switched ON, rather switch ON only when a person enters the detection range of the circuit.

How the Circuit Works

PIR Solar Home Lighting Circuit

Now let's understand the circuit description with the following points with reference to the above diagram:

The circuit has three main stages: The first stage comprises of the PIR based LED driver circuit which is designed to detect a human being within a stipulated range and switch ON the attached LED lamp.

The second stage is formed by the Solar panel based battery charger circuit, through a 7-8-1-5 IC based voltage regulator stage.

During daytime the solar panel supplies around 18 Volts to the 7-8-1-5 IC, which is stepped down to a regulated 15 DC output.

This 15 Volts output DC is further reduced to around 13.8 Volts DC through the two series 1N5402 diodes.

This 13.8 Volts is then finally applied to a 12 Volts / 7 A-h lead acid battery so that it begins charging.

Since the maximum DC voltage to the battery is restricted to around 13.8 Volts, there isn't any danger of the battery getting overcharged, which means that the battery does not require an auto cut-off circuitry, regardless of how long it remains connected with the solar panel output.

The design also employs a feedback stage which makes sure that the LED lamp is not able to switch ON as long as the solar panel is generating a voltage, or in simple terms as long as it is not significantly dark outside.

The above feature is implemented using the BC 5-4-7 transistor, which remains turned ON as long as a voltage is available from the solar panel, and during this period it keeps effectively keeps the base of the LED driver transistor T-I-P 1-2-2 grounded, rendering it switched OFF.

With the T-I-P 1-2-2 transistor turned OFF the lamp lamp also remains turned OFF during the daytime.

Once significantly dark, the solar panel stops generating any voltage causing the BC 5-4-7 transistor to switch OFF, instantly enabling the T-I-P 1-2-2 transistor, so that it can now conduct and switch ON the LED lamp.

However, the T-I-P 1-2-2 transistor still requires a base voltage from the PIR device output to turn ON the LED lamp, and this base voltage from the PIR device is not achieved unless and until an actual human presence is detected in the vicinity.

Therefore, the circuit keeps the LED lamp turned OFF even in the evening, until a human being is detected within the PIR range, which saves precious battery power and allows the LED lamp to be illuminated throughout the night, whenever the user actually needs the premise to be illuminated.

So, that's it folks! This concludes our explanation on the solar powered automatic LED lamp circuit using PIR detection, if you have any related questions, you know what to do...yes, just use the comment box below to jot in your doubts.

You'll also like:

  • 1.  Light Dependent LED Intensity Controller Circuit
  • 2.  0.6V to 6V/12V Boost Converter Circuit Diagram
  • 3.  Arduino Random RGB Light Generator Circuit
  • 4.  Make this Red LED Sign Circuit
  • 5.  Infrared (IR) LED Flood Light Circuit
  • 6.  How to Build a Grow Light Circuit

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: « Using Microwave Oven Parts to build a Soldering Iron Heat Controller
Next Post: Solid State Contactor Circuit for Motor Pumps »

Reader Interactions

Comments

  1. Ghulam Mohio Din says

    July 29, 2024 at 8:47 am

    hello sir,
    sir can i used bd139 instead of tip122? i will use 12 volt 2500mah batery and 12 volt 5 watt mini solar….

    Reply
    • Swagatam says

      July 29, 2024 at 9:21 am

      Thanks Ghulam,
      You can use BD139 but the maximum current handling capacity cannot be exceeded above 500 mA or 1 amp at the most.
      12V solar panel cannot charge a 12V battery, you will need an 18V solar panel.
      And for better performance please add a 220 ohm resistor in series between the 7805 output and PIR +input.
      You can also consider using the following simple design:
      " rel="ugc">comment image

      Reply
      • Ghulam Mohio Din says

        July 29, 2024 at 1:07 pm

        thank you sir, i will update you if i face any problem.

        Reply
        • Swagatam says

          July 29, 2024 at 2:01 pm

          No problem Ghulam! Let me know how it goes….

          Reply
          • Ghulam Mohio Din says

            July 29, 2024 at 5:03 pm

            sir PIR can work on 12v?

            Reply
            • Swagatam says

              July 29, 2024 at 5:10 pm

              PIR will not work with 12V directly, it requires 5V to work, but in the last circuit above the PIR VCC is connected with a series 1k resistor, so with this series 1k it can be used with 12V DC. I have tested it…

              Reply
              • Ghulam Mohio Din says

                July 29, 2024 at 5:33 pm

                i am sorry for disturb you for one project, sir i dont have 5402 diode, can i use 5408 or in4007 plz?

                Reply
                • Swagatam says

                  July 29, 2024 at 5:38 pm

                  Yes, 1N5408 will work, no problems.

                  Reply
      • Ghulam Mohio Din says

        July 30, 2024 at 8:42 am

        yes its working. thank you sir……

        Reply
        • Swagatam says

          July 30, 2024 at 8:48 am

          That’s great Ghulam, let me know if you have any further issues with the circuit…

          Reply
  2. agness olima says

    September 9, 2022 at 12:28 pm

    Hi, I’m Agnes, how can I get the full project?

    Reply
    • Swagatam says

      September 9, 2022 at 2:07 pm

      Hi, can you please specify your full project specifications.

      Reply
  3. Mitesh Dhanani says

    August 26, 2021 at 12:44 pm

    As I am having a solar panel 3W 6V solar want to make a circuit board diagram dc to dc can u please explain which of the products are there as I am using 3.7v battery 18650.As it is to used for a passage

    Reply
    • Swagatam says

      August 26, 2021 at 1:37 pm

      I could not understand your requirement, please explain it elaborately.

      Reply
  4. Turan BENLİ says

    June 10, 2021 at 2:16 pm

    Hello Mr. Swagatam I hope you are well, I am very pleased with you. The information sharing you have shared is very valuable to me, so I pray for you every day. I used to be an electronic device repairman, now I quit because I am 62 years old, some of my opportunities are limited and I am struggling for life due to my orthopedic disability. I have a request from you. I need a voltage detector diagram that determines the place where the electrical installation and water installation goes under 40 cm concrete. I would appreciate if you could help me. Thank you very much for your precious time.

    Reply
    • Swagatam says

      June 10, 2021 at 4:47 pm

      Thank you Mr. Turan, I think you can try the following concept for detecting mains energy under concrete walls.

      https://www.homemade-circuits.com/bug-detector-circuit-rf-sniffer-circuit/

      For increasing the sensitivity of the circuit you an use longer wire for the antenna

      Reply
  5. Nelio Abreu says

    November 7, 2020 at 3:18 pm

    Hi Swag,
    The Diode at output of PIR module is not identified.
    Is it any redular diode?
    Best Regards.
    Nelio

    Reply
    • Swagatam says

      November 7, 2020 at 4:47 pm

      Hi Neiio, yes it can be a 1N4148 or 1n4007 diode, although this diode and the 470uF are not required, since the PIR already has an in-built delay circuitry

      Reply
  6. kenny says

    June 14, 2020 at 6:08 pm

    hello sir, I want to built a solar light with this requirement :
    1. using 20 watt led light
    2. auto on at dawn and off in the morning.
    3.light on for at least for 12 hours.
    4.lithium battery fully charge in 5/6 hours
    5. built with battery overcharge and discharge protection.
    tq for your time..

    Reply
    • Swagatam says

      June 15, 2020 at 1:24 pm

      Hi Kenny, You can try this circuit

      " rel="ugc">comment image

      Reply
  7. Anil says

    May 21, 2019 at 6:02 pm

    Hi Swag,
    I want a circuit for a fan on/off switch (inductive load) for inverter, as the inductive loads have surge currents. My idea is to have a delay on switch which connect the fan (or any other inductive load) to the inverter after a delay of about 5/6 seconds. So that initial high current is bared by mains supply and after 5/6 seconds it is connected to inverter, spacifically solar inverter.
    Please guide in this matter.
    Anil

    Reply
    • Swagatam says

      May 21, 2019 at 6:17 pm

      Hi Anil, you can use the following concept:

      https://www.homemade-circuits.com/simple-refrigerator-protector-circuit/

      Replace the Mains input with inverter input, and Refrigerator with Fan.

      Reply
      • Swagatam says

        May 21, 2019 at 6:22 pm

        Sorry, you will need to modify the triac with a relay, and connect the relay with the fan such that initially it is connected with mains and then switches to inverter. here’s the relay circuit for the same:
        " rel="ugc">comment image

        Reply
  8. djirotech says

    April 12, 2019 at 10:43 pm

    Hello and congratulations for your great work.
    I am looking for a booster circuit to replace a thief joule
    with a 5v solar panel, 4xli-ion 3.7v batteries, and also advice.

    thank you !!

    Reply
    • Swagatam says

      April 13, 2019 at 6:30 am

      Thank you dijirotech,

      Joule thief is also a booster circuit? Please specify your exact technical specifications and also the solar panel amp rating, I will try to help!

      Reply
  9. Obaid ur Rehman says

    April 1, 2019 at 8:14 am

    Thank you for your reply.
    Could you please add the functionality so the light remains dim until movement is detected, and gets bright when motion sensors is triggered.

    Reply
    • Swagatam says

      April 1, 2019 at 9:42 am

      You can try adding a 100K resistor or some other calculated high value resistor between TIP122 base and the positive line. It may do the job

      Reply
  10. Obaid ur Rehman says

    March 31, 2019 at 10:38 pm

    Hello
    Can I use 7ah battery and 30W solar panel with this circuit?
    7805 IC dissipate too much current, can I use a switching regulator instead?
    Thank you for your good work.

    Reply
    • Swagatam says

      April 1, 2019 at 7:59 am

      That looks OK to me, You can use the mentioned parameters with the above cone[pt!

      Reply
  11. vivek says

    September 12, 2018 at 3:07 pm

    can you provide another circuit diagram ?

    Reply
    • Swagatam says

      September 12, 2018 at 6:36 pm

      I have updated the diagram at the bottom of the post!

      Reply
  12. satish says

    August 8, 2018 at 10:23 am

    hi sir can make as the same circuit for 12v 7ah battery

    Reply
    • Swagatam says

      August 8, 2018 at 1:46 pm

      Satish, you can usea 12V battery, but make sure to use a 7805 IC for supplying 5v to the PIR Vcc pin

      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 9 Simple Solar Battery Charger Circuits
  • Swagatam on Arduino Pure Sine Wave Inverter Circuit with Full Program Code
  • Swagatam on How Shunt Regulator TL431 Works, Datasheet, Application
  • Swagatam on Best 3 MPPT Solar Charge Controller Circuits for Efficient Battery Charging
  • Dan Biles on 9 Simple Solar Battery Charger Circuits

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