| RSS Web Feed for Renewable Energy UK | REUK Shop | Bookmark Site | About Us  

Multiple PIR Sensor Circuits



Multiple PIR Sensor Circuits

Connecting more than one PIR sensors in a circuit

electronics | electric circuit | general
Printer Friendly Version Print Article     

In our article PIR Sensor Circuits we looked at how a PIR Sensor can be used in an automatic security or lighting system. We recommend you read that article before reading on.

Connecting Two PIR Sensors

There are many situations in which it is necessary to use more than one PIR sensor within a system - for example, where lights along the side of a house are controlled by one PIR sensor at the rear and another PIR sensor at the front. Unfortunately, because of the way that PIR sensors work, it is not possible to simply join together the outputs from more than one sensor.

n.b. This article is written for 12 Volt DC powered PIR sensors such as the Honeywell IS-215T (for sale in the REUK Shop). Different PIR sensors - particularly those powered by mains electricity may operate differently.

When a PIR sensor detects motion, its output is 0V - the rest of the time it is 12V. Therefore, if two PIR sensors are connected in series, if one PIR sensor detects motion and the other not, the output would be 12V - indicating no motion detected. This is not what we want. We need a circuit to automatically output 0V if EITHER of the PIR sensors has detected motion (and therefore outputted 0V).

AND Gate Logic

In logic high voltage is represented by 1, and low/no voltage by 0. Therefore, the output from a PIR sensor upon detecting motion is 0, and is 1 the rest of the time. We want an output of 0 when either of the PIR sensors is outputting a 0. This can be summarised by the following truth table:

PIR #1PIR #2PIR #1 & #2
111
100
010
000

This truth table is exactly the same as that for an AND gate - a logic device which gives an output of 1 only if its two inputs are both 1. The traditional symbol for an AND gate is shown below:

logic AND gate symbol

As mentioned previously in our PIR Sensor Circuits article - in order for us to make direct use of the output signal from a PIR sensor we need to invert it - turning a 12V output into 0V, and a 0V output into 12V. When motion is detected by a PIR sensor, the 0V sensor signal is therefore inverted into a 12V signal which can be put across the coil of a relay or a transistor to control lights or other appliances.
The device used to invert the signal is known as a NOT gate - inverting an input of 1 to 0, and visa versa.

The NAND Gate

When connecting multiple PIR sensors in a circuit it is not necessary to put the PIR sensor signals first through an AND gate, and then through a NOT gate; instead we can use something called a NAND gate. The truth table for a NAND gate is shown below:

PIR #1PIR #2PIR #1 & #2
110
101
011
001

So, putting the sensor signals from two PIR sensors through a NAND gate results in a 12V output unless both PIR sensor signals are 12V (the situation when neither has detected motion) in which case the outout is 0V. Exactly what we want!

logic NAND gate

The traditional symbol for a NAND gate is illustrated above.

Practical Applications with PIR Sensors

What is a NAND gate, and how is it physically connected to the PIR sensors in a circuit? NAND gates can be purchased very cheaply as ICs (integrated circuits) - with the 4000 series versions suitable for use in 12 Volt DC systems.

4011b NAND gate integrated circuit

The 4011B (schematic pictured above) is a Quad 2-Input NAND Gate - a chip with 4 NAND gates, each one accepting two inputs. Click here to view a 4011B Datasheet (PDF 30Kb).

The maximum output current from a 4011b is only 5 to 10mA - just enough to light one LED. Therefore, if the output must be amplified through a transistor so it can power lighting (up to a couple of hundred mA) or energise the coil of a relay if a larger current lighting or other devices are to be powered.

Connecting PIR sensor outputs via a NAND gate

Above is a schematic showing how two PIR sensor outputs can be put through a NAND gate and the resulting output signal amplified by a standard NPN transistor (such as the BC547B which has a max output 110mA - easily enough to energise the coil of a standard 12V relay).

Still Confused?

This is necessarily all a bit more involved than our usual articles, and putting together such a multiple PIR sensor system from scratch requires quite a bit of electronics knowledge. Therefore, if you need any assistance, or if you would like us to put together a suitable 'black-box' / 'plug-and-play' circuit board for you, email your requirements to neil@reuk.co.uk.

Double PIR relay timer - relay controlled by two PIR sensors on the same circuit

Pictured above is a circuit which takes as inputs the outputs from two PIR sensors, triggering a relay switch when either or both of the sensors detects motion. Click here to find out more and/or to purchase the REUK Double PIR Relay Timer.

Article Last Modified: 16:43, 6th Nov 2007


Recommended Related Articles

People who read this article also enjoyed the following articles:

PIR Sensor Circuits
Find out more about using PIR sensors within renewable energy applications
Article Last Modified: 11:32, 3rd Nov 2007
electronics | electric circuit | general | solar

PIR Sensors
Find out how to integrate PIR (passive infra red) sensors into renewable energy applications
Article Last Modified: 15:30, 2nd Oct 2007
electronics | solar | general

12 Volt Programmable Timer Switch
Automatically control devices with a 12 Volt powered timer switch
Article Last Modified: 13:26, 7th Aug 2008
electronics | lighting | general

Motion Sensor Light Switch
Fit a motion sensor light switch to automatically switch off lights when a room is empty
Article Last Modified: 13:21, 31st May 2008
lighting | energy efficiency | shopping

Solar Charge Controller
Find out more about Solar Charge Controllers
Article Last Modified: 15:43, 29th Jul 2008
solar | electronics | electric circuit

Relays and Renewable Energy
Find out more about relays and their uses in renewable energy applications
Article Last Modified: 16:52, 2nd Aug 2007
electric circuit | electronics | general

Simple Solar Tracker Concept
Make a very simple sun tracker to maximise electricity generation from a PV solar panel
Article Last Modified: 10:37, 9th Feb 2008
solar | electric circuit | general

LM317T Voltage Regulator Chip
Learn about the LM317T and its uses in renewable energy projects
Article Last Modified: 09:34, 30th Mar 2007
electronics | electric circuit

Interconnecting Batteries for Battery Bank
Find out how best to connect batteries together into a battery bank
Article Last Modified: 13:53, 23rd Feb 2007
storage

Renewable Energy Powered Timer Relay Switch
Powering an AA battery powered timer thermostat directly with a 12V power source
Article Last Modified: 12:51, 21st Jan 2008
electric circuit | electronics | general

© 2006-2008 REUK - All Rights Reserved
Page Last Updated on 21st August 2008 at 01:08:27pm

Latest
Articles


40 Amp Blocking Diode 1N1190A
Find out how to use a blocking diode with a wind turbine generator
wind
13:36, 20th Aug 2008

La Rance Tidal Power Plant
Find out La Rance experimental tidal power plant in France
tidal
15:32, 19th Aug 2008

PVC Wind Turbine Blades
Learn how to make your own PVC wind turbine blades
wind
15:16, 19th Aug 2008

Shed and Garage Solar Lighting
Light your shed or garage with solar powered lighting
lighting
15:16, 19th Aug 2008

How I Built A Wind Turbine
Read how a wind turbine was built for under US$150
wind
15:16, 19th Aug 2008

10 Ways to Save Water
Find out how you can save water, energy, and money
water
15:16, 19th Aug 2008

Rainwater Toilet Flush System
Find out how to put together a complete rainwater fed toilet flushing system
water
15:16, 19th Aug 2008

Jatropha for Biodiesel Figures
Look at the financial costs of commercial Jatropha growing for Biodiesel
biomass
15:16, 19th Aug 2008



REUK Shop

Popular Items


KILL A WATT
Plug in Mains Power and Energy Monitor
£19.99 each.
Energy Saving



EFERGY HOMECO2METER
efergy homeCO2meter wireless electricity monitor
£38.99 each.
Energy Saving



240V LED SPOTLIGHT BULB
240V LED GU10 bulb. 20 x 20,000mcd white LED 1 Watt bulb
£4.99 each.
Energy Efficient Lighting



RAINWATER DIVERTER KIT
Rainwater diverter kit for standard plastic 65mm square and 68mm round downpipes
£8.99 each.
Water Conservation



300 WATT POWER INVERTER
Convert 12V DC battery power into 230 AC to power portable televisions, computers, video recorders etc. 300 Watt power rating - peak power 600 Watts
£29.99 each.
Renewable Energy System Parts



12 VOLT 3 WATT SOLAR PANEL
Waterproof 12 Volt 3 Watt Solar Panel - 199 x 136mm with fitted leads (fiberglass and resin).
£19.99 each.
Solar Power



SUNGUARD SOLAR CONTROLLER
4.5 Amp at 12 Volt solar charge controller - fully encapsulated and weatherproofed
£19.99 each.
Solar Controllers