Professional Documents
Culture Documents
http://www.makingthings.com/teleo/teleo/cookbook...
ABOUT
TELEO
PRODUCTS
SERVICES
NEWS
COOKBOOK
Concept Overview
Wiring/Block Diagram
Step-by-Step Assembly Instructions
Project Ideas
Overview Images:
Step 1
Step 2
Step 3
Step 4
Setup Requirements:
Tools:
Screwdriver
1 of 4
Hardware/Components:
PIR sensor
19/01/11 12:56
http://www.makingthings.com/teleo/teleo/cookbook...
Concept Overview
A light that turns on only when somebody is nearby can save energy, can save you the hassle of searching for a lightswitch in
the dark, or can also alert you to the presence of an unwanted visitor. A PIR sensor is an infrared motion detector and it is
easily connected to a PolyBlock which, in Timer Mode, can turn a light on automatically for a specified period of time when
somebody is within range.
The PIR sensor works by comparing the outputs of its two internal infrared sensors. With no motion within the sensor's range,
these two internal sensors settle to an "off value". When a person (or other large infrared-producing body) comes within range,
the values the two infrared sensors record changes from the off value, and the PIR interprets this as motion. The PIR sensor
outputs a logical "1" or 5V on its output for a second or two after the motion stops. This is a weak digital signal so by itself it
couldn't run a light (or anything, really bigger than a small LED) . We could connect it to a Switch Block, and thence to a large
lamp, but this wouldn't help much either, since the PIR signal is only on for a few seconds after it detects movement. We'd like
our light to be on for much longer.
What we need is something to stretch out the signal from the PIR sensor, so what we can do is connect the output of the PIR
sensor to a Poly Block running the Timer function. The Timer function on the Poly Block works as follows: when a signal
triggers it, the O0 output is turned on for a time period specified by the Poly Block's "Timer Duration" reference voltage. With the
trimpot jumper attached, this voltage can be determined by the trimpot. This means that by adjusting the trimpot, the timer can
be set to run for longer or shorter periods.
There are several ways to trigger the Timer. The "Trigger" (I0) input, starts the timer when the input goes from off (0V) to on
(5V). The timer runs for this period and then turns off. While this might seem perfect, it is not quite right for this application. The
reason is that we actually want the output to go on when someone is detected in the room (which would happen using the
Trigger input), but we don't want the timer to start until the movement stops, otherwise the timer period might end while the
person is stil moving around and the result would be an annoying plunge into darkness. To fix this, we use the "Sustain Trigger"
(I2) instead. The sustain trigger is designed for exactly this kind of application - turn on immediately when triggered, but don't
actually start the countdown to turn off until the triggering voltage has been removed.
This set up assumes that the PIR sensor will be located very close to the Poly Block - if you need to make long cable runs from
the PIR to the Poly Block, take a look at the Line Block.
If you wanted to use an AC light, you could connect the O0 output to the AC Switch Block, and control the light from there. But
beware, household AC voltages (110V or 220V depending on where you live) are very dangerous.
Block Diagram
2 of 4
19/01/11 12:56
http://www.makingthings.com/teleo/teleo/cookbook...
Fig.1.1
Fig. 2.1
Fig. 2.2
Fig 3.1
Fig. 4.1
Step 5 - Power Up
3 of 4
19/01/11 12:56
http://www.makingthings.com/teleo/teleo/cookbook...
With the power supply still unplugged, double check all of the power connections to make sure all the 12V's, 5V's, and 0V's are
properly connected. Once you're confident everything is where it should be, plug in the power.
Step 6 - Calibrate the PolyBlock
As described in the Timer Function reference for the PolyBlock, the onboard trimpot can be used to adjust the amount of time
that the light will stay on once the PIR is triggered. This can range from anywhere from a few milliseconds to almost 20
minutes. Start with the trimpot turned all the way counter-clockwise. This will give you the shortest timer period possible.
Gradually turn the trimpot clockwise to adjust the length of the timer as desired.
4 of 4
19/01/11 12:56