Make an Simple Motion Sensor Light! (PIR)




About: Just a Small Tinkerer ;)

Make an Small & Simple Motion Sensing Light with Less Hassle and Less Components.

A Beginner Could Also Make This.

A Simple Understanding of how transistor works and knowledge of Anode and Cathode is only needed so Make it Tension Free!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Gather the Parts

One can Buy Everything Used in this Project from Ebay.

While i Get most of the Things from my Local Electronics & Robotics Store so i don't buy from ebay.

Anyways , Here is the List of Parts which are Needed :

1) PIR Motion Sensor. ( Main Part , i am using HC-SR501 )

Note that every PIR Manufacturer might have a Different Pinout. So Please confirm the Pinout of PIR Before Performing this Project. [ My PIR Had Pinout - VCC | Output | Ground || (From Back Left to Right Direction) ]

2) BC547 NPN Transistor

3) (4 Pcs.) White 5mm Leds

4) Small Copper Board

5) 2 Pin Screw Terminal

6) 3 Pin Right Angle Header

Step 2: Circuit

A Simple Circuit , Controlled by two major Things.

1) BC547 Transistor

2) PIR Motion Sensor

This Can be Done on Perfboard too.

Explanation :

When PIR Sensor sense any Human interference or ir Light running @ 38KHz

then it's Output Pin Become from LOW to HIGH which result in 3.3v Supply in Output Pin,So We Would be using that output pin to switch the transistor on and off which will lead to On and off of leds too.

Leds are Connected in Series So that they would consume all 12v Supply once switched and which would not lead to burning.

Note : Only Supply 12v , If Voltage Greater than this than it will lead to burning of leds.

and PIR has an in-built Regulator which will accept 12v.

Step 3: Breadboard Circuit

For Those who want to build it on a Breadboard.

Step 4: Eagle PCB File.

Just Print the Pdf Attached.

and i will be using the Toner Transfer Method.

it would be your choice which method you will choose because end result would be same.

Step 5: Transfer the Artwork

Just Press Hardly with an iron with full High Temperature Dial for 4-5 mins.

After this immediately dip into Water and Gently Rub the paper on pcb with your thumb.

The Artwork must have Attached to Pcb.

Otherwise if traces are broken then try again.

Step 6: Etch It!

Now put the PCB in Ferric Chloride.

You may use HCL+ Hydrogen Perxide too.

Step 7: Drill Holes.

I use my Hand Drill to drill holes.

it was just useless drill bought from ebay for 2$ , Got it's Spring loose after making 15 pcb's

So, I am switching to a motorized drill for my future projects. ;)

Step 8: Solder Screw Terminal

Make sure to drill with 1mm bit for this because they have a kind of broad legs.

Step 9: Solder Right Angle Header

Step 10: Solder Leds.

I Use white because 3v x 4 leds = 12v

which will not burn the leds.

and make sure the Anode and Cathodes of leds.

Step 11: Solder the Transistor

Be sure to face the flat side of transistor towards leds.

Step 12: Solder the PIR

Till now you might have known that why i soldered the right angle header.

it was soldered to position it motion sensing part towards our self.

Step 13: Power It.

Now power it with 12v.

Give the sensor a warm-up time of 10-60 Sec.

And test it.



  • Indoor Lighting Contest

    Indoor Lighting Contest
  • Make It Fly Challenge

    Make It Fly Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

68 Discussions


Question 2 months ago

What are the measurements in mm?


Question 4 months ago on Step 3

Will this circuit work with less than 12vdc example 3vdc using one LED instead of the four?


Question 4 months ago on Step 6

Hey so I was wondering how much hydrochloric acid and how much hydrogen peroxide do we mix in? I have no idea since I do not have any Ferric Chloride at the moment.


Question 7 months ago

Pls I want to build a power bank for my computer pls i need your on de components


Question 1 year ago on Step 2

I want to custom made a motion sensor and dimmer for led strip.
Sensor range max 20cm
The led strip is 24v DC
Here is a link to the sensor with only 15cm range.

Check out this product on Alibaba App DC12V - 24V 3A Hand Wave mirror Sensor Dimmer Switch for Mirror Light


Question 1 year ago

could i power a 12v LED strip in place of the 4 four LEDs


1 year ago


Can you please help me with the circuit diagram,As

I have 3.7V lithium ion battery and i want to glow 4 v led strip.

So which circuit would be good enough so that i can receive full illumination from led strip.

and in some lights there is on function coming , that if there is no motion than the brightness of led light decreases but if suddenly any motion is detected than it illuminates to full its full brightness.

So please let me know ASAP.

Nice Instructable.

thank you

1 reply

Reply 1 year ago

you can but you will need a buck-boost converter at the input of the lithium-ion battery and a way of taking the battery of for charging.


2 years ago

Hi !!

I have a question does this whole project work on any home appliance like light,fan,etc. If we want to make like that type what should i do ??


2 years ago

Awesome project....
Helped a lot...


3 years ago

Dear instructableinstructors,

I really enjoy reading all your posts. I have a question. I have build the strangest 9V solar panel all by myself (18 cells of 0.5V ) and it has no diodes or anything attached yet. How would I be able to actually use this solar panel in combination with pir motion sensors and 10W led lights to create a soft sheen glow on the path leading to the house when you pass the pir sensors. I have the solar panel idle for 3 years now. I have 5 pir sensors and I have ordered 50 of the 1N4007 diodes, rechargable 1.2V batteries, nothing else yet. What would I need to make this work?

The panel is made of the following cells: I managed to not break 18 and put these together inside glass box with mains type wire comming out the back) 100pcs 3.9 - 4W 0.5V solar cells polycrystalline 156x156mm with 2 busbar, 17-17% efficiency.

1 reply

Reply 3 years ago

hi, i think you can first build complete sensor circuit using PIR and bc547 and just put couple of LEDs in series at your output instead of one, then you use your solar power as your supply (find a way to get 2 output terminals into sensor circuit) ,since its 9v youll probally have to not put any resistor in series with LEDs as they are many....but if so, say 10 can put variable to 70ohm


3 years ago

Hi guys , i have a question i am doing my graduation project using arduino and i want to make a ball fall out of an opening with a motor , any ideas? thanks..


3 years ago

great project

can i place your project on my website.

i'm working on a website which is related to electrical projects.

i also mention your name, link and other info.

plz reply

2 replies
Ayush SharmaAbhi909

Reply 3 years ago

Hello Abhi,

Let me know your Website url.

I Would Love to Visit it.


3 years ago

Love the write up, awesome pictures/diagrams easy to read and understand (I think LOL)

I am doing a project that modifies this camper porch light:

and this LED Bulb:

and turn it into a motion sense activated light. I should be able to just put it in place of your LED's (as its a 12v LED) but I would also like to have two motions (1 on either side of the porch light) and a daylight sensor so it only works at night.

Not sure if I will have issues with that light as there are alot more LED's then yours but it says its a 12v LED light. Would you be able to point me in the direction of a wire diagram or breadboard image of the circuit or perhaps if you have time to create one for me? Your images are very easy to understand. Is there a program you used for designing before physically building the circuit?

Thanks for taking the time to read this long question, any help is appreciated.


3 years ago

Can i use it for bathroom mirror?
I mean for how long the lights will keep on?