Arduino and relay. A look at how to get them to work.
Пікірлер: 110
@alexlloyd21473 жыл бұрын
Finally someone who knows the topic and how to get it across without all the noise.
@arthurrae79044 жыл бұрын
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
@justbanter87275 жыл бұрын
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.
@whitneydesignlabs87384 жыл бұрын
Excellent tutorial. Plain simple and works. Thanks.
@salahnahouri4177 жыл бұрын
cheers mate , you helped me a lot for my project
@emceha5 жыл бұрын
That music is waay to dramatic lol
@avvimane31304 жыл бұрын
Thanks buddy. That helped me setup my solenoid valve. I can now apply same for any application
@Shibu11229 Жыл бұрын
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.
@miguelraulgonzalez77443 жыл бұрын
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.
@adolphin60415 ай бұрын
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
@fp30e3 жыл бұрын
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.
@jackwelch4802 жыл бұрын
I really enjoyed that video . Thanks
@spyynz Жыл бұрын
awesome showcase
@duuws5 жыл бұрын
Helped me a lot, thank you!
@chetankadam6 жыл бұрын
As a beginner this video is very helpful to me.....
@PupuTheMonkey6 жыл бұрын
Thank you for making this so easy to understand.
@danterusso63546 жыл бұрын
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.
@Enoch_The_Gent Жыл бұрын
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?
@mowtown75 Жыл бұрын
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.
@dani-uf1eo7 жыл бұрын
Lol, whats with the skyrim horse?
@aqshay4 жыл бұрын
lmao
@iandawkins21825 жыл бұрын
Nice, simple, informative. Learnt a lot.
@dwaynedelain43263 жыл бұрын
Helped on my project. Thanks
@dg30834 жыл бұрын
Excelent video! very well explained! Thank you for sharing
@deedubbs44126 жыл бұрын
Volume leveling. Damn man why do you blare metal 60dB over the average volume level? Relaxing then BAMABABABABABABABAM
@jessepoole1063 жыл бұрын
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.
@KyPalmo4 жыл бұрын
Exactly what i needed to see thank you.
@swedemake55712 жыл бұрын
Thanks for a very great video.
@yusufabdalla11063 жыл бұрын
thank you for being great!!!
@JohnBaxterWalker4 жыл бұрын
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.
@doctari10616 жыл бұрын
Great. Thanks. Just what I was looking for.
@kennyn.82334 жыл бұрын
Great work. Thanks for sharing
@satalaj4 жыл бұрын
Yes like it and I don't see anyway to thumbs down
@rovelynmaesanchez46907 жыл бұрын
Thank you so much for this.
@msindisimtengwane94565 жыл бұрын
Thank you so much man. This was a really helpful video.
@oliverdeleon44176 жыл бұрын
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.
@DirtNerds5 жыл бұрын
how would you program a button to fire the code and keep the relay latched, tap button again and end code
@yecarri5 жыл бұрын
Why didn't you use a diode to prevent back current produced by the coil in the relay to damage your controller?
@hanuor57905 жыл бұрын
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?
@JohnBaxterWalker4 жыл бұрын
My 4 gang board has diodes factory fitted.
@kylehofmeister69066 жыл бұрын
Very cool! Thanks
@captainprototype1875 жыл бұрын
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?
@cticer4 жыл бұрын
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.
@bih82934 жыл бұрын
Super Helpful
@thelastcitidel7626 жыл бұрын
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!
@jamespruett274 жыл бұрын
i want 10 relays, low power, cheap. Any thoughts? Thanks for posting
@babukandula65916 жыл бұрын
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
@williamjr21926 жыл бұрын
excellent explanation
@davidcarpenter43112 жыл бұрын
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.
@desafa54203 жыл бұрын
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
@badeshka14 жыл бұрын
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.
@gusswilder64184 жыл бұрын
The relay switch is mechanical and will wear out soon with that kind of use. Instead, use a MOSFET module.
@jfree996 жыл бұрын
nice video... so educate
@mcdjacedad73594 жыл бұрын
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
@guitar_noodle7 жыл бұрын
How would you wire Bluetooth, arduino to start up a motorcycle. The starter solenoid relay is 30A
@calebrinker96076 жыл бұрын
LOW on the Arduino means turns off then HIGH means on
@teabagNBG6 жыл бұрын
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?
@Carlo-or3jx6 жыл бұрын
Thank thats help me a lot
@josejulio71045 жыл бұрын
How should I get a motorized valve to react on smoke detector allarm signal
@frankiefrank48536 жыл бұрын
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 ?
@RobiBue4 жыл бұрын
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
@JamesPerez3287 жыл бұрын
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.47414 жыл бұрын
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 :)
@alexlloyd21473 жыл бұрын
@@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.
@epieepede52222 жыл бұрын
I like it
@matthewdejesus1761 Жыл бұрын
can i put it up to 10 mins?
@markvreeken4 жыл бұрын
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.
@sergio54407 жыл бұрын
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?
@Clip7heApex7 жыл бұрын
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.
@sadraxis7 жыл бұрын
Thx :) i helped me a lot :)
@relaymatik59845 жыл бұрын
Is that ok for other arduino
@epieepede52222 жыл бұрын
Trying to repeat the step but it’s more than me specially the code
@DeepeshSingh167 жыл бұрын
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
@wallghing6 жыл бұрын
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
@yoramstein6 жыл бұрын
What was the third (last) Arduino board at 0:33 you show ? You wave with it in an "anarchistic" way viewer ca'nt see.
@johncherry1085 жыл бұрын
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').
@steveedwards905 жыл бұрын
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
@steveedwards905 жыл бұрын
@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
@calimanmancali6 жыл бұрын
can you set up timer for this relay ?
@germanudo17 жыл бұрын
DO NOT SWITCH A NEUTRAL. ALLWAYS SWITCH THE HOT .. Not only is it safer, it is also electrical code.
@hermanhermitz91016 жыл бұрын
@Germanudo He even called it "ground".
@dallashill234 жыл бұрын
@@hermanhermitz9101 stfu
@Teckmesh4 жыл бұрын
Great content dude. for beginners I suppose Tinkercad online Arduino Simulator for better experience. No cost no lost .. :)
@Esteapen5 жыл бұрын
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.
@captainprototype1875 жыл бұрын
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.
@RobiBue4 жыл бұрын
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.
@layton74304 жыл бұрын
Add a touch screen, control a fan, a heater and humidifier for a bedroom, hot night's kill me
@mikelee19062 жыл бұрын
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!
@thaiphuonghoang25904 жыл бұрын
Yeah, the 10 milliseconds sequence was funny. Tomorrow, this will be the first thing I will do. No, not frying the relay.
@one_shot_kills13786 жыл бұрын
i want to activate the relay by clapping
@brahimihamid16927 жыл бұрын
très bonne vidéo
@hometv97575 жыл бұрын
Are there silent relays available?
@dmitrys.47414 жыл бұрын
Sure. Look up "solid state relay".
@alexlloyd21473 жыл бұрын
Remember that the solid state relays USUALLY do not handle as much power as the mechanical relays but will silently operate a smaller demand.
@BushidoBrownSama3 жыл бұрын
@@alexlloyd2147 ??? i have seen 40A solid state relays
@tim_bbq10084 жыл бұрын
A view of the equipment might be more useful than a view of the back of your hand.
@interesting72154 жыл бұрын
You are putting all of your stuff on >>> carpet
@RobiBue4 жыл бұрын
I believe that “carpet” has a grounded backing to prevent static discharge.
@pelepuric71724 жыл бұрын
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.
@wpujolsbaseballinstruction64936 жыл бұрын
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..
@bharathjairam68763 жыл бұрын
yes, looking for collaboration contact @bharathjairam@gmail.com
@amaludayanga8302 Жыл бұрын
please give me the code
@chemetrigzin21235 жыл бұрын
can i put a 15 minutes i.e 900000 ms in the code???
@bharathjairam68763 жыл бұрын
yes you can put bro. looking for collaboration contact @bharathjairam@gmail.com
@daudimwanzia84784 жыл бұрын
Right
@DouglasDeodato4 жыл бұрын
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
@davesmmit99064 жыл бұрын
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?