PIR motion sensor circuits

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

PIR motion sensor circuits

Post by burger2227 »

I purchased a motion sensor module from Ebay that has sensitivity adjustments for about $2 from China:
Image
Some PIR modules may not have adjustments and some may be arraigned differently.
The common ground pin is normally on the side nearest the BISS0001 chip that does most of the work.
The sensor by itself would not be able to drive anything. The chip helps boost and control the output.

Testing is straight forward as the output only needs an LED and current resistor depending on the voltage used.

I was able to get it to work with voltages from 4 volts to 12 volts. Voltages under 4 volts were not very accurate in tests.
Image
The gold trimmers on the side can set distance and delay time. The yellow jumper at the bottom sets the triggering
to once every delay interval(default) or for multiple triggering so every motion keeps it on.

The module takes about a minute to warm up before it senses accurately. The sensor will probably turn on at startup!

I'll be using a transistor to drive a relay for a better test of its flexability. It tends to want to go on and off a bit with
the default settings.

The lens cover is easily removed, but it cuts down on the accuracy of motion detection:
Image
I also ordered some extra RE200B IR sensors(left) and extra lenses for other circuits I found. They cost about a dollar
each so the modules are a bargain. The modules just take up a lot more space. I was hoping to find smaller lenses too.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: PIR motion sensor circuits

Post by burger2227 »

Today I ordered a smaller PIR module to see how it works:
Image


The bottom view labels the connections for the solder points:
Image
This module has no adjustments and uses 3 chips. The 3 legged chip is a voltage regulator.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: PIR motion sensor circuits

Post by burger2227 »

The mini PIR circuit I received is shown below:
Image
The +, output and - common pins are the same as the larger PIR board from left to right.

I was able to just plug the mini PIR circuit into the previous LED circuit using 3.5 volts:
Image
The PIR + power wire is yellow, PIR board output is red and black is common.

The LED stays on for about 6 seconds with a range of about 3 feet for small moves and 6 feet for body moves.
Continuous moves keep the LED on. Initialization warm up takes about 45 seconds until LED turns off.

The output voltage is always about 2 volts no matter what the supply voltage is from 3 to 12 volts.
Image
This module can use supply voltages up to 20 volts so it could be used in an automobile too.

This mini module's lens is one eight of the size of the larger adjustable module:
Image

The larger module requires more than 4 volts to work properly. Otherwise it may trigger on its own.

I'm contemplating making a 5 volt supply from a capacitor on a 120 volt line and trying to turn on a relay to control lights or a fan.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
iamdenteddisk
Veteran
Posts: 185
Joined: Mon Jun 30, 2008 4:10 pm

Re: PIR motion sensor circuits

Post by iamdenteddisk »

good info there man, so they are mostly identical I use the bulky shack pir sensors all the time but I like the small one I wonder if it's current draw is the same and can be used with BS2 homework boards? i use them in my bugbots.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: PIR motion sensor circuits

Post by burger2227 »

Neither uses much current. The Mini PIR is set up to continually trip and reset the elapsed time of about 6 seconds so it stays on if tripped continually. The larger one has a jumper to set that and has adjustments for duration and distance.

Both are fairly accurate, but the larger one can be set for more distance. The output voltage is about 2 volts so it will light a red LED or trip a NPN transistor. Both come from China for about $2 or $3.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: PIR motion sensor circuits

Post by burger2227 »

Here is a very good motion sensing light that also only works when a room is dark:
Image
They each use 4 AA batteries which last over 6 months in regular use. Mr Beams sells 3 for about $30.

The photocell above the PIR monitors room brightness:
Image

The LP0001 chip drives the circuit and delays turn off time for about 30 seconds:
Image

The LED is super bright and the PIR is more sensitive than the one in the PIR wall switch.
It turns on with less movement in the bathroom while it is out on the wall in the hallway.
Image
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: PIR motion sensor circuits

Post by burger2227 »

Found an interesting motion device for $5 at Ollies. A door knob light that lights up when you approach the door at night:
Image
It allows you to see to insert a key nearby also. There is a button on the back to change the color too.

Three AAA batteries are arraigned around the ring with the PIR circuit and 2 bright surface mount LED's:
Image
The back side has 4 magnets to hold the ring assembly on the door. Double sided tape holds a full metal ring on to the door.
Then the ring can be removed from it if necessary. It would also make it a bit easier to steal so I would be careful outside...
Maybe the bright light will scare thieves away... :wink: I used those magnets to magnetize some tiny screwdrivers I bought too.

The PIR output is amplified and controlled by the M7616 chip. The 2 LED's are set on small PC boards to shine sideways:
Image
The translucent cover ring also has a clear flat plastic optical light transmission ring that goes from LED to LED.
A Fresnel lense is built into the translucent cover at the spot where the PIR sensor is located so it has to line up
properly. There is also a white paper liner to block the display of the plastic battery base. The PIR, LED area appears
as a dark area when the ring is lit. It lights up my entire bedroom enough to see enough to walk around in the dark.

Here is a PIR relay application that uses the M7616 chip. If you find a supplier that will sell just a few let me know!
Image
Note that it also can use a photocell on pin 9 to keep the LED's off during the day. See the white splotch in the circuit above.

The RETG pin 1 can use the supply voltage(VDD) to allow re-triggering or ground(VSS) to prevent it.
Image
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply