Motion Detection Lights





Introduction: Motion Detection Lights

i wanted to make cheap motion sensor lights that work from a standard 220V socket. This is the best that I could achieve, for now)

Step 1: What Will You Need

1. A thin wooden can also use any plastic as long as it's minimum conductive material

2. Double sided adhesive tape to fixate your build on the board

3. A tuperware of symmetrical proportion to the wooden board. I just used what I have lying around. You can always use whatever you like

4. FR4 fiber board pcb which you'll have to saw into the size that suits you, separate it into two areas by grinding away a line in the middle and then solder tin onto its surface

5. 12V 5V fully isolated switching power supply AC-DC module 220V to 12&5 V. Please be careful when handling 220V. You have to solder a plug with 2 wire cord to that module (plugs differs from one country to another)

6. Breadboard, jumper wires, PIR sensor and arduino nano

7. 3 LED rigid (flexible) strip lights

8. Electrical wires ( I used the wires that came with the LED lights)

Step 2: Connection

First you solder the plug cord to the AC-DC module. With a voltmeter make sure the positive and ground are detected on the module and then soldered onto the already divided and covered with tin FR4 fiber boards. Once you have all the voltages assigned, you start soldering the modules accordingly. The arduino nano (power through VIN and GND), the relay and PIR sensor are all powered from the 5 V source transmitted into the breadboard whereas the LED are soldered onto the 12 V source with the positive coming from the relay (see diagram)

Step 3: The Code Can Be Downloaded From You Just Have to Modify the Pin Numbers

Step 4: Fully Connected to 220V

after you have everything wired up and soldered. You make a cutout from the tuperware and screw into the piece of wood that you have your project attached to by double sided adhesive tapes and with plastic bolts and nuts for the modules after drilling holes accordingly. You also have to make small cutouts for the wires of the LED and PIR sensor on the side. After doing so, you can put back the lockable lid of the tuperware and you're ready to go

Step 5: Installed in the Bathroom

luckily I have an installed power outlet in the ceiling which made connecting it really easy by just plugging in the plug. Then I passed the wires through the ceiling tiles and just fixated the lights according to my desire. You can also drill holes into the tiles but I'm renting :p

Hope you make it. Really easy and cheap. You can also use an attiny 85 for such a project instead of arduino nano.

Step 6: Version 2.0

I removed the arduino, connected the pir sensor signal to that of the 5 V relay. Fixated the main wire with zip straps and covered the soldered 220v wires with plasti dip. I was able to significantly reduce the size of the project. Too bad I don't have a 3D printer,yet;)

Step 7:



    • Epilog Challenge 9

      Epilog Challenge 9
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Pro Tips Challenge

      Pro Tips Challenge

    We have a be nice policy.
    Please be positive and constructive.




    Is it switch off when we left room

    Of course. that's what they are intended for

    Is it switch when we left

    You know, it's quite funny.... this literally gave me nightmares last night. Someone was chasing me with the IR detector coming from this device, I was running for my life so not to get electrocuted. And I think it was @SauHadl :-p

    check ebay and understand what a PIR detector is. too bad about your nightmares

    Just wait till a stray wire pulls the PIR sensor up to 230v, then you'll want to stay away from it, I promise

    by the way what will happen if it reach up to 230v?

    The manufacturer claims that the ac-dc module can handle

    AC85 ~ 265V wide voltage input.

    so what is jodyf1 talking about pir sensor reaching 230 volts..??

    he means that if there is a short from 230V to the pir sensor. the power supply is a commercial product with Isolation and beyond that there is only low voltage so I don't see how that can happen.