How about i change a bulb to l298n to move the dcmotor?
@barbarasilva6753 жыл бұрын
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
@robojax3 жыл бұрын
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.
@yogeshitaliya4736 жыл бұрын
It's very most use full at home
@johnathanharris58674 жыл бұрын
thank you very much Gustavo ..
@robojax4 жыл бұрын
You are welcome.
@bigm87382 жыл бұрын
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?
@robojax2 жыл бұрын
Hi, yes you can connect multiple items to the same 5V using a bread board
@kddayth3 жыл бұрын
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.
@robojax3 жыл бұрын
Hello, yes you could.
@Rebius4 жыл бұрын
Hi, great video. I was just wondering, could you connect the PIR sensor directly to the relay?
@robojax4 жыл бұрын
Hello, yes you can.
@saioffice22495 жыл бұрын
please make a video using 2 or more pir"s with one bulb it will be more helpful to me
@agastyaaneja65694 жыл бұрын
I can provide you with the code and all the information
@adrianTNT4 жыл бұрын
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).
@fairjusticeguy56483 жыл бұрын
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
@robojax3 жыл бұрын
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 kzbin.info/www/bejne/gH6lmHqFZZyMgq8 it is the trigger type. depending on your relay. please don't forget to subscribe. you lose nothing.
@ankanupadhyay3616 Жыл бұрын
Can i connect motion sensor and bluetwooth module both at a same time?
@robojax Жыл бұрын
Yes you can
@shuvamagarwal17694 жыл бұрын
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.
@robojax4 жыл бұрын
this will be affected by light.
@shuvamagarwal17694 жыл бұрын
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
@dudehjd5 жыл бұрын
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
@robojax5 жыл бұрын
No you can't. AC light bulb is AC and Arduino needs DC .
@bigm87382 жыл бұрын
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 ?
@robojax2 жыл бұрын
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 kzbin.info/www/bejne/Z2jZon-sapVri9k
@UpSpider6 жыл бұрын
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 ).
@robojax6 жыл бұрын
Hi, Thank you. Yes most sensors work the same way except pins are labeled differently or they are located in different location.
@adityanathyogi1004 жыл бұрын
It can be used to make a sanitizing tunnel for covid 19,just connect pump istead of lamp
@robojax4 жыл бұрын
LOL
@mohamedsalem16405 жыл бұрын
الله ينور عليك يسطا
@robojax5 жыл бұрын
شکرا و ایا کم.
@samhsavdr96476 жыл бұрын
Can you make tesla meter for the number of design wind turbines .. I need it very much and I have a lot of waiting
@goldenice92834 жыл бұрын
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.
@robojax4 жыл бұрын
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 kzbin.info/www/bejne/hF7Jd55rZqqVbtU 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.
@goldenice92834 жыл бұрын
@@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?
@goldenice92834 жыл бұрын
@@robojax I'm using the official Arduino Uno - R3 btw
@robojax4 жыл бұрын
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.
@Giservinworld4 жыл бұрын
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
@robojax4 жыл бұрын
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.
@Giservinworld4 жыл бұрын
@@robojax okay thank you very much for the explanation
@Mr_Gadge6 жыл бұрын
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. ?
@robojax6 жыл бұрын
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.
@Mr_Gadge6 жыл бұрын
Robojax I’ve moved jumper. It doesn’t continually light through motion. Just resets. . Many thanks.
@adrianTNT4 жыл бұрын
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 ?
@robojax4 жыл бұрын
it should. I have shown how to adjust it. Watch it carefully. There is adjusting and position of object or something.
@michangela43165 жыл бұрын
nice one
@robojax5 жыл бұрын
Thanks.
@rhendemayabanilla60144 жыл бұрын
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
@robojax4 жыл бұрын
Hello, use you can use the code and this video kzbin.info/www/bejne/a2m7iIl6o6dqidU good luck
@Dreamdiariessss3 жыл бұрын
Thanks for support
@mourisyounan99983 жыл бұрын
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 ?!
@robojax3 жыл бұрын
introduction to motion sensor video kzbin.info/www/bejne/pprYhpl9i8aZeZI 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 kzbin.info/www/bejne/a2m7iIl6o6dqidU
@mourisyounan99983 жыл бұрын
@@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 ?
@jovanietenebroso58433 жыл бұрын
Hi, Can you guys tell me why if the motion is detected, the relay is low and it will turn on?? #respect
@Axel-zg8yc5 жыл бұрын
Hello, Sir. I am interested in hooking up and 8 channel relay with a motion sensor. Do you have a video on that?
@robojax5 жыл бұрын
Hi, I have 4 channel Solid State relay which you can use the Motion sensor with kzbin.info/www/bejne/aXa9lpamnbOXd6s
@shaunferris60633 жыл бұрын
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?
@mejesyoumen13264 жыл бұрын
Would you please add any buzzer to this circuit
@robojax4 жыл бұрын
This bulb is buzzer, speaker alarm or whatever you want. Light is just example and demonstartion.
@chiragbari62026 жыл бұрын
How to use 2 pir senser in 1 aurdiuno plz help
@robojax6 жыл бұрын
I will make the video in the future, but you can get the idea from this video kzbin.info/www/bejne/jYKWoHmve5qkm7s
@jelbiytube73865 жыл бұрын
hello , what is the Arduino function in that ?
@robojax5 жыл бұрын
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.
@jelbiytube73865 жыл бұрын
@@robojax I need power supply circuit in that , can you help me ? motion sensor with arduino n power supply circuit 🙏
@ellohemelat84964 жыл бұрын
your tutor is very interested but the code for arduino is not RUN, please say someting
@ellohemelat84964 жыл бұрын
thanks i got it my error, keep it up sir!
@robojax4 жыл бұрын
you are welcome and good luck.
@nursyahidah16633 жыл бұрын
where can i get the coding
@robojax3 жыл бұрын
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.
@milanmilicevic46184 жыл бұрын
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...
@robojax4 жыл бұрын
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 kzbin.infosearch?query=millis
@Giservinworld4 жыл бұрын
@@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?
@LeNguyen-yy1qi5 жыл бұрын
You can replace relays with other components
@robojax5 жыл бұрын
Yes you can use any other relay you want. But you need Arduino (any arduino) and the HC-SR501 sensor.
@LeNguyen-yy1qi5 жыл бұрын
@@robojax Ohh... Can you make this circuit in combination with the mechanical switch
@robojax5 жыл бұрын
The possibilities are endless.
@vasudhas36483 жыл бұрын
Hii sir can u help us
@rgluisvincentgonzaga44945 жыл бұрын
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
@robojax5 жыл бұрын
check the wiring. Do not modify the code first.
@dhruvsingh50876 жыл бұрын
I have only one 5v port in arduino
@robojax6 жыл бұрын
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.
@johnstonf35065 жыл бұрын
@@robojax Please more explanation please
@naveenkoirala97585 жыл бұрын
@@robojax HI CAN YOU MAIL ME MORE DESCRIPTION ON THIS ONE
@charliekurtantiquera4765 жыл бұрын
@@robojax you can use female header connect the two 5v to one 5v in arduino right?
@katkurisaivikas22605 жыл бұрын
Relay board name
@robojax5 жыл бұрын
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"