#9 - Arduino - Connecting a Relay Module

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 65

  • @ianbirkinhead4103
    @ianbirkinhead4103 Месяц назад

    You are a great teacher, this video is 9 years old but for me it is fresh, just like you were standing there. Thank you.

  • @DanHaiduc
    @DanHaiduc 6 лет назад +15

    This is the best relay tutorial I have seen.

  • @troymorley902
    @troymorley902 Год назад

    That's exactly what I was looking for. Thanks Brad

  • @juanmanuelalcortavillarrea9098
    @juanmanuelalcortavillarrea9098 6 лет назад +3

    Thanks, great explanation on the difference between JDVcc and Vcc pros and cons to use a jumper connector

  • @darrylbanjoo2675
    @darrylbanjoo2675 5 лет назад

    best relay tutorial on connection signal

  • @daichemed9780
    @daichemed9780 5 лет назад +1

    Thank u from algeria, the best relay tutorial ever I seen.

  • @mattbz5967
    @mattbz5967 4 года назад +1

    Just stumbled on this looking for info on how to wire up a traffic light, thanks for the great explanation!

  • @sultanawwad4267
    @sultanawwad4267 2 года назад

    It really helped me a lot better understand the concept of relays
    Nice job and thanks a million

  • @ytfp
    @ytfp 7 лет назад

    Hands down the best relay presentation and explaintion for arduino and relay control.

  • @vp.8181
    @vp.8181 3 года назад

    I loved to the way u taught. ❤️❤️❤️ U kept it very simple to understand. Thanks.

  • @tpobrienjr
    @tpobrienjr 4 года назад +1

    Good explanation, Brad. Thank you.

  • @justAUserName123
    @justAUserName123 6 лет назад +2

    Best explanation I've seen

  • @robertilie2507
    @robertilie2507 4 года назад +1

    You made a very good tutorial. Thank you.

  • @sachithlakmal2118
    @sachithlakmal2118 3 года назад

    Very good detailed explanation about relays ❤ thank you

  • @Rivenbourn
    @Rivenbourn 7 лет назад

    By far the best explanation i've seen. Thanks!! :)

  • @maurofuji7205
    @maurofuji7205 5 лет назад

    Your tutorial was very enlightening and helpful to me. Thank you very much.

  • @atlantishiruma7197
    @atlantishiruma7197 2 года назад

    Thanks for the video and the explanations.

  • @abhinavmishra1861
    @abhinavmishra1861 6 лет назад +1

    everything is explained very well
    good job 👍

  • @Eric-zg4xd
    @Eric-zg4xd 5 лет назад

    Perfectly explained, thank you so much

  • @eduardoarevalo3208
    @eduardoarevalo3208 4 года назад +1

    Great explanation!

  • @abhishektripathi8213
    @abhishektripathi8213 5 лет назад

    Thanks a lot. You helped me understand the concept...

  • @tushardas9825
    @tushardas9825 3 года назад

    Nicely Explaind. Thank you 👍

  • @llanzafa
    @llanzafa 6 лет назад

    Well done buddy, really informative

  • @crispychickenwing
    @crispychickenwing 3 года назад

    hello thanks for the detailed explanation in the video. however I have a question to ask, what external source can I connect the jdvcc to? a battery?what are the options

  • @Yelloworld
    @Yelloworld 7 лет назад

    Great work... I like the deep dive explanation. Awesome job.

  • @iRuf12
    @iRuf12 5 лет назад

    like others have said , best tutorial I've seen on using these relay modules. i also have this model as well as a few more complex boards with timers, delays etc. Brad I wish to use this Relay without a controller , just using 12v from an led driver, to trigger relay. can you tell me which ins id use to do this pretty please dude? serious lack of info from manufacturers and on net in general. thanks alex

    • @blackz06
      @blackz06 3 года назад

      Don't use 12v on these 5v relays.

  • @bostitch001
    @bostitch001 4 года назад +1

    Verry usefull, Thank you!

  • @fernandol1996
    @fernandol1996 5 лет назад

    Thank you, I have a question if I have a single relay module and external power supply. How should I connect it?

  • @jamesrtheaker5896
    @jamesrtheaker5896 6 лет назад

    Very nice. Done in language that I could understand

  • @hometv9757
    @hometv9757 5 лет назад

    Thank you...very helpful, liked and subbed

  • @tobotdolce9556
    @tobotdolce9556 5 лет назад

    sir i have relay module 30A 250VAC/30VDC how many watts my relay can hold? thank you sir

  • @vikas2.o182
    @vikas2.o182 9 месяцев назад

    Make video on 12 v & 24 v relay with Arduino

  • @robzgregorio
    @robzgregorio 4 года назад

    Great Stuff. Thanks.

  • @jeanlouis5966
    @jeanlouis5966 7 лет назад

    Well done! I LOVE IT.

  • @bryansu
    @bryansu 6 лет назад

    if I have 12v/150ma triggering rail (2 rail only) , how do I activate the relay? should I connect the negative rail to both IN and GRD, and the positive rail to the VCC/JDCC ?? please advice

  • @eimbh
    @eimbh 5 лет назад

    Excellent sir

  • @ryangill6989
    @ryangill6989 7 лет назад

    Why do you need two transistors? Why couldn't you connect the relay along with the diode between the JD-VCC and the collector of the the opto-isolator transistor and have the emitter of that go to ground?

    • @bradfordhenson
      @bradfordhenson  7 лет назад

      Great question. In this module the opto-isolator isn't designed to carry the current required to activate the relay, so it is instead used to drive the transistor. With that being said, there are isolators that can carry more current and it is of course possible to build a circuit to do what you mentioned.

  • @vp.8181
    @vp.8181 3 года назад

    hey i used a basic relay on off code to check if its working so its finally working.. connection were as jdvcc and ground from external and vcc,grd, vin from arduino . This actually worked. But when i used everything same in my project then the relay is not working . same connection as in previous one but when i connect grp to arduino the led goes off and when i disconnect it is on again. So now what should i do.what should my connection be. i even tried but jumpinng vcc and jdvcc but even that didnt work. the is working but not in my project. it only works on basic program . please let me know the proper connections.

    • @bradfordhenson
      @bradfordhenson  3 года назад +1

      When troubleshooting a problem like that I would double check voltages. Make sure you are getting the expected voltages between JDVCC and GND, then check the voltage between VCC and IN1. If you are connecting the relay for use with an external power supply, using JDVCC, then you shouldn't have to connect the Arduino GND. In this type of set up the IN1 pin acts as the GND for the VCC from the Arduino. The idea is when IN1 pin is high, the voltage potential is the same as VCC, so the relay is not activated. When IN1 pin is low, the voltage potential between the pin and VCC is 5 volts which activates the opto-isolator and ultimately the relay.

    • @vp.8181
      @vp.8181 3 года назад

      @@bradfordhenson huge respect for yur reply bro. Now the issue is like relay is working and I am finally done with my project but the relay was wired . When I set low it went high and vice versa. Why so?

    • @bradfordhenson
      @bradfordhenson  3 года назад

      @@vp.8181 When the Arduino pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow logically from VCC to IN0. In this case IN0 is the lower "negative" side of the circuit. It is safe to source current like this up to 40 mA on an Arduino pin. The effect is that the Arduino pin has to be low for current to flow and activate the opto-isolator. If the Arduino pin connected to IN0 is High, then the voltage potential between VCC and IN0 is the same, which does not allow the opto-isolator to turn on. This is why when the Arduino pin is High the relay is off and when the Arduino pin is low the relay is on.

  • @bassy900
    @bassy900 7 лет назад

    Is there a max distance between Your arduino and the Relay module

    • @bradfordhenson
      @bradfordhenson  7 лет назад

      There technically is a max distance, but it would depend on what kind of wire you are using to hook the Arduino up to the relay. The longer the wire, the more resistance there is. You have to account for the voltage drop of the wire, due to resistance, when you start getting to really long wire lengths.

  • @valentindesquien1803
    @valentindesquien1803 5 лет назад

    HI everybody, I need to do a stroboscop with LED bands so I copy exactly all the connections (2nde exemple shown) , I just used a 12V battery to aliment the LEDs but they stay switch on instead of alternate between on/off, the led on the relay do the on/off delay I've code however, I don't understand...
    Somebody to help me ? ( sorry for my frenchy english )
    Nice video ! The only one I've totally understood

  • @davidprice2861
    @davidprice2861 5 лет назад

    I'm confused with ext supply no common ground for arduino board, or does the pin output going low obviate the need.
    Anyone know??

    • @bradfordhenson
      @bradfordhenson  5 лет назад

      When the pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow. That is what activates the opto-isolator and ultimately there is enough voltage present on the transistor's gate to turn the transistor on. In this case we are using the output pin to sink current (it is safe to do this up about 40 mA). Anymore current then 40 mA and you run a serious risk of damaging the pin on the Atmega chip.

  • @bijuphilipjacob2961
    @bijuphilipjacob2961 7 лет назад

    Just Awesome!
    Thank you so much.
    Very Descriptive and Academic.
    I have a request please.
    Would you be kind and make a tutorial video on how to connect an AC well water pump to a relay?
    If you could also advise on the correct pump start relay spec to purchase please.
    I plan to control my pump for the house from my cell phone using my Arduino UNO and a WiFi sheild.
    AC Well Pump Specs (India):
    -> 240 V
    -> 50 Hz
    -> 1.5 HP
    -> 6.6 A
    -> 2800 rev/min
    -> HEAD: 30 Feet
    If there is anything else you would need to know, kindly let me know.
    Eagerly awaiting your reply.
    Thanks & Best regards,
    Philip

    • @bradfordhenson
      @bradfordhenson  7 лет назад

      Unfortunately, I wont be able to make a specific video on how to do this. However, there are a lot of videos out there that explain how to configure an arduino for that type of operation, and as far as the pump in concerned you only have to splice in a relay on one leg of the input power. Good luck with your project.

    • @bijuphilipjacob2961
      @bijuphilipjacob2961 7 лет назад

      Thanks Brad.
      Any information I can get is worth it.
      Yes, I need to complete this and many such mini projects for my home.

  • @ershekharsolanki
    @ershekharsolanki 7 лет назад

    nice video

  • @gilbertgababonwe704
    @gilbertgababonwe704 6 лет назад

    Genius

  • @ihodeputa2905
    @ihodeputa2905 5 лет назад

    Take my sub!

  • @kalkvand
    @kalkvand 7 лет назад

    The thing that i dont understand is how the light is connected..

    • @bradfordhenson
      @bradfordhenson  7 лет назад

      The light is connected to a standard two prong power cable which is plugged into a wall outlet. The relay is effectively spliced into the "hot" wire connection.