For a project I needed several PIR sensors and I know Adafruit sells a PIR board for about 10 USD. A description of that board is on instructables. That is doable, but I needed a few and of course there is also shipping + the mail delivery in my country (western Europe)  is notoriously bad the last few years, so I had been putting it off (many other things to do as well).

Anyway, at a local thrift store, I had bought two battery operated LED nightlamps  with a motion sensor (2.50 euro each) and while I was reading up on people hacking specific Breeze airfresheners for their motion sensor, these night lamps just did their duty, well sort of till I had changed the batteries a few times as they were pretty greedy for energy and i had forgotten about them.

But then I suddenly realised, Hey these thingies have motion sensors as well and when the batteries had started to leak in one of them I decide it was time for some further dissection.

The night lamp in question is a small casing with the typical white opaque PIR lens, a section with 3 bright LED's, a switch, for On, Off and Auto, and what I presumed was a photo diode, sticking out at one side. Opening the thing went pretty easy, just four screws.
It contained a little PCB with one big PIR sensor and one DIL-16 IC
The IC turned out to be an LP0001. I could find a very brief datasheet in English and the more extensive ones were in Chinese. yet I could figure it out.
I could get a digital signal from Pin 2 and an analogue signal from Pin 12.
The digital signal just indicates something moving yes or no, whereas the analog signal gives info on how close an object is. I am not sure though if the latter is really accurate.
Anyway, I needed a digital signal, but flexible as I am I decided to  make a digital as well as an analogue I/O on it and also supply it with a decent 5 volt supply. That is very easily done.

Nightlamps with motion sensor
3 pieces of wire, preferably one of them black and the other two different colors except black or red
1 x 4 wide screw terminal strip
piece of four wire cable at desired length

Materials and tools:
3-4 mm dril
soldering Iron

Step 1: Cheap PIR sensor for e.g. Arduino

The backside of the PCB is quite clear and pin 2 and pin 12 of the IC are easy to locate and solder wires to.  For Pin2, it is best to solder a wire a bit at a distance from the IC. For pin 12 this is not really possible. I also soldered a black ground wire to replace the original  red ground wire. Of course isf you are only interested in a digital output, a wire to pin 2 is enough.

The photodiode is also easy to spot at the side of the PCB. This photodiode ensures that the sensor only operates in the dark. if you want it to always operate, replace it with a 100-200 k resistor.

Then dril a small hole in the back of the casing. Put the wires through and screw down the back part again.

I led the wires into a screw terminal that I glued down with hotglue. A cable with four cores then can be used to transport the signal further
good thinking! what will you use your new pir sensor for now?
Thanks Amanda, Will be using it next to my front door. If someone arrives a light will go on and the doorbell will already ring

About This Instructable


10 favorites


Bio: I am a physician by trade. After a career in the pharmeceutical world I decided to take it a bit slower and do things I ... More »
More by diy_bloke: 433 MHz Coil loaded antenna Using pin 1 on Attiny13 without messing with fuse bits 'Home Alone' burglar deterrent/ Use Attiny13 to drive a Steppermotor and a Servo
Add instructable to: