How to use PIR Motion Sensor with Arduino | Motion sensor light

preview_player
Показать описание
In this video we are going to learn how to use PIR motion Sensor (HC-SR501) with Arduino so that we can detect if there is any human movement and take some action.

We will make a motion switch to turn on and off light automatically if human motion is detected.

I have explained in details each step along with code and connections.

👉Components list :
✅ AC bulb socket and plug
✅ Blub
✅ 7-12 V DC battery
✅ Breadboard
✅ Jumper wires

👉 Shorts Channel :

👉Code and diagram:

👉What is Relay and how to use it

👉Watch more videos:

👉Follow us on Instagram:

#pirsensor #hashincludeelectronics #arduino
Рекомендации по теме
Комментарии
Автор

thank you so much .this project is working

ujwalskill
Автор

thanks
i am a 13 year old boy
i was searching for guidance for my science expo
ur project made my way clear

Raja-dluc
Автор

Bro can you tell what is the advantage of using aurduino UNO instead of doing it directly?

propanda
Автор

Hey bro, I am a beginner into coding ( I know a bit of Python coding but not C) So can you give me code to adjust the timing for the light to stay on, Mines stay on for a minute or 2 and then switches of after that. Since I need this for my upcoming project exhibition, I want it to switch off faster so I can show again quickly how my project works instead of having to wait for long

Dinaltium
Автор

Hi, I just did this one here, works perfect :) But I just wonder how to make light stay on until I leave the room? Is it just to set pir sensor to HIGH mode?

memphistomem
Автор

did you cut the plug wire yourself? and where can i find a AC Bulb socket like yours?

The.Real.Reddit.Chronicles
Автор

Well I have another question. The light is turning on while motion is detected but turning off immediately. How do I keep it lighting?

jpena
Автор

I want know who to use hw-416-b model pir sensor

rajannachandnkera
Автор

Hello, I want to ask one thing
I have a 5v relay module and 1 pir sensor

I have done connection
Vcc of sensor and relay are from same charger of 5v 1A
Gnd pin is also same
Out of sensor is connected to in of relay

And relay's No is connected to bulb and common is connected to vcc

I am facing the issue
Bulb is always onn after power on supply
Even after it for not detect human

kundan.rajput
Автор

can you connect the arduino with thingspeak platform to analysis the data from the sensor and who it does?

taefm
Автор

uhhh so i have a question: how can i use the 2 normal rgb leds with 4 pins on this project?

ayoraz_
Автор

Hello. Im actually beginner and I have a project to do. I need to control alot of servo motor (12) with motion sensor and at the same time I have to control another thing (kind of robot with arduino). I want to use IR control and motion sensor for the first robot, also with the data flow and the other robot to move simultaneously

pinkbrush
Автор

You have single channel relay
Was used. If I am using a 2 channel relay then where should I put the input of the second relay.
I have to connect 2 bulbs

chandandas
Автор

I would like to use a servo with a pir. Could this code be edited for it?

HappyHermitt
Автор

but i can also connect the output pin of PIR to relay input pin directly without using arduino right?

ri
Автор

Can i add a voice assistant to this project, and if yes and then how, do you have a video on it, kindly share, it would helpful

shabnambhadauria
Автор

How to connect the arduino code on the proteus software

ronixbhaskar
Автор

In the circuit diagram why isnt the breadboard included?

lancedias
Автор

Slight problem, after 10 secs of activation it just turns off even thougj im moving in front of the sensor...how to fix this?

cylexarts
Автор

What if you are using 2 motion sensors, does that mean you need to use 2 arduino's....and also can this design be use in a 16mhz arduino?

cylexarts