Это видео недоступно.
Сожалеем об этом.
Using HC-SR501 Motion Sensor with relay and Arduino code to turn ON AC bulb
- Добавить в
- Мой плейлист
- Посмотреть позже
- Поделиться
Поделиться
HTML-код
Размер видео:
- Опубликовано: 19 авг 2024
Комментарии • 103
Следующие
Автовоспроизведение
Improved Sensors for LED Stair Lighting SystemResinChem Tech
Просмотров 90 тыс.
How to use HC-SR501 Motion sensor for Arduino with codeRobojax
Просмотров 37 тыс.
HC-SR501 PIR motion sensor, easy explained! | #EdisTechlabEdi's Techlab
Просмотров 12 тыс.
Lady Gaga, Bruno Mars - Die With A Smile (Official Music Video)LadyGagaVEVO
Просмотров 13 млн
I Bought a $50,000 TikTok Shop vs Temu Mystery Box!FaZe Rug
Просмотров 3,1 млн
Buying EVERYTHING in ONE COLOR for My DaughterJordan Matter
Просмотров 5 млн
New Yorker Tries Japan’s BEST PizzajschlattLIVE
Просмотров 854 тыс.
Turn AC bulb ON and OFF using hand clap, audio or sound ArduinoRobojax
Просмотров 23 тыс.
Control High Voltage Devices - Arduino Relay TutorialHow To Mechatronics
Просмотров 632 тыс.
10 Incredible Homemade Inventions Which Are On Another LevelCreation Holic
Просмотров 104 тыс.
Mechanical Switches are Obsolete?! Switch to a Latch Circuit! EB#53GreatScott!
Просмотров 697 тыс.
Arduino Project #9 | PIR Motion Sensor Controlled Relay Using Arduino Nano!HeathenHacks
Просмотров 3,9 тыс.
Stepper Motors with Arduino - Controlling Bipolar & Unipolar stepper motorsDroneBot Workshop
Просмотров 2,1 млн
PIR sensor HC SR501Robots and Dinosaurs
Просмотров 13 тыс.
Simple DIY tutorial on Smart table lamp using PIR Motion sensor and LDR interfacing with Arduino UNOMOUNT DYNAMICS
Просмотров 6 тыс.
Trigger DC Motor with PIR Sensor & Arduino - Complete GuideRachel De Barros
Просмотров 14 тыс.
小天使一家到底看到了什么!#小丑#天使#路飞#家庭#搞笑家庭搞笑日记
Просмотров 3,2 млн
УЛЬТРА ДОРОГИЕ vs УЛЬТРА ДЕШЕВЫЕ ЧИПСЫvanzai
Просмотров 912 тыс.
VALENCIA CF 1 - 2 FC BARCELONA | RESUMEN LALIGA EA SPORTSLALIGA EA SPORTS
Просмотров 3,1 млн
My Girlfriend Became A ZombieAlan Chikin Chow
Просмотров 5 млн
МАМА И ВАЛДБЕРИСstunning max
Просмотров 391 тыс.
الوصفة كاملة بتلاقوها في القناة 👩🏻🍳 full recipe in my channel ❤️ #abirzkitchenAbirz Kitchen
Просмотров 834 тыс.
С Максимом Шевченко. Вокруг Курской аномалии: ставки растут, страсти накаляются. 18.08.24Максим Шевченко
Просмотров 463 тыс.
Another great project. thanks
It's very most use full at home
thank you very much Gustavo ..
You are welcome.
الله ينور عليك يسطا
شکرا و ایا کم.
It can be used to make a sanitizing tunnel for covid 19,just connect pump istead of lamp
LOL
Thanks for support
please make a video using 2 or more pir"s with one bulb
it will be more helpful to me
I can provide you with the code and all the information
it should work the same, (connect new sensor's ground and power pins) and just connect the signal to another pin number, and in your code, you test for that pin number too (besides the previous sensor's pin).
Hello, thanks for the video tutorial! I was wondering if you can connect multiple PIR sensors to trigger the same relay? If yes, would you be able to tell me what would be the code line for that? Regards, Fernando
Hello, I have explained this line by line and what it does. So if you play the code section 2,3 or more time you should easily understand and turn the same relay on.
nice one
Thanks.
Hi, great video. I was just wondering, could you connect the PIR sensor directly to the relay?
Hello, yes you can.
Can you make tesla meter for the number of design wind turbines .. I need it very much and I have a lot of waiting
Hey, great video btw. I used exactly what you used and it works great. I do have some concerns though: is this risky at all? I intend to keep it running 24/7. Will the arduino overheat or the relay have problems ? because I heard the relays tend to fire up frequently on voltage change and such? Do I have to worry? It's inside an electrical box right outside the house with all the components inside that box.
Hey, I have not tested the reliability of components. there are tones of different brands producing components. But for Arduino and relay you can add 200mA fuse on the 5V power line so would never allow extra current that might cause fire. Try get relay from Digikey or some other reliable store and make your own module. here is how you can drive a 5V relay using Arduino ruclips.net/video/N-fFk51Eb8s/видео.html Arduino itself should be good quality if you purchase Authentic Arduino from Amazon amzn.to/2KApAwK it should be more reliable. Good luck and stay safe.
@@robojax Thanks for replying, I'm sorry I'm not really good with these stuff. Does the fuse have to be 200mA? because the least I could find from local stores are 1A. And what exactly causes the fire or what is more risky should I say? the AC 220V on the relay connected to the outlet or the 5V from Arduino?
@@robojax I'm using the official Arduino Uno - R3 btw
anything I say here will be used against me. This is DIY project. You should know to be careful and take precaution. . Ask a professional to assist you. For myself I trust the relay like I do trust tones of other electronics devices I have. But for you I mentioned the fuse to be safe incase court asks me to come and answer. These relays are used widely in lots of electronic devices.
Hi Robojax. Amazing videos. I would say that the code would be almost the same if I substitute the motion sensor with a vibration sensor (SW-420 Vibration Sensor ).
Hi, Thank you. Yes most sensors work the same way except pins are labeled differently or they are located in different location.
Hi
Love your video and explanation
I would like to simply turn on and off a 5V DC laser light that has a simple on off switch which I would like to control by the Audrino & PIR sensor
Can it be done without a relay ?
Can you suggest a solution ?
Hi, I don't know for what reason you want to avoid using relay but we need a switch to turn ON/OFF the load. If your laser light needs up to 30mA maximum yes you could use Arduino without relay. if you don't like relay, then you can use solid-state switch like mosfet shown here ruclips.net/video/17vqLv508Uw/видео.html
How would you use a NANO Arduino board it has only 1 x 5V pin out ?
Can you simply piggy back from the one pin?
Hi, yes you can connect multiple items to the same 5V using a bread board
If I wanted to set up four different motion detectors, each to a different color, could I do it all onto the same arduino board or would I need four different boards? For sensing in four different directions.
Hello, yes you could.
Can i connect motion sensor and bluetwooth module both at a same time?
Yes you can
Hi Robojax. The pir works fine with arduino with your code, however I don't understand why it is 'digitalWrite LOW' to turn on the relay and the opposite to turn off? When I use the pir with the relay running from 5v dc supply (not through arduino)then the light is always on. Do you know why it is like that, looks like the pir doesn't trigger. Thanks
Hello, your question took me so long to look at videos and codes to find something even though I have explained it in other multiple videos but see this video 15:44 ruclips.net/video/JMBgGO07YLM/видео.html it is the trigger type. depending on your relay. please don't forget to subscribe. you lose nothing.
How about i change a bulb to l298n to move the dcmotor?
Hello,
Can you use the power cord from the lightbulb to power the arduino if you step down the voltage? I would like to only use one cable
No you can't. AC light bulb is AC and Arduino needs DC .
Hey I'm a bit confused so I want to ask something, still studying here.. if you connect Relay to normally open, why would you write LOW to turn on the relay? Thank you
Hi, perhaps you missed what I've explained. this relay is LOW level trigger. meaning it will turn ON when it receives zero or LOW and turn OFF when it receives 5V or anything about 2V.
@@robojax okay thank you very much for the explanation
I wonder if you can help (great video thanks!) I have this sensor but would like a small unit without the arduino. I have it linked with simple single LED and transistor to test. It's working.. but whatever I set the RIGHT wheel for delay to, it keeps randomly lighting with gaps in power. So it will light for 3 seconds, then stop, then light again even though I keep moving it switches off. ?
You are welcome. Please watch the video again. There is jumper and two controller. You have experiment and find solution for yourself. The jumper is very important. Have patience and play with it and write down on paper what you did in each step and then compare the results.. this device is very good and it should work for almost any situation. When finding and testing, your single motion will change everything so make sure you sty still if you want no trigger happen.
Robojax I’ve moved jumper. It doesn’t continually light through motion. Just resets. . Many thanks.
Hi, Can you guys tell me why if the motion is detected, the relay is low and it will turn on?? #respect
HI! great introduction video. still new to Arduino, but how might I go about having 16 relays go on at random times from 1 motion sensor?
can this setup work in a way where the bulb is glowing when there is movement and it gets switched off when there is no movement? basically it should be switched on for the entire time when there is movement instead of giving a timer for 6 sec or 300 sec as you explained in the video. my project is stuck because of this issue. i would be thankful if you can help me out.
this will be affected by light.
what i meant was that instead of getting switched off automatically after few seconds it should get switched off only when there is no movement
If you move your hand out and wait for light to stop, then move hand back in, it doesn't lit up, does it ? It has a 4-5 seconds delay to re-trigger?
Is that normal ?
it should. I have shown how to adjust it. Watch it carefully. There is adjusting and position of object or something.
Would you please add any buzzer to this circuit
This bulb is buzzer, speaker alarm or whatever you want. Light is just example and demonstartion.
hello sir! in our project, we have used ADXL335 accelerometer sensor to detect vibrations. We planned to add an automatic light switching using a 5 volts relay. can u please help me out with the codes to interface the accelerometer, relay and arduino to switch on a dc bulb
Hello, use you can use the code and this video ruclips.net/video/58XWVDnB7Ss/видео.html good luck
Thank you for the vedio .
Is there a way to do this motion with the relay without the arduino ?
What I want to do is to connect this to a Halloween props and I want the motion to trigger the relay and the relay will be connected to a small motor that will move the props ?!
introduction to motion sensor video ruclips.net/video/piuUfGVafC0/видео.html and see if the time you can set is enough for your application. then yes you can use it with the relay. The relay shown in this video is LOW Level trigger meaning it turns ON with LOW (or zero volt) level signal. see the high level trigger signal relay ruclips.net/video/58XWVDnB7Ss/видео.html
@@robojax thank you for the reply,but this vedio is for arduino ?
What I want is to use the motion sensor with a relay without the arduino ? So is there a relay that can do that or do you have a vedio for that ?
Hello, Sir.
I am interested in hooking up and 8 channel relay with a motion sensor. Do you have a video on that?
Hi,
I have 4 channel Solid State relay which you can use the Motion sensor with ruclips.net/video/3EZecphNdAI/видео.html
Hii sir can u help us
How to use 2 pir senser in 1 aurdiuno plz help
I will make the video in the future, but you can get the idea from this video ruclips.net/video/WQ3oFyF5qeY/видео.html
is it working on uno?
Have you see the video?
@@robojax from this vid, this arduino board have 2 5V Pins. but for my board, which is UNO. it only have 1 pin
see this video ruclips.net/video/omyIFd1FqCI/видео.html to make additional 5V or GND pins
You can replace relays with other components
Yes you can use any other relay you want. But you need Arduino (any arduino) and the HC-SR501 sensor.
@@robojax Ohh... Can you make this circuit in combination with the mechanical switch
The possibilities are endless.
your tutor is very interested but the code for arduino is not RUN, please say someting
thanks i got it my error, keep it up sir!
you are welcome and good luck.
hello , what is the Arduino function in that ?
you can have time control on how long the light or alarm can be ON or OFF or you can do more thing. This is just opening the opportunity to do more.
@@robojax I need power supply circuit in that , can you help me ? motion sensor with arduino n power supply circuit 🙏
where can i get the coding
I mentioned in the first 45 seconds of video. Every video on youTube has description text which is under the video. I have so many important link for the video under the video in the description. Please check it.
So If you want that relay to stay on for 10 seconds you need to increase delay time, but when loop gets to that delay it cant trigger relay because of that delay...
first if you want it to stay for 10 seconds, then all other triggers should be ignored. Isn't it? Yes there is solutions. We can use millis() which will not keep the loop waiting. see my two videos in that topic ruclips.net/user/robojaxTVsearch?query=millis
@@robojax so if the motion still there , the relay will always be triggered if millis() is used, right? And that will make the lamp always On?
THE MOTION SENSOR WORKS IN WHAT i DID.. BUT THE GREEN LIGHT ON THE RELAY IS NOT LIGHTING.. THE SAME THING HAPPEN TO MY AC BULB.. WHAT SHOULD I DO TO MAKE THE RELAY WORK SIR
check the wiring. Do not modify the code first.
Relay board name
I am sorry I did not understand if this is statement or question. If this is question, then the relay module is called "5V Relay module"
I have only one 5v port in arduino
then in make one of the pin as output. like this
in the setup() put this for example pin 5
pinMode(5, OUTPUT);
digitalWrite(5,HIGH);
and now pin 5 will always be HIGH which is 5V and you can use it as 5V source for small items like relay or sensor.
@@robojax Please more explanation please
@@robojax HI CAN YOU MAIL ME MORE DESCRIPTION ON THIS ONE
@@robojax you can use female header connect the two 5v to one 5v in arduino right?
Send me code
snag.gy/EG4O2l.jpg and snag.gy/AHhRpV.jpg
Hii sir can u help us