Shop OBEX P1 Docs P2 Docs Learn Events
Movement sensor turns on light — Parallax Forums

Movement sensor turns on light

dev/nulldev/null Posts: 381
edited 2009-08-04 12:51 in Robotics
Hi,

There is a light in the staircase outside our apartment, and for some reason I never get to change the lightbulb (to my wife's irritation, and my annoyance smile.gif.
So I thought I'd make a timer/relay circuit with the PIR sensor to have the light go on when there is movement in the staircase.

This timer is easy to build and requires just a few components. In fact, the most expensive part of the circuit is the 12V battery replacer!

The main parts of the circuit are:
* PIR sensor from Parallax. This device outputs a high signal when it senses movement
* 555 Timer. Easy to use and cheap IC to control timing.
* 7805 Regulator. To reduce 12V to 5V for some parts of the circuits.
* 12V relay to switch the mains electricity on

It took me about 10 hours to complete, including attachment to the wall and mains electricity.

Since I don't have access to PCB's, I just left the whole thing on a breadboard, inside a wooden box I found in the atic.

I have a 10ohm resistor at R1, so the light stays on about 2 minutes.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
983 x 511 - 45K
1000 x 669 - 142K

Comments

  • dev/nulldev/null Posts: 381
    edited 2009-07-23 16:19
    Some addittions.

    Attached picture of what it looks like in the hallway. You can see the PIR sensor sticking out at the bottom.
    Last post I said 10ohm, I meant 10Mohm for R1.

    The transistors T1 and T2 can be replaced with any general purpose NPN transostors.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
    1000 x 669 - 79K
    004.JPG 79.4K
  • JavalinJavalin Posts: 892
    edited 2009-08-04 12:51
    nice little project - bucking the trend with no microprocessor thou!

    James
Sign In or Register to comment.