PIR Sensor
PIR Sensor
PIR sensor
Page 1
Page 2
[Citation needed]
Left image from Murata datasheet The IR sensor itself is housed in a hermetically sealed metal can to improve noise/temperature/humidity immunity. There is a window made of IR-transmissive material (typically coated silicon since that is very easy to come by) that protects the sensing element. Behind the window are the two balanced sensors.
Page 3
Image from RE200B datasheet You can see above the diagram showing the element window, the two pieces of sensing material
Image from RE200B datasheet This image shows the internal schematic. There is actually a JFET inside (a type of transistor) which is very low-noise and buffers the extremely high impedence of the sensors into something a low-cost chip (like the BIS0001) can sense.
Lenses
PIR sensors are rather generic and for the most part vary only in price and sensitivity. Most of the real magic happens with the optics. This is a pretty good idea for manufacturing: the PIR sensor and circuitry is fixed and costs a few dollars. The lens costs only a few cents and can change the breadth, range, sensing pattern, very easily. In the diagram up top, the lens is just a piece of plastic, but that means that the detection area is just two rectangles. Usually we'd like to have a detection area that is much larger. To do that, we use a simple lens such as those found in a camera: they condenses a large area (such as a landscape) into a small one (on film or a CCD sensor). For reasons that will be apparent soon, we would like to make the PIR lenses small and thin and moldable from cheap plastic, even though it may add distortion. For this reason the sensors are actually Fresnel lenses :
Page 4
Image from Sensors Magazine The Fresnel lens condenses light, providing a larger range of IR to the sensor.
This macro shot shows the different Frenel lenses in each facet!
Page 6
Images from NL11NH datasheet Here is another image, more qualitative but not as quantitative. (Note that the sensor in the Adafruit shop is 110 not 90)
Page 7
Page 8
Most people want to position PIRs in a particular location and often times thats far from the other electronics, in which case wires will work just fine.
Page 9
Page 10
Now when the PIR detects motion, the output pin will go "high" to 3.3V and light up the LED! Once you have the breadboard wired up, insert batteries and wait 30-60 seconds for the PIR to 'stabilize'. During that time the LED may blink a little. Wait until the LED is off and then move around in front of it, waving a hand, etc, to see the LED light up!
Retriggering
Page 11
Now change the jumper so that it is in the H position. If you set up the test, you will notice that now the LED does stay on the entire time that something is moving. That is called "retriggering"
(The graphs above are from the BISS0001 datasheet, they kinda suck) For most applications, "retriggering" (jumper in H position) mode is a little nicer. If you need to connect the sensor to something edge-triggered, you'll want to set it to "non-retriggering" (jumper in L position).
Determining R10 and R9 isnt too tough. Unfortunately this PIR sensor is mislabeled (it looks like they swapped R9 R17). You can trace the pins by looking at the BISS001 datasheet and figuring out what pins they are - R10 connects to pin 3 and R9 connects to pin 7. the capacitors are a little tougher to determine, but you can 'reverse engineer' them from timing the sensor and solving! For the sensor in the Adafruit shop: Tx is = 24576 * R10 * C6 = ~1.2 seconds R10 = 4.7K and C6 = 10nF Likewise, Ti = 24 * R9 * C7 = ~1.2 seconds R9 = 470K and C7 = 0.1uF You can change the timing by swapping different resistors or capacitors.
Purna Chandra Prusti Page 13