Arduino Basics - Relays

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 110

  • @alexlloyd2147
    @alexlloyd2147 3 роки тому +1

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

  • @emceha
    @emceha 5 років тому +42

    That music is waay to dramatic lol

  • @arthurrae7904
    @arthurrae7904 4 роки тому +1

    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

  • @justbanter8727
    @justbanter8727 5 років тому +2

    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.

  • @Enoch_The_Gent
    @Enoch_The_Gent 2 роки тому +1

    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?

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

  • @miguelraulgonzalez7744
    @miguelraulgonzalez7744 3 роки тому +1

    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 6 місяців тому

      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

  • @mowtown75
    @mowtown75 2 роки тому

    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-uf1eo
    @dani-uf1eo 7 років тому +33

    Lol, whats with the skyrim horse?

    • @aqshay
      @aqshay 4 роки тому +1

      lmao

  • @avvimane3130
    @avvimane3130 4 роки тому

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

  • @DirtNerds
    @DirtNerds 5 років тому +1

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

  • @davidcarpenter4311
    @davidcarpenter4311 2 роки тому

    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.

  • @fp30e
    @fp30e 3 роки тому

    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.

  • @whitneydesignlabs8738
    @whitneydesignlabs8738 4 роки тому +2

    Excellent tutorial. Plain simple and works. Thanks.

  • @jackwelch480
    @jackwelch480 2 роки тому

    I really enjoyed that video . Thanks

  • @salahnahouri417
    @salahnahouri417 7 років тому +7

    cheers mate , you helped me a lot for my project

  • @mcdjacedad7359
    @mcdjacedad7359 4 роки тому

    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

  • @danterusso6354
    @danterusso6354 6 років тому +1

    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.

  • @jamespruett27
    @jamespruett27 4 роки тому +1

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

  • @spyynz
    @spyynz Рік тому

    awesome showcase

  • @chetankadam
    @chetankadam 7 років тому

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

  • @oliverdeleon4417
    @oliverdeleon4417 7 років тому +1

    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.

  • @captainprototype187
    @captainprototype187 5 років тому

    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 роки тому +1

      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.

  • @badeshka1
    @badeshka1 4 роки тому

    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.

  • @dg3083
    @dg3083 4 роки тому

    Excelent video! very well explained! Thank you for sharing

  • @iandawkins2182
    @iandawkins2182 5 років тому

    Nice, simple, informative. Learnt a lot.

  • @swedemake5571
    @swedemake5571 2 роки тому

    Thanks for a very great video.

  • @deedubbs4412
    @deedubbs4412 7 років тому +14

    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.

  • @yecarri
    @yecarri 5 років тому +5

    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 років тому +1

      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.

  • @PupuTheMonkey
    @PupuTheMonkey 7 років тому

    Thank you for making this so easy to understand.

  • @duuws
    @duuws 5 років тому +4

    Helped me a lot, thank you!

  • @guitar_noodle
    @guitar_noodle 7 років тому

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

  • @thelastcitidel762
    @thelastcitidel762 7 років тому

    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!

  • @babukandula6591
    @babukandula6591 7 років тому

    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

  • @josejulio7104
    @josejulio7104 5 років тому

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

  • @dwaynedelain4326
    @dwaynedelain4326 4 роки тому

    Helped on my project. Thanks

  • @KyPalmo
    @KyPalmo 4 роки тому

    Exactly what i needed to see thank you.

  • @relaymatik5984
    @relaymatik5984 5 років тому

    Is that ok for other arduino

  • @matthewdejesus1761
    @matthewdejesus1761 2 роки тому

    can i put it up to 10 mins?

  • @JohnBaxterWalker
    @JohnBaxterWalker 4 роки тому

    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.

  • @calimanmancali
    @calimanmancali 7 років тому

    can you set up timer for this relay ?

  • @teabagNBG
    @teabagNBG 7 років тому

    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?

  • @sergio5440
    @sergio5440 7 років тому

    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 7 років тому

      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.

  • @steveedwards90
    @steveedwards90 5 років тому

    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

  • @doctari1061
    @doctari1061 7 років тому

    Great. Thanks. Just what I was looking for.

  • @JamesPerez328
    @JamesPerez328 7 років тому

    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 роки тому +1

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

  • @kennyn.8233
    @kennyn.8233 4 роки тому

    Great work. Thanks for sharing

  • @desafa5420
    @desafa5420 3 роки тому

    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

  • @msindisimtengwane9456
    @msindisimtengwane9456 5 років тому

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

  • @yusufabdalla1106
    @yusufabdalla1106 3 роки тому

    thank you for being great!!!

  • @calebrinker9607
    @calebrinker9607 6 років тому

    LOW on the Arduino means turns off then HIGH means on

  • @frankiefrank4853
    @frankiefrank4853 7 років тому

    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

  • @hometv9757
    @hometv9757 5 років тому

    Are there silent relays available?

    • @dmitrys.4741
      @dmitrys.4741 4 роки тому +1

      Sure. Look up "solid state relay".

    • @alexlloyd2147
      @alexlloyd2147 3 роки тому +1

      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

  • @satalaj
    @satalaj 4 роки тому

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

  • @yoramstein
    @yoramstein 7 років тому

    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 6 років тому

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

  • @germanudo1
    @germanudo1 7 років тому +4

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

  • @rovelynmaesanchez4690
    @rovelynmaesanchez4690 7 років тому +2

    Thank you so much for this.

  • @DeepeshSingh16
    @DeepeshSingh16 7 років тому

    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 6 років тому

      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

  • @bih8293
    @bih8293 4 роки тому

    Super Helpful

  • @williamjr2192
    @williamjr2192 6 років тому

    excellent explanation

  • @kylehofmeister6906
    @kylehofmeister6906 6 років тому

    Very cool! Thanks

  • @layton7430
    @layton7430 4 роки тому

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

  • @epieepede5222
    @epieepede5222 2 роки тому

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

  • @Esteapen
    @Esteapen 5 років тому

    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
    @thaiphuonghoang2590 4 роки тому

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

  • @jfree99
    @jfree99 7 років тому

    nice video... so educate

  • @sadraxis
    @sadraxis 7 років тому

    Thx :) i helped me a lot :)

  • @one_shot_kills1378
    @one_shot_kills1378 7 років тому

    i want to activate the relay by clapping

  • @epieepede5222
    @epieepede5222 2 роки тому

    I like it

  • @DouglasDeodato
    @DouglasDeodato 4 роки тому

    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

  • @Carlo-or3jx
    @Carlo-or3jx 7 років тому

    Thank thats help me a lot

  • @amaludayanga8302
    @amaludayanga8302 Рік тому

    please give me the code

  • @interesting7215
    @interesting7215 5 років тому

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

    • @RobiBue
      @RobiBue 4 роки тому

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

  • @Teckmesh
    @Teckmesh 4 роки тому

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

  • @brahimihamid1692
    @brahimihamid1692 7 років тому +1

    très bonne vidéo

  • @tim_bbq1008
    @tim_bbq1008 4 роки тому

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

  • @wpujolsbaseballinstruction6493
    @wpujolsbaseballinstruction6493 7 років тому

    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

  • @markvreeken
    @markvreeken 4 роки тому +1

    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.

  • @pelepuric7172
    @pelepuric7172 5 років тому

    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.

  • @mikelee1906
    @mikelee1906 2 роки тому

    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!

  • @daudimwanzia8478
    @daudimwanzia8478 4 роки тому

    Right

  • @chemetrigzin2123
    @chemetrigzin2123 5 років тому

    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

  • @davesmmit9906
    @davesmmit9906 4 роки тому

    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?

  • @toki3204
    @toki3204 4 роки тому

    can you speak more beginner language