Arduino Basics - Relays

Ғылым және технология

Arduino and relay. A look at how to get them to work.

Пікірлер: 110

  • @alexlloyd2147
    @alexlloyd21473 жыл бұрын

    Finally someone who knows the topic and how to get it across without all the noise.

  • @justbanter8727
    @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.

  • @salahnahouri417
    @salahnahouri4177 жыл бұрын

    cheers mate , you helped me a lot for my project

  • @emceha
    @emceha5 жыл бұрын

    That music is waay to dramatic lol

  • @arthurrae7904
    @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

  • @PupuTheMonkey
    @PupuTheMonkey6 жыл бұрын

    Thank you for making this so easy to understand.

  • @duuws
    @duuws5 жыл бұрын

    Helped me a lot, thank you!

  • @whitneydesignlabs8738
    @whitneydesignlabs87384 жыл бұрын

    Excellent tutorial. Plain simple and works. Thanks.

  • @iandawkins2182
    @iandawkins21825 жыл бұрын

    Nice, simple, informative. Learnt a lot.

  • @doctari1061
    @doctari10616 жыл бұрын

    Great. Thanks. Just what I was looking for.

  • @KyPalmo
    @KyPalmo4 жыл бұрын

    Exactly what i needed to see thank you.

  • @msindisimtengwane9456
    @msindisimtengwane94565 жыл бұрын

    Thank you so much man. This was a really helpful video.

  • @avvimane3130
    @avvimane31303 жыл бұрын

    Thanks buddy. That helped me setup my solenoid valve. I can now apply same for any application

  • @jackwelch480
    @jackwelch4802 жыл бұрын

    I really enjoyed that video . Thanks

  • @spyynz
    @spyynz Жыл бұрын

    awesome showcase

  • @dg3083
    @dg30833 жыл бұрын

    Excelent video! very well explained! Thank you for sharing

  • @rovelynmaesanchez4690
    @rovelynmaesanchez46906 жыл бұрын

    Thank you so much for this.

  • @kennyn.8233
    @kennyn.82334 жыл бұрын

    Great work. Thanks for sharing

  • @chetankadam
    @chetankadam6 жыл бұрын

    As a beginner this video is very helpful to me.....

  • @swedemake5571
    @swedemake55712 жыл бұрын

    Thanks for a very great video.

  • @dwaynedelain4326
    @dwaynedelain43263 жыл бұрын

    Helped on my project. Thanks

  • @williamjr2192
    @williamjr21926 жыл бұрын

    excellent explanation

  • @Shibu11229
    @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.

  • @thelastcitidel762
    @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!

  • @JohnBaxterWalker
    @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.

  • @danterusso6354
    @danterusso63545 жыл бұрын

    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.

  • @kylehofmeister6906
    @kylehofmeister69066 жыл бұрын

    Very cool! Thanks

  • @sadraxis
    @sadraxis7 жыл бұрын

    Thx :) i helped me a lot :)

  • @fp30e
    @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.

  • @oliverdeleon4417
    @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.

  • @miguelraulgonzalez7744
    @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.

  • @adolphin6041

    @adolphin6041

    2 ай бұрын

    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

  • @babukandula6591
    @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

  • @dani-uf1eo
    @dani-uf1eo6 жыл бұрын

    Lol, whats with the skyrim horse?

  • @aqshay

    @aqshay

    4 жыл бұрын

    lmao

  • @teabagNBG
    @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?

  • @DirtNerds
    @DirtNerds5 жыл бұрын

    how would you program a button to fire the code and keep the relay latched, tap button again and end code

  • @yusufabdalla1106
    @yusufabdalla11063 жыл бұрын

    thank you for being great!!!

  • @Enoch_The_Gent
    @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?

  • @Carlo-or3jx
    @Carlo-or3jx6 жыл бұрын

    Thank thats help me a lot

  • @jfree99
    @jfree996 жыл бұрын

    nice video... so educate

  • @bih8293
    @bih82934 жыл бұрын

    Super Helpful

  • @mowtown75
    @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.

  • @guitar_noodle
    @guitar_noodle6 жыл бұрын

    How would you wire Bluetooth, arduino to start up a motorcycle. The starter solenoid relay is 30A

  • @mcdjacedad7359
    @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

  • @josejulio7104
    @josejulio71044 жыл бұрын

    How should I get a motorized valve to react on smoke detector allarm signal

  • @jamespruett27
    @jamespruett274 жыл бұрын

    i want 10 relays, low power, cheap. Any thoughts? Thanks for posting

  • @davidcarpenter4311
    @davidcarpenter4311 Жыл бұрын

    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.

  • @satalaj
    @satalaj4 жыл бұрын

    Yes like it and I don't see anyway to thumbs down

  • @captainprototype187
    @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?

  • @cticer

    @cticer

    4 жыл бұрын

    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.

  • @calimanmancali
    @calimanmancali6 жыл бұрын

    can you set up timer for this relay ?

  • @sergio5440
    @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?

  • @Clip7heApex

    @Clip7heApex

    6 жыл бұрын

    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.

  • @JamesPerez328
    @JamesPerez3286 жыл бұрын

    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

    @dmitrys.4741

    4 жыл бұрын

    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 :)

  • @alexlloyd2147

    @alexlloyd2147

    3 жыл бұрын

    @@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.

  • @deedubbs4412
    @deedubbs44126 жыл бұрын

    Volume leveling. Damn man why do you blare metal 60dB over the average volume level? Relaxing then BAMABABABABABABABAM

  • @jessepoole106

    @jessepoole106

    3 жыл бұрын

    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.

  • @yoramstein
    @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.

  • @johncherry108

    @johncherry108

    5 жыл бұрын

    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').

  • @badeshka1
    @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.

  • @gusswilder6418

    @gusswilder6418

    4 жыл бұрын

    The relay switch is mechanical and will wear out soon with that kind of use. Instead, use a MOSFET module.

  • @brahimihamid1692
    @brahimihamid16927 жыл бұрын

    très bonne vidéo

  • @epieepede5222
    @epieepede52222 жыл бұрын

    I like it

  • @steveedwards90
    @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

  • @steveedwards90

    @steveedwards90

    5 жыл бұрын

    @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

  • @yecarri
    @yecarri5 жыл бұрын

    Why didn't you use a diode to prevent back current produced by the coil in the relay to damage your controller?

  • @hanuor5790

    @hanuor5790

    5 жыл бұрын

    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?

  • @JohnBaxterWalker

    @JohnBaxterWalker

    4 жыл бұрын

    My 4 gang board has diodes factory fitted.

  • @DeepeshSingh16
    @DeepeshSingh166 жыл бұрын

    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

  • @wallghing

    @wallghing

    5 жыл бұрын

    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

  • @calebrinker9607
    @calebrinker96076 жыл бұрын

    LOW on the Arduino means turns off then HIGH means on

  • @desafa5420
    @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

  • @relaymatik5984
    @relaymatik59845 жыл бұрын

    Is that ok for other arduino

  • @Teckmesh
    @Teckmesh4 жыл бұрын

    Great content dude. for beginners I suppose Tinkercad online Arduino Simulator for better experience. No cost no lost .. :)

  • @frankiefrank4853
    @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 ?

  • @RobiBue

    @RobiBue

    4 жыл бұрын

    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

  • @layton7430
    @layton74304 жыл бұрын

    Add a touch screen, control a fan, a heater and humidifier for a bedroom, hot night's kill me

  • @Esteapen
    @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.

  • @captainprototype187

    @captainprototype187

    5 жыл бұрын

    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.

  • @RobiBue

    @RobiBue

    4 жыл бұрын

    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.

  • @thaiphuonghoang2590
    @thaiphuonghoang25903 жыл бұрын

    Yeah, the 10 milliseconds sequence was funny. Tomorrow, this will be the first thing I will do. No, not frying the relay.

  • @matthewdejesus1761
    @matthewdejesus1761 Жыл бұрын

    can i put it up to 10 mins?

  • @germanudo1
    @germanudo16 жыл бұрын

    DO NOT SWITCH A NEUTRAL. ALLWAYS SWITCH THE HOT .. Not only is it safer, it is also electrical code.

  • @hermanhermitz9101

    @hermanhermitz9101

    6 жыл бұрын

    @Germanudo He even called it "ground".

  • @dallashill23

    @dallashill23

    4 жыл бұрын

    @@hermanhermitz9101 stfu

  • @hometv9757
    @hometv97575 жыл бұрын

    Are there silent relays available?

  • @dmitrys.4741

    @dmitrys.4741

    4 жыл бұрын

    Sure. Look up "solid state relay".

  • @alexlloyd2147

    @alexlloyd2147

    3 жыл бұрын

    Remember that the solid state relays USUALLY do not handle as much power as the mechanical relays but will silently operate a smaller demand.

  • @BushidoBrownSama

    @BushidoBrownSama

    3 жыл бұрын

    @@alexlloyd2147 ??? i have seen 40A solid state relays

  • @interesting7215
    @interesting72154 жыл бұрын

    You are putting all of your stuff on >>> carpet

  • @RobiBue

    @RobiBue

    4 жыл бұрын

    I believe that “carpet” has a grounded backing to prevent static discharge.

  • @epieepede5222
    @epieepede52222 жыл бұрын

    Trying to repeat the step but it’s more than me specially the code

  • @one_shot_kills1378
    @one_shot_kills13786 жыл бұрын

    i want to activate the relay by clapping

  • @daudimwanzia8478
    @daudimwanzia84784 жыл бұрын

    Right

  • @DouglasDeodato
    @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

  • @wpujolsbaseballinstruction6493
    @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..

  • @bharathjairam6876

    @bharathjairam6876

    3 жыл бұрын

    yes, looking for collaboration contact @bharathjairam@gmail.com

  • @pelepuric7172
    @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.

  • @tim_bbq1008
    @tim_bbq10084 жыл бұрын

    A view of the equipment might be more useful than a view of the back of your hand.

  • @amaludayanga8302
    @amaludayanga8302 Жыл бұрын

    please give me the code

  • @markvreeken
    @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.

  • @mikelee1906
    @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!

  • @chemetrigzin2123
    @chemetrigzin21235 жыл бұрын

    can i put a 15 minutes i.e 900000 ms in the code???

  • @bharathjairam6876

    @bharathjairam6876

    3 жыл бұрын

    yes you can put bro. looking for collaboration contact @bharathjairam@gmail.com

  • @toki3204
    @toki32043 жыл бұрын

    can you speak more beginner language

  • @davesmmit9906
    @davesmmit99063 жыл бұрын

    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?

Келесі