Everything you need to know about RELAYS

Sdílet
Vložit
  • čas přidán 9. 12. 2017
  • Relays are electronic switches that allow a low voltage output from a Raspberry Pi or an Arduino control a much more powerful circuit - like a 12V LED strip, a 24V motor, or even your home 240V AC mains supply.
    In this video, I'll teach you about the different sort of relays available, the input and output wiring connections, how to use opto-isolation, and show you some typical circuit diagrams that you might use in a home automation of room escape electronic puzzle design.
    You can find the PDF file to accompany this video on my Patreon page: / 15808925
  • Věda a technologie

Komentáře • 62

  • @DukeRaven
    @DukeRaven Před 4 lety

    I found your videos when I was looking up how to connect a rotary dial phone to and Arduino, and I must say, I really enjoy them! Your explanations are really thorough, and you don't rush through any details. Keep up the good work :D

  • @Crackeditnc1
    @Crackeditnc1 Před 6 lety +2

    Again another excellent explanation. Thank you for explaining the K1/K2 diagram. I have seen this many times and didn't know exactly what it meant.

  • @craigc2721
    @craigc2721 Před 6 lety

    Great video. I needed this info for my next project. I was about to use a 5v relay where I was using 12 volts. Thanks again for all your videos.

  • @dmoehling
    @dmoehling Před 5 lety +1

    This NC to NO diagram makes sooooooooo much sense! I've used NC and NO connections for years and never truly understood how it worked. Thank you so much for this video! We need another video from you brother. You put out GREAT content, and I'm needing my Playful Tech fix. Feed us! Much Love!

    • @AztecWarrior69
      @AztecWarrior69 Před 2 lety

      Why didn't you just look at the diagram on the relays or google them?

  • @ciaranmacgillivray
    @ciaranmacgillivray Před rokem

    Absolutely beautifully explained. Great video and great diagrams to help nail the points home.

  • @tomaszbe1386
    @tomaszbe1386 Před 3 lety

    Great video, lot's of info, all well described and shown, great job mate. Keep it up.

  • @user-ix3ny2lf1n
    @user-ix3ny2lf1n Před 3 lety +1

    i was thinking ...
    what can be so exited about relays, that you're about to talk for ~23 min?!
    and i'm impressed!
    liked the explanation of the NC NO & C, as well as the optocouplers / optoisolators explanation :D
    very informative. Thanks a lot!

  • @russellniebolt1493
    @russellniebolt1493 Před 5 měsíci

    Wow, this was great and the best! I just watched a couple of other relay vids, they were ok. But yours, really clarified things at all angles of using a relay. Thanks sir!

  • @LionTree
    @LionTree Před 2 lety

    This is such a great explainer video! Thanks

  • @CitizensCommunity
    @CitizensCommunity Před 10 měsíci +1

    The JD-VCC pin on a relay board is used to supply an isolated voltage source to the relay coil. In a typical 5V relay module, you will see pins for VCC, GND, IN (input), and sometimes JD-VCC. The purpose of having JD-VCC is to allow you to isolate the relay's coil voltage (JD-VCC) from the control circuit voltage (VCC).
    VCC is used to power the control circuitry on the board, which might include things like optoisolators, LEDs, and logic ICs.
    JD-VCC is used to power the relay coil itself. This is typically the same voltage level as VCC, although it can be different in some configurations.
    GND is the common ground for both the control circuit and the coil circuit.
    In many relay boards, there's a jumper that allows you to either isolate JD-VCC or tie it together with VCC. If you isolate them, you can power the relay coil independently, which provides electrical isolation between the control circuit (microcontroller, for example) and the circuit being switched by the relay.
    The idea behind this isolation is to protect the sensitive microcontroller and its pins from potential back-EMF generated by the relay coil or from any kind of electrical noise or spikes that could be present on the power line being switched.

  • @erik.landen
    @erik.landen Před 3 lety

    Great explanation, thanks!

  • @charleena2319
    @charleena2319 Před 3 lety

    Super Video, thank you so much!

  • @FerneyManrique
    @FerneyManrique Před 2 lety

    uh, that was quite a brilliant explanation! thanks a lot.

  • @jawneelogik5744
    @jawneelogik5744 Před 5 lety +10

    Just in case you didn't know, you can also get these same modules in 3.3V configuration. I bought a bunch of 2 relay modules and an 8 relay module all in 3.3V. For Rpi this is critical because they seem to prefer 3.3V over 5V.

    • @YouWantMyVote
      @YouWantMyVote Před 2 lety +3

      Unless I'm mistaken, most 5v rated relays can also trigger at 3.3V.

    • @codyrap95
      @codyrap95 Před rokem

      Some 5v relays can operate just fine on 3.3v, no need for 5v at all

  • @spiritburners
    @spiritburners Před rokem

    That was great thanks. I now understand a lot more than i did before watching this on modular relays, I didn't realise you could control one from a Pi... Interesting. opens up a whole new area.....
    I do have a question please and would like to know if you can simply control this type of relay by simply sending a low continuous DC voltage say from a new Halo type on/off (not momentary) switch ( the modern LED switches you see everywhere on machines to bread slicers in Lidl etc flat face, normally stainless with a RGB LED halo and "on" icon)
    They are rated at 3 amps 240 volts or 3 to 6 volts or 12 and 24 volts as well as 240 but not more than 3 amps so basically useless for say a compressor or extractor unit which use higher power. I am building a new C02 laser and would like a nice fancy control panel but I need to be able to switch 220 volts for the compressor and extraction fans and was wondering if I could do it using this type of module or would I need to use a larger fat SSR? :-)
    I was thinking of getting 5 volt dc versions of these Halo switches and then using 5 v dc positive from a small PSU to simply supply the voltage to light the Halo LED and at the same time use that voltage then as a "switched live" on to the relay via the Halo switch to then use that to switch up to 240 volts AC at 10 amps. Any ideas please on this Thank you. AC no problem but DC it gets complex....

  • @mushashakantengwe1191
    @mushashakantengwe1191 Před 2 lety

    nice info. wanted to make a request on how OAC-5H series relay work

  • @jamesh2.05
    @jamesh2.05 Před 2 lety

    Bro! Thank you! I was using a 12v relay for my 12v mag-lock and was pulling my hair out trying figure out why it wasn't working. Lmfao! 5v relay from the nano now works perfectly. Thanks again.

  • @leandro3710
    @leandro3710 Před 4 lety

    veri nice, thanks!

  • @seren3634
    @seren3634 Před rokem

    Great video! I was just wondering, if I was using a 12V relay module (includes its' own protection diode) that can be triggered by 3.3V logic from the microcontroller to control a motorized ball valve (9-24V AC/DC), would I need to include an additional flyback diode across the contacts from the relay to the motorized valve?

  • @NPETERSEN100
    @NPETERSEN100 Před rokem

    Hi I have a boom gate and a roller shutter gate and want to open both at the same time, however I only have one trigger in order to do it

  • @SHADOW-bg4mm
    @SHADOW-bg4mm Před 3 lety

    is it possible to change the relays from the board and increase the max load without having issues? i have a board with relays rated at 10amps each but want to change the relay to 30/40amps, same voltage, but if i could find same size relay. my board comes with 2 wireless remotes that i like but the relay max load inside is 10amps each, its just not gonna go well when i give it a load of 25 amps from a motor?

  • @onurbmti
    @onurbmti Před 2 lety

    Hi Relay experts. I m using an 8 Channel Sainsmart relay board. It requires 12V to activate the relay and it's rated for 30V DC load. I am using it to control 24V items (pin ball flippers). Why after a certain amount of usage does the relay fail. I hear the relay trigger but it fails to complete the 24V circuit after a while. Do I need to place something on the circuit to avoid this damage to the relay.
    Thanks

  • @Rockerkishangarh
    @Rockerkishangarh Před 2 lety

    You are awesome... i was almost thinking of going to the mental asylum as i was trying a relay on my raspberry pico and i wasn't able to, until i saw your video @12:24 it is so clear and simple. Thanks a lot. Subscribed and liked.

  • @chickenz4604
    @chickenz4604 Před 2 lety

    Hello Sir, I plan to use this relay to connect from 5V arduino to 12V DC Pump (4-7A). It is written that the DC adaptor to power the pump is 12V 10A. is it a robust solution to use this relay in a closed enclosure in the farm? or should I upgrade the relay spec? Thank You Very much Sir !

  • @darkspace3316
    @darkspace3316 Před 3 lety +1

    My arm is aching just by watching him hold that relay for that long without any support.

  • @stephenwaugh6558
    @stephenwaugh6558 Před 2 lety

    I have a camper that has 12V switches 40/30 amp relays to open and close awnings etc... Can this help my system and cut back on wiring using din rails? Not too sure if I understand the use?

  • @justinhoppes1630
    @justinhoppes1630 Před rokem

    looking to use a relay to move a dc motor with 2 push buttons and not a arduino . Do you have a video for that?

  • @user-qz8et1xe5s
    @user-qz8et1xe5s Před rokem

    Hi, I am trying to use the 5V relay for a circuit, but my input signal is coming through a chamber which has digi i/o. How would the input circuit look without an arduino powering it. Do I need to have a 5V power supply in series with the Digi i/o to energize the relay?

  • @jaso5007
    @jaso5007 Před 3 lety

    is there a difference between jqc3ff and srd 05vdc relay module?

  • @eloimumford5247
    @eloimumford5247 Před rokem

    I use a photoresistor to actuate a relay but i find a problem when the luminosity is not enough to fully turn the relay on , it hesitates for minutes , same for power off at sunset.
    Do you have a solution ?

  • @hadypranoto2329
    @hadypranoto2329 Před 3 lety

    can you help make to 3v relay?

  • @adelinakondratjeva5503

    can i use transistor instead?

  • @Berghiker
    @Berghiker Před 3 lety

    Can I use the same battery for both outputs on the relay for 2 different circuits? I did this but the relay keeps clicking. It can't stay on.

  • @mufutauolatunji5758
    @mufutauolatunji5758 Před 2 lety

    The picture of the relay am asking about is the smallest relay black in colour then it has fin legs only four fins leg.

  • @StuartGrimshaw-px1wz
    @StuartGrimshaw-px1wz Před 10 měsíci

    Did the mosfet video ever get made? The ticking of the relays is driving my wife bonkers.

  • @jinberry133
    @jinberry133 Před 3 měsíci

    I connected a sk3f-s-5vdc-c relay with esp32. But it doesn't work. Is there any way to fix it?(without changing the relay module)

  • @hustleking8653
    @hustleking8653 Před 3 lety

    for 4 channel relay , how to calcualte Wattage calculation if I am powering it with Lithium 12v battery ??? is it like 30V x 10 A = 300 Watts for all 4 different relays?? or for just one relay ??

    • @PlayfulTechnology
      @PlayfulTechnology  Před 3 lety

      Do you mean power on the load side? (i.e. the device you're turning on?) Or power on the Arduino side (i.e. just the coil which you're powering to switch the relay across?) I don't think either of them will be 300W!

  • @g.m4z956
    @g.m4z956 Před 2 lety

    Hi! is a good idea use a relay to activate/deactivate a speaker audio line for control the position of sound out in a room? because in a node-red based sistem the node red dashboard isn't able to controll how html page send a channel audio. With relay all the speaker send all the sound, but node red can eventually deactivate the line of all the speakers and keep on the only playout the sound.

    • @PlayfulTechnology
      @PlayfulTechnology  Před 2 lety +1

      Yes, I've used multi-channel relays to divert sound to speakers in different areas. It's simple and works well!

    • @g.m4z956
      @g.m4z956 Před 2 lety

      @@PlayfulTechnology thanks, really very useful! node red is lacking in this respect. Yet the audio control should be an important part of both general home automation and for an escape room, but I have seen that there are not many proposals for both commercial and amateur projects. The only more advanced system I've seen is this czcams.com/video/SPa9SMyPU58/video.html. Can I recommend making a video on this topic? It would be really great to have a stable and robust system for audio management via MQTT and wifi via node red and esp. It could be done with more locations than Eco dot or google home, but the problem is the dependence on the specific node in node red and above all the fact that if the internet line is interrupted they do not work. thanks for all your videos! (italy)

  • @Home_made_ch
    @Home_made_ch Před 2 lety

    Is possible to use this relay for 42dcv?

    • @PlayfulTechnology
      @PlayfulTechnology  Před 2 lety

      No - the SRD-05VDC-SL-C which is the common model I show here is only rated up to 28VDC.

  • @Fanny10000
    @Fanny10000 Před 5 měsíci

    Hello! Thanks for all your videos. Your creations are a dream!
    One question: why do you use relays rather than transistors or mosfets? I often have problems with relays that I have to shake because they get "tired" (mechanically speaking). I'm thinking of changing my strategy...

    • @PlayfulTechnology
      @PlayfulTechnology  Před 5 měsíci

      Mainly for isolation. A relay (combined with an optoisolator) means your load is completely electrically isolated from your control circuit, which is important when you're controlling "noisy" equipment that you want to keep seperated from your delicate microcontrollers!

    • @Fanny10000
      @Fanny10000 Před 5 měsíci

      @@PlayfulTechnology OK, I get it. Thank you for answering 🙏

  • @darkspace3316
    @darkspace3316 Před 3 lety

    Can I use this relay to control a 12V connection on the output side?

  • @anshulsharma4500
    @anshulsharma4500 Před 8 dny

    But the 6 analog pins (A0 - A5) on the Arduino can only be used as input pins not output. How are you using the A0 pin to turn the relay on or off?

    • @PlayfulTechnology
      @PlayfulTechnology  Před 3 dny

      A0 to A5 can be used as output pins absolutely fine - just intitialise them as pinMode(Ax, OUTPUT); and then digitalWrite(Ax, HIGH); just as with any other pin.

  • @remconet
    @remconet Před 6 lety +1

    So... you don't need a 12V relay because you have a 12V mag lock. In stead you need a 5V relay because the Arduino gives 5V output? Did I get that right?

  • @Karl_Levine
    @Karl_Levine Před 3 lety

    Huh. You choked on the jd vcc explanation and then figured well I'll mention them separate gnd but didn't connect the dots you yourself drew regarding this & the module you show.

  • @In2legos
    @In2legos Před 4 lety

    Since these relays are rated for a load of 10 A that means they would not be safe for use with mains power (which has a current normally between 15-20A) correct? What relays would you suggest for use with a microcontroller that can handle mains power?

    • @johncherry108
      @johncherry108 Před 3 měsíci

      The point is that a microcontroller CANNOT handle mains power. We need a relay controlled by low voltages and currents from the microcontroller to switch the higher voltages and currents of mains power.

  • @AztecWarrior69
    @AztecWarrior69 Před 2 lety

    "Everything you need to know about RELAYS" Everything? You really didn't even scratch the surface.

    • @PlayfulTechnology
      @PlayfulTechnology  Před 2 lety

      This is an old video, and addressed the issues that most of my subscribers were asking at the time. If you let me known what it is *you* want to know about relays, I'll happily update it ;)

  • @cokeforever
    @cokeforever Před rokem

    "playful" - call it lazy ;) for 75% you sit still, poke your hand into cam once in a while and mumble things... this is very low content quality!