• 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 / Motor Controller / PIR Ceiling Fan Controller Circuit

PIR Ceiling Fan Controller Circuit

Last Updated on January 8, 2024 by Swagatam 139 Comments

In this post I have explained a simple automatic PIR controlled ceiling fan circuit for school college use, which responds and switches ON only in the presence of a human (students) in the classroom. The idea was requested by Mr. Souren Bhattacharya.

Table of Contents
  • Technical Specifications
  • The Design 
  • Circuit Diagram
  • The PIR Module
  • Sensing Human Presence

Technical Specifications

I am, souren bhattacharya, a high school teacher in west bengal.

To reduce electricity used in my school classroom can you please make a circuit which can switch off/on fans (3/4 ceiling fans) in the classroom as per routine with a facility to manual override.

For example each class has one computer class and one physical education class in a week. we want to switch off ceiling fans when whole class is empty.

The Design 

The design will require some kind of human IR sensor to be included, for example a PIR sensor device which looks to be the most efficient and effective for the proposed application.

Incorporating a PIR sensor makes the design pretty simple since most of the complex circuitry is handled within the unit itself.

The sensor just needs to be integrated with a triggering stage and a correctly rated power supply as shown in the following diagram.

Circuit Diagram

PIR controlled ceiling fan circuit diagram

In the given diagram we are able to see a standard preprogrammed PIR module, a 7805 voltage regulator IC stage for supplying the PIR, and a simple 12 V transistor/relay driver stage.

The PIR Module

The PIR module has three terminals, the right one is the ground terminal, center one is the positive +3.3V or +5V, and the left terminal is the responsive output lead of the device.

When the particular assigned (+) and (-) terminals of the PIR device are connected to the specified supply voltages, the device instantly becomes responsive and begins "thinking".

No human presence or motion should be created in front of the unit's lens during this initial switch ON period for about a minute or so, until the device locks ON and puts itself into an alert or a ready stand by position.

The unit now becomes ready and responds to even the slightest human motion or presence in front of its lens by generating a positive supply at its output terminal.

This high at its output terminal persists as long as a human presence is detected within a radial range of around 20 meters in front of the PIR device.

Sensing Human Presence

The output turns into a zero voltage as soon as the human presence moves away or is removed.

The above well defined high/low voltage response at the output lead becomes ideally suited or accessible for a transistor relay driver stage as shown in the diagram.

When the PIR output is high due to the presence of a human (children in classroom), the transistor BC547 base receives the +3.3V out from the relevant lead of the device and quickly switches ON the relay.

The relay in turn switches ON the ceiling fan and the system stays ON as long as the students occupy the premise.

When the students leave and vacate the premise, the PIR instantly switches OFF its output to a zero voltage level.

However, the presence of the 470uF/25V capacitor at the output lead of the PIR prevents the BC547 from getting switched off instantly rather keeps it ON for a few seconds more after the PIR has reverted its output to zero.

After this delay the BC547 also gets deactivated, switching OFF the relay and the ceiling fan or any other desired load whatsoever that may be wired with the relay.

The above circuit may be effectively modified as given  below for operating lights, with a feature making sure that it's implemented only during the night time and not during the daytime when ample daylight is accessible. The idea was requested by Mr. Sham.

LDR and PIR controlled ceiling fan circuit

You'll also like:

  • 1.  Water/Coffee Dispenser Motor Circuit
  • 2.  Operating a DC Motor Clockwise/Anticlockwise with a Single Switch
  • 3.  How Stepper Motors Work
  • 4.  2 Simple Bidirectional Motor Controller Circuits Explored
  • 5.  AC Motor Speed Controller Circuits using Back EMF
  • 6.  Automatic Curtain Open-Close 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: « Programmable Solar Porch Light Circuit
Next Post: How to Test a MOV (Metal Oxide Varistor) Surge Protector Device »

Reader Interactions

Comments

  1. Rajani says

    April 9, 2024 at 11:18 am

    Can you please guide me in selecting the components specifications if i have to control the total power supply to the room having 4fans and 6LED tubes.

    Reply
    • Swagatam says

      April 9, 2024 at 11:43 am

      The load you have mentioned will not consume more than 6 amps, so a 10 amp relay should be enough.
      You can use an 12V OEN type relay, as shown below:
      " rel="ugc">comment image
      You can use the following simplified circuit, it is tested by me:
      " rel="ugc">comment image

      Reply
  2. Rajani says

    April 2, 2024 at 9:48 pm

    Thank you for the clear and concise explanation of a simple circuit. I have one question, can the relay be connected to the phase wire coming into the room instead of the fan or light?ay connecting to fan or light, can we connect it to phase wire comming in to the room

    Reply
    • Swagatam says

      April 2, 2024 at 10:35 pm

      You are welcome.
      The phase wire has to be in series with the relay contact and the load, the same is true for the neutral wire…The phase, the load, the relay contacts, and the neutral, all should be in series, it doesn’t matter in what sequence they are connected.

      Reply
  3. Kofy says

    November 1, 2021 at 4:35 am

    Hello Sir I have been following your circuits and ideas with keen interest. Please I have a problem with a similar circuit. I an IR obstacle detector(3 pins – VCC-5v, GND and S-OUT) when it detects an object the output S, goes low. Now i want to drive a motor(5-12V DC) such that when IR detects an object the motor should stop, i used a transistor (TIP41) to rive the motor. I wish I can show my circuit here.
    I will be happy if you can help me with a simple circuit to perform this

    Reply
    • Swagatam says

      November 1, 2021 at 7:22 pm

      Hello Kofy, you can upload your image into any online free image hosting side and provide the link here, I will check it, and try to solve it for you..

      Reply
  4. Ruth Pacallagan says

    May 26, 2018 at 6:13 pm

    Is there an alternative for PIR? the PIR we bought is not working.

    Reply
    • Swagatam says

      May 26, 2018 at 6:25 pm

      sorry there’s no effective replacement for a PIR, a PIR mostly will work if configured correctly, make sure the pinouts are joined correctly, for more info you can read the following post:

      https://www.homemade-circuits.com/pir-sensor-datasheet-pinout-specification-working/

      Reply
  5. Naresh says

    February 4, 2018 at 5:35 pm

    Hi sir

    Can I use two PIR ‘s in this circuit from different locations (different rooms). Because I need it to turn on when there is a human presence in the both rooms.

    Reply
    • Swagatam says

      February 4, 2018 at 5:48 pm

      yes definitely you can do that, by connecting the output pins of the two PIRs through separate 1N4148 diodes and terminating the common cathode ends with the transistor base

      Reply
      • Naresh says

        February 4, 2018 at 6:08 pm

        Sir thanks for the prompt response.
        And Pls suggest me a suitable transformerless circuit to power the above circuit

        Reply
        • Swagatam says

          February 5, 2018 at 6:41 am

          Naresh,

          capacitive power supply is not recommended for this design, you must use a 12V SMPS adapter for operating this circuit.

          Reply
          • Naresh says

            February 5, 2018 at 6:49 am

            OK can I use 5.5v cell phone charger and 5v relay?

            Reply
            • Swagatam says

              February 5, 2018 at 8:18 am

              yes you can try that..

              Reply
  6. martin says

    December 6, 2017 at 11:58 am

    I liked your idea it’s brilliant one but what if I got two fans in The same room and I want them to operate sequentialy

    Reply
    • Swagatam says

      December 6, 2017 at 2:15 pm

      thanks, I am glad you liked it, by sequentially do you mean alternately? in that case you can use the other free contact of the relay and wire it with the other fan….

      Reply
  7. Unknown says

    August 2, 2017 at 2:20 pm

    hi can i know what are the pin configuraion of the sensor ?

    Reply
    • Swagatam says

      August 3, 2017 at 3:22 am

      as per the orientation shown in the figure it is:

      OUT—(+)—GND

      Reply
  8. NvD says

    March 23, 2017 at 12:25 pm

    sir
    can i remove the capaciter from the circuit if i dont want delay in shutting off
    can i use this circuit for automatic faucet…tell me if there is any modification

    Reply
    • Swagatam says

      March 23, 2017 at 2:44 pm

      NVD, yes removing the capacitor will cancel the delay effect.
      and it can be effectively used for an automatic faucet application…

      no mods will be required

      Reply
  9. Kesava Raj says

    November 22, 2016 at 2:37 pm

    Thank u sir

    Reply
  10. Kesava Raj says

    November 21, 2016 at 11:59 am

    I/p supply y r using 2 * IN4148.
    For voltage drop using..
    We can use one IN4007…

    The output Ampere of IN4148 how much it will produce…

    Reply
    • Swagatam says

      November 22, 2016 at 3:00 am

      two diodes are for dropping 0.6V + 0.6V = 1.4V from the 5V.

      you can use two 1N4007 diodes instead.

      ampere consumption will depend on the PIR consumption. 1N4148 rating is 100mA

      Reply
  11. Swagatam says

    August 26, 2016 at 2:36 am

    you can refer to the following article and check how the transistor is configured with the triac, the same can be done with the above circuit

    https://www.homemade-circuits.com/2011/12/make-simple-refrigerator-thermostat.html

    Reply
  12. john kg says

    July 21, 2016 at 6:31 am

    good day sir
    i have made the circuit and its working perfect but its delay period is not so long since the 470 mf capacitor is charging to 3.1 v ( the output volt of the pir module. so inorder to get more delay period how to charge the capicitor to more volt like 12v what modification can i use in the above ckt to get more delay time (i even use 1000 uf still not effective
    thaku sir
    john

    Reply
    • Swagatam says

      July 21, 2016 at 10:57 am

      John, you may have to do the following modifications:

      remove the relay from the collector of the BC547 and replace it with the 470uF cap.

      take a BC557 transistor, connect its base to the collector of BC547 via a 22k resistor….connect its emitter with the positive..and connect the relay across its collector the negative supply line.

      Reply
  13. john kg says

    July 16, 2016 at 3:31 am

    goood day sir
    i would like to make a pir sensor activating light using 4538 timer ic ,the purpose is the delay period of pir module which i am having is anly about 20 sec
    and it turns off before it retriggers.so inorder to get the delay period more can i use a 4538 timer ic . if it posible pls help me how to connect the triggering signal to 4538 ic
    thanking you
    john

    Reply
    • Swagatam says

      July 16, 2016 at 6:17 am

      John, you can use a 555 based monostable for the purpose, because using a 4538 could make the configuration unnecessarily a little complex

      you can use the following concept with the above PIR ciruit:

      https://www.homemade-circuits.com/2014/06/input-trigger-synchronized-monostable.html

      Eliminate R3, R4, BC557 from the circuit….and also remove the relay from the above PIR circuit

      now simply connect the junction pin#2 and R1 from the 555 circuit with the collector of the BC547 of the PIR circuit

      Reply
  14. manjunath says

    June 2, 2016 at 12:43 pm

    sir, in the above circuit can i use "TWO" pir sensors that results in activating load (light) in two differnt locations. if presence of human in any one of sensor the load should activate how can i insert another "pir" sensor thank you .

    Reply
    • Swagatam says

      June 3, 2016 at 8:34 am

      Manjunath, yes that can done by configuring the second PIR exactly as the shown PIR in the diagram.

      the junction of the 1K and the 470uF gets the input feed from both the PIRs via individual diodes

      the supply terminals are joined as per the shown PIR wiring

      Reply
  15. Gerald Akamaka says

    May 11, 2016 at 5:39 pm

    Good day sir, I am an electrical /electronic engineering student in Nigeria and I have been building most of your circuit ever since and I have to say a very big thanks to you, you are a great man.

    I want to build the circuit above but I have a problem with the PIR sensor, I couldn't get the exact model used in the circuit but found another model with five pins/terminals with model number (SV612A-V1.4).
    How can I use this model in the circuit above?

    Reply
    • Swagatam says

      May 12, 2016 at 10:40 am

      Hi Gerald, I am glad to know that you could succeed with many of the circuits from this website.

      Please go through the datasheet of the PIR as referred in the previous comment, you should be able to figure out the wiring details, if you still have problems, let me know about it I'll try to help.

      Reply
  16. Rajkumar v says

    March 26, 2016 at 4:27 am

    Dear sir good day to you,
    It works perfect for me. But not accurate. How to adjust Retriggering' option ? (L&H position)Why is this? Can you please tell me?

    Reply
    • Swagatam says

      March 27, 2016 at 5:20 am

      Dear Rajkumar,

      Please Google "PIR retriggering" and you'll be able to find the the required answer online.

      and if you want the circuit to be more sensitive then you may have to employ an opamp for the amplifications, as explained in the following article.

      https://www.homemade-circuits.com/2012/10/how-to-understand-and-connect-passive.html

      Reply
    • Unknown says

      May 11, 2016 at 5:18 pm

      Dear sir, good day to you

      I tried to build the above circuit but encountered a problem with the PIR sensor.
      I couldn't find the the exact model in my country but found another one with five pins with model number (SV612A-V1.4). please sir, how can I use this model in the above circuit?.

      Reply
    • Swagatam says

      May 12, 2016 at 10:35 am

      Hi, you can check out the datasheet of the unit below, and configure the circuit accordingly.

      http://www.gme.cz/img/cache/doc/754/295/pir-modul-sb00612a-2-datasheet-6.pdf

      Reply
  17. Sansa says

    February 26, 2016 at 8:00 am

    Good day sir. I am an electrical engineering student. I just want to verify if this circuit is applicable for electric stand fan . I am thinking of making this circuit for my research project and i am hoping you could help me with this. Hoping for a response sir.

    Reply
    • Swagatam says

      February 26, 2016 at 11:32 am

      Good day Sansa,

      yes you can use it with a stand fan, but please note that the PIR will sense only as long as the people are moving, it will stop sensing if the people are stationery.

      Reply
    • Sansa says

      May 31, 2016 at 1:47 am

      what kind of pir sensor will i use here sir?

      Reply
    • Sansa says

      May 31, 2016 at 1:51 am

      sir,i am planning to add thermistor in the circuit. will it work? and where can i connect the thermistor if ever sir?what connection is best suitable ?

      Reply
    • Swagatam says

      May 31, 2016 at 10:59 am

      Sansa, thermistor will not work in place of PIR..if you are planning to make a temp controlled fan then that will be much complex

      Reply
    • Sansa says

      July 20, 2016 at 6:00 am

      Thanks sir. What about the relay sir? What is the maximum and minimum ampere should i use in the ckt so it would work properly?

      Reply
    • Swagatam says

      July 20, 2016 at 10:52 am

      You can use any 12V, 5 amp relay, as shown at the end of this article

      https://www.homemade-circuits.com/2012/01/how-to-understand-and-use-relay-in.html

      Reply
    • Sansa says

      July 22, 2016 at 6:34 am

      The type of pir sensor that u use hir sir is not available in our country. i had seen this type of pir sensor revision B 555-28027. Is it ok if i can use it in place of the sb612a-02-001 pir sensor?

      Reply
    • Swagatam says

      July 22, 2016 at 11:32 am

      yes it can be used if its working specification is similar to the shown model.

      Reply
    • Sansa says

      August 5, 2016 at 10:52 am

      Good day sir. I was so eager to do the circuit but can i request something sir. Can you pls make a circuit also sir that has pir sensor and thermistor as one of the components sir?pls sir. We have our research project and i dont know know how to make tge circuit sir

      Reply
    • Swagatam says

      August 6, 2016 at 1:36 pm

      Sansa, do you want the themistor for detecting the room temperature and activating the fan automatically?? that may not be possible with an easy design.

      Reply
    • Sansa says

      August 6, 2016 at 2:58 pm

      Yes sir. That would be okay for me sir even if the design is not easy. Can u pls design it sir?

      Reply
    • Swagatam says

      August 7, 2016 at 11:43 am

      I'll try to design it if it seems feasible for me….

      Reply
  18. Sri Sravya says

    January 2, 2016 at 3:24 pm

    Hello sir…very glad to text you…I am electronics student..I need your guidance for my final year project on this topic..can you help me??

    Reply
    • Swagatam says

      January 2, 2016 at 4:43 pm

      Hello Sri, I'll try my best to help, please feel free to ask any related question…

      Reply
  19. sajid munshi says

    December 28, 2015 at 6:12 am

    i am unable to find a ckt can you please mail me a ckt for so

    Reply
    • Swagatam says

      December 28, 2015 at 8:38 am

      it could be your country's internet problem, open the article in any proxy server, you'll be able to see it.

      Reply
    • Sri Sravya says

      January 2, 2016 at 3:23 pm

      Sir,I am a electronics student.. can you help me in my final year project regarding this topic??

      Reply
  20. Swagatam says

    October 16, 2015 at 3:49 pm

    you can connect them in parallel with the same circuit, just make sure the "out" pins are terminated through individual diodes…..

    Reply
  21. Swagatam says

    October 10, 2015 at 5:23 am

    give more info…

    Reply
  22. Narottam Gupta says

    August 23, 2015 at 11:05 am

    Thanks.. Mr. Andrras..
    & me also request to …Sir Swagatam to give out a different circuit which is detect by human presence. The title will be "Human presence sensor switch activate" …

    Reply
    • Swagatam says

      August 23, 2015 at 3:05 pm

      Narottam, you can refer to the following recent post for learning regarding my research:

      https://www.homemade-circuits.com/2015/08/pir-circuit-for-detecting-static-or.html

      Reply
  23. Andreas Christodoulou says

    August 22, 2015 at 3:28 pm

    Mr Gupta he is absoltely right !! Those comercial PIR's that sell on market can only detect motion either human or not (even a slight leaf movement or passing pet) And by way if you stay still there is no dectection.
    Must be something different circuit or different sensor??. Never heard or never see my self,of an oscillating pendulium ????? other than that will take too much space.

    Reply
  24. Narottam Gupta says

    August 22, 2015 at 9:37 am

    But sir…if I do this then also I think will be create a problem…like, the switch will be OFF after the PIR time setting (maximum 5 minutes) then again will be ON. i.e. the relay will be continue ON-OFF..ON-OFF and this is not good for an appliance.

    Reply
    • Swagatam says

      August 22, 2015 at 11:57 am

      How can that happen? I did not get your point?…

      yes but the oscillation can cause a continuous ON/OFF of the relay which can be corrected by using small delay OFF circuit.

      you can utilize the second circuit from the following article:

      https://www.homemade-circuits.com/2012/05/simple-delay-timer-circuits-explained.html

      remove the push switch and simply join the 1000uF and the 2m2 junction with the output of the oscillating PIR.

      also alternatively, instead of an oscillating the PIR, you can use an oscillating barrier just in front of the PIR which will alternately block the PIR detection and keep it triggering in the presence of a human.

      the delay timing can be optimized by appropriately selected the 1000uF cap or the 2M2 resistor.

      Reply
    • Swagatam says

      August 22, 2015 at 11:58 am

      …sorry an oscillating barrier might not work, you'll need an oscillating PIR itself…

      Reply
  25. Narottam Gupta says

    August 21, 2015 at 8:53 pm

    Sir,
    please believe me…
    I've done this circuit accurately as your advice…and the relay is operate by the sence of human motion. Don't operate by humane prasence.
    And after that I had search in google "function of PIR" and I had seen that… PIR is a human motion sensor.

    Reply
    • Swagatam says

      August 22, 2015 at 3:52 am

      Yes Narottam you are right, PIR sensor internal circuit is designed to detect only motion, although the actual pyroelectric material can sense human body heat, it's sensitivity can be too weak so it might not detect a static human presence correctly.

      To convert the above design into a static human detector you may have to mount the PIR on small motor mechanism or a pendulum kind of mechanism, which will cause the PIR module to oscillate very slowly across a distance of about 3 to 4 inches….this might help to transform any conventional PIR to detect even a static human within the specified range.

      Reply
  26. Narottam Gupta says

    August 20, 2015 at 2:23 pm

    Sir,
    I've done this project..
    but, this circuit work only based human motion, i.e. when I'm lie in the room (no movement by me) then the circuit will OFF after the PIR setting time(maximum 5 minutes), and it will ON again when done some movement by me.
    But I want to that circuit which will not OFF when I don't move( like lie in the room) .
    plzz help me…

    (I'm very poor in English please try to understand that I want to say..)

    Reply
    • Swagatam says

      August 21, 2015 at 4:08 am

      Narottam, that's not correct, the PIR will keep responding and remain switched ON as long as a human is present within the range of its detection.

      If you move away from the range or if you stand somewhere out of its detection zone it won't be able to detect your presence…so make sure the PIR is able to "see" you, meaning keep the PIR in such a way that its angle of detection is maximum and optimal…..

      Reply
  27. Narottam Gupta says

    August 17, 2015 at 10:10 pm

    Thank you sir..

    Reply
  28. Narottam Gupta says

    August 17, 2015 at 10:30 am

    I've done this project.

    Thnq..sir…For post this circuit.
    & I request you to post a circuit of "Wireless mobile charger" plzz sir..

    Reply
    • Swagatam says

      August 17, 2015 at 12:05 pm

      thanks Narottam,

      a wireless charger circuit can be a difficult project, if I succeed in cracking it will surely publish it for you!

      by the way I have one related circuit which you can refer to

      https://www.homemade-circuits.com/2012/01/how-to-make-inductive-li-ion-battery.html

      Reply
  29. Andreas Chris says

    July 5, 2015 at 5:51 pm

    Can we use transformerless to drop down from 220v to 12v dc (max 2W) without using ac/dc adaptor as this will add more money to be spent??

    Reply
    • Swagatam says

      July 6, 2015 at 4:26 am

      yes, you can the try the following circuit for implementing it:

      https://www.homemade-circuits.com/2015/05/zero-crossing-controlled-surge-free.html

      Reply
  30. Sham says

    June 26, 2015 at 6:30 pm

    I would like to mention one thing. When i connect adapter to relay terminal directly and switch on the supply i could hear only humming noise from relay. That's the reason i chose to add a 100uF cap across the source. When i connected cap, relay was making clicking sound.

    Reply
    • Swagatam says

      June 27, 2015 at 5:24 am

      that proves that your adapter is faulty…

      Reply
    • Sham says

      June 27, 2015 at 7:48 am

      Hi Swagatam,
      Yes the adapter was faulty. The supplier mentioned it was current controlled and voltage varies on back inductance. The cap does NOT heat up with other adapter.
      It was expensive lesson for me,since i blew up PIR module and couple of ckts i had made. Next time i will cross check the voltages before proceeding.:-)
      Plz excuse me for bothering you.

      Reply
    • Swagatam says

      June 27, 2015 at 11:40 am

      No problem sham, there's no short-cut to learning:) ….keep it up

      Reply
  31. Sham says

    June 26, 2015 at 6:25 pm

    I tried with cap before diode. No use, cap still getting veru hot. This time i did not allow to blow up.
    Yes, it was reading 26V before blowing up. I was reading the value with supply on.
    Am confused now. Why the hell does the cap getting hot. I checked the relay resistance, it is 400 ohms. 4148 is connected across relay. 10uF 25V is connected across relay. I know its simple ckt. With PIR the relay switches few times and after few seconds boom!
    Here i would like to know one thing, why my relay is not switching when the 12 v adopter is made contact with relay?

    Reply
    • Swagatam says

      June 27, 2015 at 5:23 am

      a capacitor will explode only if the fed voltage across it is much higher than its rated value, or if it's connected with the wrong polarity, there cannot be any other reason for a capacitor to explode.

      buy another adapter from a different shop and check the results.

      Reply
  32. Sham says

    June 26, 2015 at 11:58 am

    Adapter o/p is 12.64 V. I tried connecting a diode between o/p of adapter and cap with 25v rating. It again blew up one more time. I will try connecting cap to adpt terminals directly, i,e before diode and check rather than the relay terminal.

    Reply
    • Swagatam says

      June 26, 2015 at 2:43 pm

      you said it was 26V ?

      Reply
  33. Sham says

    June 26, 2015 at 6:31 am

    Hi Swagatam,
    Few days back i purchased 12V AC-DC adaptor. Using this i was not able to trigger on the relay. So i connected a 100uF cap across the +ve of relay and other end to GND to remove AC ripples which could have leaked along with DC. This setup was able to trigger the relay. The same i used in simple motion sensor ckt without ldr. Removed 10uF across DC side of relay and connected 100uF to +ve of relay and gnd . PIR was NOT connected(luckily). When i applied 12V, in short time the 100uF exploded while checking the voltage across the cap. It was reading around 26V at that time. I know i have done something wrong. Plz help me in getting this ckt working.

    Reply
    • Swagatam says

      June 26, 2015 at 11:08 am

      Hi sham, connect the capacitor across the adapter output supply terminals, and make sure that the capacitor rating is much higher than the adapter supply voltage….do this by first confirming the adapter voltage through a multimeter.

      Reply
    • Swagatam says

      June 26, 2015 at 11:09 am

      ….if it's showing 26v then throw away the adapter, it's a bad quality adapter and very dangerous….if it's rated at 12V then it must show 12V under any cost.

      Reply
    • Swagatam says

      June 26, 2015 at 11:10 am

      ..at 26V your 12V relay will become hot and get damaged soon….

      Reply
  34. Sham says

    June 25, 2015 at 8:17 pm

    Hi Swagatam,
    Something went wrong. I purchased 12v AC-DC adaptor. But it was not turning on the relay coil. I could hear humming noise from relay, So i connected 100uF cap across + ve of relay coil and -ve of cap to supply Gnd. It worked for few seconds and later the capacitor exploded. If cap is not connected, relay will not switch on… How to rectify this problem? plz help me.

    Reply
  35. Sham says

    June 20, 2015 at 7:48 pm

    Yes, Perfect. Its working as desired.
    Thanks again Swagatam.

    Reply
    • Swagatam says

      June 21, 2015 at 6:34 am

      that's great sham….thanks for sharing the result

      Reply
  36. Sham says

    June 19, 2015 at 5:48 pm

    OK. I got some suggestion from your other article.
    https://www.homemade-circuits.com/2011/12/super-simple-light-activated-switch.html
    I will try this and update you.
    Sham.

    Reply
    • Swagatam says

      June 20, 2015 at 2:34 am

      OK!

      Reply
  37. Sham says

    June 19, 2015 at 5:31 pm

    And btw i am using 100k pot at the base of LDR 547.

    Reply
    • Swagatam says

      June 20, 2015 at 2:34 am

      …a fixed resistor will also do, a pot may not be required because setting the precise time of operation is not so important.

      Reply
  38. Sham says

    June 19, 2015 at 4:56 pm

    Swagatam,
    I noticed that at some point of light intensity, the relay toggles continuously. I have placed the LDR on the other side of the light source. As the daylight fades off the relay started to toggle. Looks like it is not getting latched. How to fix this defect?
    I have used 4.7uf across CE of LDR ckt and 100uf from BE of PIR ckt. Since i did not have 1uf and 470uf cap.

    Reply
    • Swagatam says

      June 20, 2015 at 2:32 am

      Hi Sham, the light from the PIR lamp should not be allowed to fall on the LDR, otherwise it'll malfunction.

      also for a stable response you can try connecting a 10uF/25V capacitor directly across the relay coil

      Reply
  39. Sham says

    June 19, 2015 at 7:18 am

    Hi Swagatam,
    I could not get back early. Please excuse me.
    Tested the circuit today. Its working perfectly well. Once again hats off to you and thank you so much.

    Reply
    • Swagatam says

      June 19, 2015 at 1:38 pm

      Hi Sham, that's great, congrats to you on that. I am glad the circuit worked as intended.

      Reply
  40. Sham says

    June 16, 2015 at 6:09 pm

    Ho very nice. Sure will check tomorrow and inform u. Thanks a lot Swagatam.

    Reply
    • Swagatam says

      June 17, 2015 at 4:32 am

      you are welcome sham…

      Reply
  41. Sham says

    June 15, 2015 at 11:59 am

    Hi Swagatam,
    I have tried the above circuit for my kitchen light. It is working perfectly and a great way conserve energy. My kitchen has sufficient daylight during day time so i dont need pir to switch on the light during day time. I need it only during absence of daylight. How to get this done by using LDR in the above circuit?
    I have seen your other articles on PIR but it seems to be complicate for me with dual relays and 555 timer. Please show me a simple way to do this.
    Thanks,
    Sham.

    Reply
    • Swagatam says

      June 16, 2015 at 2:06 am

      Hi Sham, glad to know that the circuit is serving the purpose for you.

      I'll upgrade the diagram as per your requirement, and post it soon in the above….please keep in touch.

      Reply
    • Sham says

      June 16, 2015 at 3:41 am

      Thanks Swagatam. Looking forward to it.

      Reply
    • Swagatam says

      June 16, 2015 at 6:18 am

      Hi Sham, it's been updated, you can check it out

      Reply
  42. manjunath says

    March 21, 2015 at 6:35 pm

    sir i had build the circuit as shown in diagram and connected light instead of fan and it seems to be not working properly, means if i close the sensor with paper or if nobody present in an range of sensor also the light glows, and while glowing if i went near the light will switches off for few seconds and then glows agalin by making small tik sound . what it means and i was not sure about connecting wire to relay.
    i had connected 220 v one wire to nc and and another wire to light and then another wire of light to relays " com" NO of relay has been left without any connection
    where the mistake has been occured please suggest me sir,
    sorry for my bad english
    sure

    Reply
    • Swagatam says

      March 22, 2015 at 1:14 pm

      Manjunath, you can first confirm the working of the PIR sensor separately by connecting an LED across its out and ground pins, while doing this you can keep the relay disconnected from the transistor.

      check how the LED responds in the presence or absence of a human body, this will confirm whether the fault is in the PIR or the transistor driver stage.

      Reply
    • manjunath says

      March 24, 2015 at 7:32 am

      sir, i had tested pir sensor with both buzzer and led. it was working properly,
      then what may be the problem, please help me to correct the circuit . thanks

      Reply
    • Swagatam says

      March 24, 2015 at 1:33 pm

      please check it in the present set up that you have made, or alternatively you can connect an LED in series with the transistor base resistor, if this LED toggles as per the specs, but the relay doesn't then the fault could be in the transistor….for more info you can connect another LED parallel with the relay coil with a series 1k resistor…

      check response from all these LEDs, it will help you to pin point the issue.

      Reply
    • manjunath says

      March 25, 2015 at 3:40 pm

      sir i had made new circuit of the same above, because of that i cant find the faulty stage. as i am an new to electronics but this was also the same as above so i dicided to send the real picture of my circuit made if you agree. i was so intersted that i dont want to leave this thanks

      Reply
    • Swagatam says

      March 26, 2015 at 4:00 am

      manjunath, please do the steps which I mentioned in the previous comment, this is only way you'd be able to troubleshoot the circuit.

      pls do it and check the results

      Reply
    • manjunath says

      March 29, 2015 at 7:21 am

      sir please can you discribe the method of connecting an LED in series with the transistor base resistor to check th faulty stage, or any site address reguarding this . thank you for your cooperation.

      Reply
    • Swagatam says

      March 29, 2015 at 4:34 pm

      Manjunath, cut the link between the transistor base and the 1k resistor and then connect the longer lead of the LED with the 1K and the shorter lead with the base of the transistor

      Reply
    • manjunath says

      March 31, 2015 at 8:25 am

      SIR, i had made above test by connecting led to transistor base, and another led to relay coil with 1k resistor . both led responce to sensor but led connected to transisitor was too low bright.(was any mistake in this stage) when i switch on both circuit and relay load , even though if no body present in front of sensor it goes on running,and if i move in front of sensor it switch off the load for few seconds and then goes on glowing. please slove this
      thanking you

      Reply
    • Swagatam says

      April 1, 2015 at 4:06 am

      The transistor base LED and the relay LED should light up together in the presence of a human in the zone and shut off permanently in the absence of a a human being

      If the LEDs are lighting up with nobody around then there could be something wrong with your PIR device.

      Reply
    • manjunath says

      April 1, 2015 at 2:46 pm

      sir, sorry to disturb you that i had connected new pir sensor but it was working as before it had. in this comment section interested peoples who suceeded in this project please help me as i am not to disturb this comment section.
      was this an right swagatham sir , my mail id
      [email protected]

      Reply
    • Swagatam says

      April 2, 2015 at 6:13 am

      The transistor base LED and the relay LED should light up together in the presence of a human in the zone and shut off permanently in the absence of a a human being

      If the LEDs are lighting up with nobody around then there could be something wrong with your PIR device.

      Reply
    • sskopparthy says

      April 5, 2015 at 7:27 am

      Please let me know the model of the PIR sensor that you've used, so that I could help you further in this regard.

      Reply
    • manjunath says

      April 5, 2015 at 12:08 pm

      sir i had used and tested " robodo hc-sr501" in this one is having trigger i think.
      thank you

      Reply
    • sskopparthy says

      April 6, 2015 at 11:16 am

      As far as I know, HC-SR501 sensor has its Vcc on the left and its control signal pin is its centre pin. If you have connected it correctly, it is not an issue but if you didn't, then you have to interchange the connections between Vcc and signal pin ACCORDING TO CIRCUIT DIAGRAM ABOVE.
      If still it does not work, try replacing the transistor as you told that you even tried using a new pir sensor in one of your above comments.
      Also recheck the connections that you've made and correct them (if any).
      Above steps might solve your problem. Even after following above steps, if your cicuit does not work, try troubleshooting the circuit according to the instructions given by our senior, Swagatam sir.

      Reply
    • manjunath says

      April 9, 2015 at 2:48 pm

      sir, this project also succeded with your guidence. thanks a lot.
      but as shown in diagram and reffering to relay topic, i had confused that wheather relay load has to connect to "NC or NO"
      but my circuit working .SIR this just to clarify, thanks

      Reply
    • Swagatam says

      April 10, 2015 at 3:16 am

      Thanks Manjunath, in the article the PIR is assumed to generate a high pulse on detection of a subject, so the shown connections of the load to the relay is correct, it's across the N/O point….N/C is open

      Reply
    • Unknown says

      June 9, 2017 at 3:42 am

      He connected the relay wrong. He should have connected it to the n/o instead of n/c.

      Reply
  43. manjunath says

    March 7, 2015 at 9:18 am

    sir can know the connections of relay 12v spdt in the diagram clearly , that i was new to electronics

    Reply
    • Swagatam says

      March 7, 2015 at 10:02 am

      manjunath please go through the following article for more info:

      https://www.homemade-circuits.com/2012/01/how-to-understand-and-use-relay-in.html

      Reply
    • manjunath says

      March 16, 2015 at 3:04 pm

      sir I had gone through above link but I have some doubts please solve it sure I will success in this circuit
      1) which diod( number of diod) has connected from pir output
      2) wheather both side of relay coil are same ( output and input) mean which side of coil is connected to collecter bc 547 and which side of coil to 7805
      ground.

      3) As in diagram first wire of 220v is connected to realy n/c and that 220v wire ic connected to fan and where to connect other wire of fan to

      Reply
    • manjunath jain mp jain says

      March 16, 2015 at 4:02 pm

      " rel="nofollow ugc">comment image

      Reply
    • Swagatam says

      March 17, 2015 at 5:51 am

      manjunath,

      the diode can be a 1N4007

      relay coil does not have a polarity, so you can simply connect it anyway round across the shown points.

      an AC load will never have a polarity, so here too the shown load (fan) may be connected anyway round across the indicated locations

      Reply
  44. Ashish says

    March 4, 2015 at 5:15 am

    sir what should i use as a 12v dc supply… should i design a rectifier circuit separately?…. or using a 12v battery could be a better option?… please guide..
    Thanks

    Reply
    • Swagatam says

      March 5, 2015 at 2:27 am

      Ashish, the 12V could be from a ready made 12V AC/DC adapter unit or any similar power supply.

      Reply
  45. Bubai says

    February 12, 2015 at 6:11 am

    What will happen if I use 7812 for output of 12v when input of 12vDC instead of 7805 as +5v regulator ?

    PIR device will burn ?
    Please clear my concept.

    Reply
    • Swagatam says

      February 12, 2015 at 1:26 pm

      if your PIR is specified to work with 5V then surely it will burn.

      Reply
  46. Ankur Sengupta says

    November 16, 2014 at 2:10 am

    Sir, the problem I am facing after making the sensor is that .. If I have set the delay timing for 30sec.. And i am sitting in that area ideally i.e. there is no physical movement it would get automatically turn off after the delay timing.. Can u plzz suggest me how to rectify this problem of mine..

    Reply
    • Swagatam says

      November 17, 2014 at 4:48 am

      Ankur, PIR devices are designed for sensing IR from our bodies not for sensing motion….so if it's not sensing your presence then may be you are not in the range of the device or there's some fault in the system components.

      Reply
  47. style says

    October 17, 2014 at 7:12 am

    Sir from where I will get PIR sensor and is it costly

    Reply
    • Swagatam says

      October 18, 2014 at 4:32 am

      yes it will be a bit costly, inquire with your local electronic retailer, he'll know better.

      Reply
  48. Chiranjit Samanta says

    October 11, 2014 at 5:21 pm

    If I used the sensor for a cfl light or tube light, when I entire the dark room then it worked properly?

    Reply
    • Swagatam says

      October 12, 2014 at 8:42 am

      yes it will work.

      Reply
  49. Chiranjit Samanta says

    October 11, 2014 at 3:13 am

    When I needs to change the speed of the fan then what happens otherwise it's controlled by human manually?

    Reply
    • Swagatam says

      October 11, 2014 at 8:28 am

      speed control has no connection with the above circuit, it'll need to be controlled through a series regulator as usual

      Reply
  50. Souren Bhattacharya says

    September 28, 2014 at 9:39 am

    how many circuits are required for controlling 3/4 fans in a 350 sq/ft class room.?? is the sensor is available in kolkata?/

    Reply
    • Swagatam says

      September 28, 2014 at 2:24 pm

      A single unit would take care of each room comfortably, preferably it could be positioned on the center of the ceiling in order to get a radial view of the classroom.

      All the fans could be controlled through the single relay for getting a simultaneous ON/OFF toggling.

      PIR sensors have become too common nowadays, so it should be easily available in Kolkata too.

      Reply
  51. Jayanath Ranasinghe says

    September 23, 2014 at 8:41 am

    if any animal comes it will get on? i mean cat or dog? if human motion is not there will it remain on position?

    Reply
    • Swagatam says

      September 23, 2014 at 3:19 pm

      yes it'll detect all warm blooded living beings..

      with nobody in the range the unit will stay shut off…and get activated when the same is detected

      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 Understanding SG3525 IC Pinouts
  • Dan on Understanding SG3525 IC Pinouts
  • Swagatam on High Current Wireless Battery Charger Circuit
  • Swagatam on Timer Based Cell Phone Charger Circuit
  • Nitesh Agrawal on Timer Based Cell Phone Charger 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