I am an L plate for Arduino. I found your tutorial easy to follow. May I suggest redoing it for two relays, as this would provide additional naming information, which would be easy to extrapolate to 4 or 8 relays. A huge thank you for considering this suggestion, Arthur
just what I needed thanks :) - very useful info I never knew that relays were more often, and appropriately, activated thru/via the negative wire rather than the positive.
Can you add an external power source to that 2 channel relay? So let's say you connect the 5v to Arduino then add an external Power source for another sensor or motor to the relay?
Thank you for posting this. I would love to see a follow up video with the Arduino controlling a relay based on input to the Arduino. In other words if I press one button the relay would be activated for one second. II press a second button the relay would be activated for 10 seconds and if I press a third button the relay would stay activated unless a separate signal told Relay to shut off. I am trying to control an AC motor that will raise a platform to various heights.
Beautiful, would suggest to isolate the relay from Arduino. You can do that powering the relay's coil with his own power source and avoid using the 5V output from the Arduino board when dealing with AC high voltage.
i was trying to open a door with the relay using 12v and 5v connected to arduino's pin 5v. when i opened the door many times the arduino was desconnecting himself from the computer serial port, so u are right
L plater here as well, why is Low sent? I thought it required High (5v or so) to actuate the relay? Took me a while to figure out what was wrong with mine. Thanks and great Tute.
I’m working with an NE555 adjustable timer switch. I have an eight AA battery pack witn an on off switch that goes through the triple five and feeds a push pull solenoid. when I turn the power on it initiates the solenoid so it fires once and it shuts off . What I want is to put power to it and instead of having to adjust a delay take the delay completely out of it but I need to ensure that there is no power after the initial fire to the solenoid without a reset. Any help would be wonderful.
I tried this with 2 different relays and it did not work. My sketch ws perfect and uploaded. I give up trying now and will put Arduino in the back of the cupboard. Great video and so well presented. Thx U.
hi mate i seen the green jack melt, i was think to use my arduino uno to use it to switch the light on and off, what wifi adapter do i need to opreate on my iphone please, i have seen other videos on this, but i have seen some right bouge Jobs, just want to get it right, any advise please
Very vice video, sir. It may seem obscure,...but, I like the music in the background. So many tutorials either have nothing for ambient sound - or play some obnoxious drudge that makes me cringe. Well done.
I like it. So the main function of a relay is to protect the arduino against to much current. But doesnt the motor that is not connected yet need protection too? I presume you can do that with the same relay?
I think the function of a relay is more to allow switching high current applications on and off via a low voltage power source, such as an arduino. Its not to protect the arduino, directly, thought i guess you could say it does that as well.
I thought a similar thing about the low background music throughout the video, namely why even have it at all. I'm always amazed at how clearly intelligent and knowledgeable people can fail to grasp simple concepts at times. I mean, have you ever attended a college class where the instructor had random music playing in the background while they gave a lecture? NOPE. Why not? Because it's distracting and frickin' pointless.
Yes,this hapen to me,with starter lamp,my lcd display goes crazy,back current short my arduino,no problem use with led lamp but long term will kill my arduino..but how to add diode to relay?
Nice thanks for explaining it. I'm new to arduino and i was wondering if you could give advice on controlling two separate motors with a duel relay board. Thanks!
Hello sir, really appreciate your explanation. Thanks for the video I have a question, so if I want to add a load to the relay, lets a lamp and what to turn it off and by the program how can we do this. Not sure if the power supply you gave from the system 5v is sufficient for it. If not I hope we need some external supply say 110v or so. If so how can we do that. Any video you have on how to do it using the same relay you just used. Your help is much appreciated. Thanks
Very helpful thank you. Made the LOW active understandable. Logic told me that I should use HIGH to switch it on and caused me a lot of confusion at first. Could do without music though - otherwise excellent.
im new to this... what is the diffrence between a level shifter and a relay? isnt a level shifter also convertos the signals from 3,3 to 5v? or are realys for power only?
i only learned how to start coding yesterday but want to ask... when writing digitalWrite(relayPin, LOW) does it switch it on and when HIGH it will switch off?
Yes. The 5v relays you generally find on ebay have the trigger(IN1) function when connected to ground. For example they don't trigger by firing 5v into them from the output pin. If the output pin on Arduino is set to low it is at ground potential so allows the 5v vcc on the relay to flow to ground. When set to high it is at 5v so no potential difference and the relay is off. It confused me for a while until I realised this.
@420 Friendly ok ish but excuse my lack of knowledge how do I define the first instance eg how would that be written int for each relay or int[ ]relay 1,2,3,4 ? What I want to do is switch 4 relays 1+2 when button a pressed and 3+4 when button b pressed I just cant seem to get it to work thanks
Question, @Electro-Anarchy, you said that the relay is turning ON then OFF, but your code was LOW then HIGH. Did you mean OFF then ON, or is the relay turned ON when it is LOW?
@@dmitrys.4741 These reelays are usually driven by transistor built onto the board. By apply a low to the transistor, you allow it to turn on and pass current to tthe relay coil energizing it allowing you motor or other load to run.
Nice video sir, but how to connect Relay 5V 2 channel to a Arduino + Ir module. To connect a bulb that will light up if the ir sensor detects an object. Please sir help me
Frankie , I know, years... anyway, on the “input/control” side, the board might need power for other components, like LED, or other ICs, so you need the god and (lets say) 5v power, and then the third contact, when pulled high (5v) to switch the relay. Now on the “output” side, you have the NO (normally open), the common, and the NC (normally closed) contacts to decide if you want the relay to be open when unpowered or closed. That would give you 3 conductors for “in” and 3 conductors for “out”. HTH
My guess is that the board he described as an "Arduino doo" was actually an Arduino Due, from the Italian word due meaning 'two' (and pronounced 'doo-ay').
I have one question and not getting answer any were. Suppose I have one raspberry pi 3 and I have made one room wiresless with the raspberry pi3 and realy module easily since it was in that room itself. Now I want to make my another room wireless as well but the problem I am facing That Bringing all the wires from another room to raspberry pi room that wires will cost a lot. How to handle this ?? Should I have to but another relay module and install in room and send the wires to raspberry pi . Please guide me how to solve this problem I have 4 rooms 2 flour house Thank you very much
Hello guys, can someone explain to me whats the difference between 5v, 12v and 24v relays? It's not explained in the video :( When to use those different volts of relay? Thanks in advance.
I think you have to match the voltage of the relay wth the voltage of the motor.And the rated amps of a relay are also important. If you have a big motor the 5v relay will probably blow because the motor draws too much current(watts). That is how I understand it.
Random Guy , I know, 9 months... anyway, the 5v, 12v, and 24v is the voltage to control the relay (to power the relay coil and make it switch) If you want to run a 24v relay with an arduino or a pi, you will need an extra logic and power supply, since neither of them provide more than 5v.
Hi. could help me I want to CONTRAL something that make 3 stop every single stop only for 7 second stop..messege me if u can help me..I will give details..
Sorry but switching the neutral/ground is NOT best practice. It leaves the device being switched at mains/supply potential. If you have an earth fault(disconnected) or just plain forget to isolate you risk getting a potentially lethal shock.
Hey can you code an arduino code so whn i hold push button relay is open and when i release it relay turns off. Please i think its not complicated! Keep the vids.
You showed half of the relay setup. The easy half that is labeled on the relay. The other half is how to hook up to what you are triggering. A light,alarm,or pump etc. Do you provide power to what you are triggering. What if any power is ran through the actually relay. When to use normally open vs normally closed. How to set up using Arduino power if you are only triggering 3-5 volt source such as a 5 volt water pump or a 3 volt LED? Actually show it being of use not just making a click sound!
Interresting ... but for f.... sake, drop the music .... im hear to learn, if I wanted to listen to music I'd pick music I liked and have it in the background. Why do people think everything needs a sound track?
Finally someone who knows the topic and how to get it across without all the noise.
That music is waay to dramatic lol
I am an L plate for Arduino.
I found your tutorial easy to follow.
May I suggest redoing it for two relays, as this would provide additional naming information, which would be easy to extrapolate to 4 or 8 relays.
A huge thank you for considering this suggestion,
Arthur
just what I needed thanks :) - very useful info
I never knew that relays were more often, and appropriately, activated thru/via the negative wire rather than the positive.
Can you add an external power source to that 2 channel relay? So let's say you connect the 5v to Arduino then add an external Power source for another sensor or motor to the relay?
Thank you for posting this. I would love to see a follow up video with the Arduino controlling a relay based on input to the Arduino. In other words if I press one button the relay would be activated for one second. II press a second button the relay would be activated for 10 seconds and if I press a third button the relay would stay activated unless a separate signal told Relay to shut off.
I am trying to control an AC motor that will raise a platform to various heights.
Beautiful, would suggest to isolate the relay from Arduino. You can do that powering the relay's coil with his own power source and avoid using the 5V output from the Arduino board when dealing with AC high voltage.
i was trying to open a door with the relay using 12v and 5v connected to arduino's pin 5v. when i opened the door many times the arduino was desconnecting himself from the computer serial port, so u are right
L plater here as well, why is Low sent? I thought it required High (5v or so) to actuate the relay? Took me a while to figure out what was wrong with mine.
Thanks and great Tute.
Lol, whats with the skyrim horse?
lmao
Thanks buddy. That helped me setup my solenoid valve. I can now apply same for any application
how would you program a button to fire the code and keep the relay latched, tap button again and end code
I’m working with an NE555 adjustable timer switch. I have an eight AA battery pack witn an on off switch that goes through the triple five and feeds a push pull solenoid. when I turn the power on it initiates the solenoid so it fires once and it shuts off . What I want is to put power to it and instead of having to adjust a delay take the delay completely out of it but I need to ensure that there is no power after the initial fire to the solenoid without a reset. Any help would be wonderful.
I tried this with 2 different relays and it did not work. My sketch ws perfect and uploaded. I give up trying now and will put Arduino in the back of the cupboard. Great video and so well presented. Thx U.
Excellent tutorial. Plain simple and works. Thanks.
I really enjoyed that video . Thanks
cheers mate , you helped me a lot for my project
hi mate i seen the green jack melt, i was think to use my arduino uno to use it to switch the light on and off, what wifi adapter do i need to opreate on my iphone please, i have seen other videos on this, but i have seen some right bouge Jobs, just want to get it right, any advise please
Very vice video, sir. It may seem obscure,...but, I like the music in the background. So many tutorials either have nothing for ambient sound - or play some obnoxious drudge that makes me cringe. Well done.
i want 10 relays, low power, cheap. Any thoughts? Thanks for posting
awesome showcase
As a beginner this video is very helpful to me.....
Can you control the relay with an IR control so you can utilized a 12 v led ? If so... would you be able to show how specially when writing the code.
I like it. So the main function of a relay is to protect the arduino against to much current. But doesnt the motor that is not connected yet need protection too? I presume you can do that with the same relay?
I think the function of a relay is more to allow switching high current applications on and off via a low voltage power source, such as an arduino. Its not to protect the arduino, directly, thought i guess you could say it does that as well.
You said that such high speeds will "burn out the relay". What speeds would be considered safe? I want to control a 12v LED and make it strobe.
The relay switch is mechanical and will wear out soon with that kind of use. Instead, use a MOSFET module.
Excelent video! very well explained! Thank you for sharing
Nice, simple, informative. Learnt a lot.
Thanks for a very great video.
Volume leveling. Damn man why do you blare metal 60dB over the average volume level? Relaxing then BAMABABABABABABABAM
I thought a similar thing about the low background music throughout the video, namely why even have it at all. I'm always amazed at how clearly intelligent and knowledgeable people can fail to grasp simple concepts at times. I mean, have you ever attended a college class where the instructor had random music playing in the background while they gave a lecture? NOPE. Why not? Because it's distracting and frickin' pointless.
Why didn't you use a diode to prevent back current produced by the coil in the relay to damage your controller?
Yes,this hapen to me,with starter lamp,my lcd display goes crazy,back current short my arduino,no problem use with led lamp but long term will kill my arduino..but how to add diode to relay?
My 4 gang board has diodes factory fitted.
Thank you for making this so easy to understand.
Helped me a lot, thank you!
How would you wire Bluetooth, arduino to start up a motorcycle. The starter solenoid relay is 30A
Nice thanks for explaining it. I'm new to arduino and i was wondering if you could give advice on controlling two separate motors with a duel relay board. Thanks!
Hello sir, really appreciate your explanation. Thanks for the video
I have a question, so if I want to add a load to the relay, lets a lamp and what to turn it off and by the program how can we do this. Not sure if the power supply you gave from the system 5v is sufficient for it. If not I hope we need some external supply say 110v or so. If so how can we do that. Any video you have on how to do it using the same relay you just used. Your help is much appreciated. Thanks
How should I get a motorized valve to react on smoke detector allarm signal
Helped on my project. Thanks
Exactly what i needed to see thank you.
Is that ok for other arduino
can i put it up to 10 mins?
Very helpful thank you. Made the LOW active understandable. Logic told me that I should use HIGH to switch it on and caused me a lot of confusion at first. Could do without music though - otherwise excellent.
can you set up timer for this relay ?
im new to this... what is the diffrence between a level shifter and a relay? isnt a level shifter also convertos the signals from 3,3 to 5v? or are realys for power only?
i only learned how to start coding yesterday but want to ask... when writing digitalWrite(relayPin, LOW) does it switch it on and when HIGH it will switch off?
Yes. The 5v relays you generally find on ebay have the trigger(IN1) function when connected to ground. For example they don't trigger by firing 5v into them from the output pin. If the output pin on Arduino is set to low it is at ground potential so allows the 5v vcc on the relay to flow to ground. When set to high it is at 5v so no potential difference and the relay is off. It confused me for a while until I realised this.
Thanks if you wanted to use 4 relays 2 on while 2 off and vice versa how do you go about this ? Been baffling me
@420 Friendly ok ish but excuse my lack of knowledge how do I define the first instance eg how would that be written int for each relay or int[ ]relay 1,2,3,4 ?
What I want to do is switch 4 relays 1+2 when button a pressed and 3+4 when button b pressed I just cant seem to get it to work thanks
Great. Thanks. Just what I was looking for.
Question, @Electro-Anarchy, you said that the relay is turning ON then OFF, but your code was LOW then HIGH. Did you mean OFF then ON, or is the relay turned ON when it is LOW?
Yes, for some reason beyond my understanding these relays turned on by the LOW signal. But I guess you have figured it out by yourself by now :)
@@dmitrys.4741 These reelays are usually driven by transistor built onto the board. By apply a low to the transistor, you allow it to turn on and pass current to tthe relay coil energizing it allowing you motor or other load to run.
Great work. Thanks for sharing
Nice video sir, but how to connect Relay 5V 2 channel to a Arduino + Ir module. To connect a bulb that will light up if the ir sensor detects an object. Please sir help me
Thank you so much man. This was a really helpful video.
thank you for being great!!!
LOW on the Arduino means turns off then HIGH means on
I don't understand why 3 conductors when a relay has 2 states... on and off.. power applied and power retracted. Am I looking at this incorrect ?
Frankie , I know, years... anyway, on the “input/control” side, the board might need power for other components, like LED, or other ICs, so you need the god and (lets say) 5v power, and then the third contact, when pulled high (5v) to switch the relay. Now on the “output” side, you have the NO (normally open), the common, and the NC (normally closed) contacts to decide if you want the relay to be open when unpowered or closed.
That would give you 3 conductors for “in” and 3 conductors for “out”.
HTH
Are there silent relays available?
Sure. Look up "solid state relay".
Remember that the solid state relays USUALLY do not handle as much power as the mechanical relays but will silently operate a smaller demand.
@@alexlloyd2147 ??? i have seen 40A solid state relays
Yes like it and I don't see anyway to thumbs down
What was the third (last) Arduino board at 0:33 you show ? You wave with it in an "anarchistic" way viewer ca'nt see.
My guess is that the board he described as an "Arduino doo" was actually an Arduino Due, from the Italian word due meaning 'two' (and pronounced 'doo-ay').
DO NOT SWITCH A NEUTRAL. ALLWAYS SWITCH THE HOT .. Not only is it safer, it is also electrical code.
@Germanudo He even called it "ground".
@@hermanhermitz9101 stfu
Thank you so much for this.
I have one question and not getting answer any were. Suppose I have one raspberry pi 3 and I have made one room wiresless with the raspberry pi3 and realy module easily since it was in that room itself. Now I want to make my another room wireless as well but the problem I am facing That Bringing all the wires from another room to raspberry pi room that wires will cost a lot. How to handle this ?? Should I have to but another relay module and install in room and send the wires to raspberry pi . Please guide me how to solve this problem I have 4 rooms 2 flour house Thank you very much
Use arduinos to control the relays, have them talk wirelessly with a nrf24l01 to the raspberry pi and have the raspberry pi run the whole show
Super Helpful
excellent explanation
Very cool! Thanks
Add a touch screen, control a fan, a heater and humidifier for a bedroom, hot night's kill me
Trying to repeat the step but it’s more than me specially the code
Hello guys, can someone explain to me whats the difference between 5v, 12v and 24v relays? It's not explained in the video :( When to use those different volts of relay? Thanks in advance.
I think you have to match the voltage of the relay wth the voltage of the motor.And the rated amps of a relay are also important. If you have a big motor the 5v relay will probably blow because the motor draws too much current(watts). That is how I understand it.
Random Guy , I know, 9 months... anyway, the 5v, 12v, and 24v is the voltage to control the relay (to power the relay coil and make it switch)
If you want to run a 24v relay with an arduino or a pi, you will need an extra logic and power supply, since neither of them provide more than 5v.
Yeah, the 10 milliseconds sequence was funny. Tomorrow, this will be the first thing I will do. No, not frying the relay.
nice video... so educate
Thx :) i helped me a lot :)
i want to activate the relay by clapping
I like it
what kinda relay i should buy to use with this?: www.amazon.co.uk/gp/product/B074MX923N/ref=ox_sc_saved_title_3?smid=A167QJB1GLPJYG&psc=1
Thank thats help me a lot
please give me the code
You are putting all of your stuff on >>> carpet
I believe that “carpet” has a grounded backing to prevent static discharge.
Great content dude. for beginners I suppose Tinkercad online Arduino Simulator for better experience. No cost no lost .. :)
très bonne vidéo
A view of the equipment might be more useful than a view of the back of your hand.
Hi. could help me I want to CONTRAL something that make 3 stop every single stop only for 7 second stop..messege me if u can help me..I will give details..
yes, looking for collaboration contact @bharathjairam@gmail.com
Sorry but switching the neutral/ground is NOT best practice. It leaves the device being switched at mains/supply potential. If you have an earth fault(disconnected) or just plain forget to isolate you risk getting a potentially lethal shock.
Hey can you code an arduino code so whn i hold push button relay is open and when i release it relay turns off. Please i think its not complicated! Keep the vids.
You showed half of the relay setup. The easy half that is labeled on the relay. The other half is how to hook up to what you are triggering. A light,alarm,or pump etc. Do you provide power to what you are triggering. What if any power is ran through the actually relay. When to use normally open vs normally closed. How to set up using Arduino power if you are only triggering 3-5 volt source such as a 5 volt water pump or a 3 volt LED? Actually show it being of use not just making a click sound!
Right
can i put a 15 minutes i.e 900000 ms in the code???
yes you can put bro. looking for collaboration contact @bharathjairam@gmail.com
Interresting ... but for f.... sake, drop the music .... im hear to learn, if I wanted to listen to music I'd pick music I liked and have it in the background. Why do people think everything needs a sound track?
can you speak more beginner language