In this post I have explained a method which can be probably used for enhancing a passive infrared sensor ability to detect even a static or stationery human presence. This feature is normally not possible with the conventional PIR sensors.
How PIR Detect Human Presence
I have already discussed many PIR based motion detector applications in this website, however all these applications requires the human presence to be constantly in motion in order to keep the PIR detecting their presence, this appears to be a big drawback which prevents these units from sensing a constant or a stationary human occupancy.
However the above explained drawback has a reason behind it. The conventional PIR sensors work by sensing the IR signals from a human body through a couple of parallel slots on their front lens, and its internal circuitry activates only when the IR signals cross between these sensing slots ("visions").
The crossing of IR signals across the sensing slots enables the PIR circuit to translate the info into two corresponding alternating pulses, which is in turn is rectified to generate the triggering voltage at the out pin of the PIR.
PIR Cannot Detect Stationery Target
This implies that if the IR source is motionless, it won't prompt the PIR module to produce any trigger across its output pin. It also implies that the IR signal from the source should somehow keep crossing across the given PIR detection slots in order to enable it to sense a given human being within the zone.
It seems there's no direct or simple remedy for this, because the PIR modules cannot be modified internally for this, which cripples the unit from detecting stationary human presence.
However a logical observance tells us that if its a varying IR source that may be required to keep the PIR module activated, then why not force the PIR itself to be in a constant motion instead of the subject.
The concept can be visualized from the following GIF simulation, which shows an oscillating PIR module and a static human being in the detecting zone.
Here we can see how an oscillating PIR adapts to the issue and transforms itself enabling the detection of even static IR subjects.
This becomes possible because through its movement the PIR module transforms the stationary IR source into a continuously changing IR imaging across its two receiving slots.
Although the idea looks complex, it can be actually simply solved using a slow oscillating PwM controlled motor circuit.
We'll learn the entire mechanism and the circuit details in the following sections.
As we already discussed, conventional PIR modules are able to detect only moving living objects and cannot identify a stationary target which makes its application limited as a human motion detector only.
For applications where the detection of motiolesss human occupancy becomes necessary in such scenarios a conventional PIR can become useless, and might require some external arrangement for upgrading itself.
Designing PIR to Detect Motionless Targets
In the above section I have explained that instead of needing the target to be in motion, the PIR module can be itself be moved over a given radius for implementing the desired static target detection.
In the following sections I have explained regarding a simple circuit mechanism which can be used with a PIR mounted over a small DC motor for the proposed oscillations.
The PWM/Flip Flop Controlled Motor Driver
The system basically requires a PWM controlled speed determination and a flip flop changeover for the motor. The following diagram shows how these features can be attributed to the PIR motor with the help of a simple circuit:
The shown circuit utilizes a single IC HEF40106 hex inverting schmitt gate IC which includes 6 inverter NOT gates.
Gates N1 and N2 are configured to produce an adjustable PWM output which is fed to the gates N4, N5, N6 forming the buffers.
The common output from these buffer gates is terminated to the gate of a motor driver mosfet.
The PWM content is set with the help of P1, which is finally applied to the connected motor via a set of DPDT relay contacts.
These relay contacts determine the direction of the motor movement (clockwise or anticlockwise).
This flip flop DPDT relay contacts is controlled by an astable timer configured around the gate N3, wherein the capacitor C3/R3 determines at what rate the relay needs to changeover in order to allow the motor to change its rotational direction consistently.
The above design allows the motor to execute the required slow to and fro oscillating movement across a given radial zone.
C3 may be selected to initiate the changeover after every 5 to 6 seconds, and the PWm may be adjusted to enable an extremely sluggish motor movement, because it just needs to ensure that the slots of the PIR cross over the IR signals of the target in a timely manner.
However since the motor operation is slow, the output from the PIR will need to be sustained through a delay OFF timer so that the connected load does not switch OFF and ON while the motor movement alternately cuts through the IR lines from the human occupancy.
The Delay Timer
The following delay timer circuit stage can be used which makes sure that each time the PIR output produces the sensed pulse, the delay from the timer is extended for 5 to 10 seconds and the connected load is never interrupted during the process.
In the above set up we can see the motor which receives its electrical drive supply from the PWM/flip flop stage as discussed in the previous paragraph.
The spindle of the motor can be seen coupled with a horizontal shaft over which the PIR is clamped, such that when the motor moves, the PIR goes through a correspondingly changing radial to and fro motion.
While the above PIR motion is induced, the IR signals from a stationary target in the zone is detected in the form of short alternate pulses, which are generated at the output pin of the PIR indicated with the blue wire.
These pulses are applied across the 1000uF capacitor which charges up with each pulse and makes sure that the BC547 is kept in the conducting mode without an interruption during the process.
The relay driver comprising of the BC557 stage responds to the above stable signal from the BC547 collector and in turn keeps the relay ON, as long as the PIR keeps detecting a human presence.
The relay load thus stays activated continuously due to presence of a stationary human being in the area.
However in case the human occupancy is removed or when the target moves away from the zone, the delay timer stage keeps the relay and the load activated for the stipulated 5 to 10 seconds after which it shuts off permanently, until the zone is yet again captured by a potential IR emanating source.
Parts List
- R1, R4 = 10K
- R2 = 47 OHMS
- P1 = 100K POT
- D1, D2 = 1N4148
- D3 = MUR1560
- C1,C2 = 0.1uF/100V
- Z1 = 15V, 1/2 WATT
- Q1 = IRF540
- Q2 = BC547
- N1---N6 = IC MM74C14
- DPDT = DPST SWITCH OR DPDT RELAY
- R3, C3 to be determined by some trial and error
UPDATE:
The above explained PIR circuit for detecting static human presence can be much simplified by employing a signal chopper circuit as depicted in the following GIF simulation:
A careful inspection shows that actually an oscillatory movement is simply not required, the motor and the chopper blade could be allowed to rotate freely by keeping the motor speed at a lower level.
This would also effectively accomplish the intended static PIR sensing operation.
Video Demo proving the static human detection for a PIR
Mark says
Hi sir, just wanted to know some more information about this experiment, wht PIR sensor did you use and also what was the current in which you used for the circuits. As I want to try this for myself and see if it works.
Many thanks.
Swagatam says
Hi Mark, the PIR can be any standard PIR module. I used the following setup for the PIR:
https://www.homemade-circuits.com/wp-content/uploads/2021/10/PIR-UVC-controller.jpg
If you are using a BC547 transistor then make sure to reverse the C/E pinouts of the transistor in the diagram.
Mark says
Thanks Mark, if I made that circuit (the one you attached above) would I then need to expand it to look like the delay timer circuit which is shown in your project above?
Many thanks,
Swagatam says
Mark, in order to convert the suggested PIR diagram into a static human detector, you just have to add a rotating wheel in front of the PIR lens, as demonstrated in the video, in the above article.
The current can be any value as long as the input DC is regulated at 12V.
Jobayer Al Hasan says
Dear Sir, is it possible trigger a relay by Input from 3-4 PIR sensors. Or I can say how can I add many PIR sensor as a Input Instead of 1 PIR Sensor. Thank You.
Swagatam says
Hi Jobayer,
It is possible to connect multiple PIRs with a a single relay. You can connect +/- pins of all the PIR in parallel, for the output pins, make sure to use separate 1N4148 diode with each of the OUT pins of the PIR, and connect the cathodes of the diodes in parallel.
Vivek Paliwal says
Swag, I would be pleased to see the video you were referring to.
Swagatam says
Hi Vivek, you can watch it here:
https://youtu.be/wcN1ktOen0c
Vivek Paliwal says
Dear swag, with all due respect to your expertise, I am definite that it gives false trigger as motor heats. I had invested a lot of skills and time (see mail time also)????. I saw your video also, no flaws in it but may be too short for the motor to heat up.
Swagatam says
Dear Vivek,
first of all the motor should not heat up, no matter how long it is running, mainly because it is supposed to run very slow and it is without any load. Alternatively you can put a partition between the motor body and the PIR to block any kind of radiations.
Vivek Paliwal says
Dear Swag, I agree with sreejith. Actually the video does not show what if the human is absent and wheel is rotating. It keep the light on. May be the heat of motor. NOT SOLVED BOSS
Swagatam says
Vivek,
PIR will not detect a motor disturbance. Did you test the set up practically? However you must first make sure your PIR circuit is working correctly without the motor assembly.
Swagatam says
Just now confirmed!! The motor has NO effect on the PIR, and the PIR switches OFF perfectly in the absence of a human. The design needs just one improvement. Instead of a wheel, use a single stick propeller, because the wheel arrangement is not able to detect humans from greater distances.
So the concept shown in the video is correct and is SOLVED!
Vivek Paliwal says
Yes it works perfectly without motor. Will give your suggestion and revert back
Swagatam says
Okay!
Vivek Paliwal says
It definitely activates by heat of motor. I can video call you also if you wish to see it live
Swagatam says
Absolutely not,I can also show you my video. Your system is unstable or has some other fault.
Swagatam says
A PIR will activate only with human or animal IR not by heat from any other source like lights, soldering iron or whatever..
Riky says
Excellent idea bro, by moving the sensor, they can sense the non moving human.
What if I use wall clock rather than using motor to move the sensor?
Swagatam says
Thanks Riky, wall clock pendulum will not be powerful enough to take the load of the PIR sensor according to me.
Swagatam says
However, you can use the pendulum to oscillate in front of a fixed PIR that will do the job very efficiently…
Sreejith says
I already had made this project with pir on a stepper motor (28byj-48)with attiny 85 adjusting the speed with pir and it showing false trigger with out any human presence. I had changed the speed fast and slow. But it shows false trigger, three other pir also checked. No success.
Swagatam says
The design was tested by one of dedicated readers of this website, you can see the video and the associated details in the following article
https://www.homemade-circuits.com/automatic-pir-solar-home-lighting-circuit/
In your case may be the PIRs are able to detect some form of IR disturbance and therefore getting triggered.
Hamidreza Afsharnaderi says
Hi Mr. Swagatam.
I think an optical chopper or shutter will do the same thing; Just by placing an electro-optical chopper (eg LCD shutters) or a mechanical rotary chopper disk in front of the PIR sensor aperture, a static PIR sensor will do the same thing and there should be no problem if the temprature gradient of chopper and viewing field of PIR sensor is not so much.
Another idea which would do the same thing is to put one or more (depends on the distance to PIR sensor) tiny or big sized flashing incandescent lamps in the viewing field of a static PIR sensor; so logically by adjusting flashing pulses it could be possible to detect stationary targets too.
Best regards.
Swagatam says
Hi Hamidreza, The PIR works using a pair of IR sensors arranged in a differential sensing mode, which requires the source infrared signal to cross across these pairs of sensors, which in turn enables the system to convert them into a pulse cycle. Unless the target goes past these two sensors sequentially the PIR won’t respond correctly….if a shutter is used it will not allow the differential sensor to operate in the specified manner. The second method is not relevant because PIR detection is based on infrared from a living being body which does not require a visible light, an incandescent lamp will in fact create false detection due to its own infrared emission
Unknown says
thats a pretty good idea !!!