Everything you need to know about RELAYS

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • 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

КОМЕНТАРІ • 62

  • @dmoehling
    @dmoehling 6 років тому +2

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

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

  • @jawneelogik5744
    @jawneelogik5744 6 років тому +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 2 роки тому +3

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

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

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

  • @CitizensCommunity
    @CitizensCommunity 11 місяців тому +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.

  • @user-ix3ny2lf1n
    @user-ix3ny2lf1n 3 роки тому +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!

  • @Crackeditnc1
    @Crackeditnc1 6 років тому +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.

  • @russellniebolt1493
    @russellniebolt1493 6 місяців тому

    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!

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

    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

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

    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.

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

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

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

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

  • @jamesh2.05
    @jamesh2.05 2 роки тому

    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.

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

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

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

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

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

    This is such a great explainer video! Thanks

  • @StuartGrimshaw-px1wz
    @StuartGrimshaw-px1wz 10 місяців тому

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

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

    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.

  • @erik.landen
    @erik.landen 3 роки тому

    Great explanation, thanks!

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

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

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

    Super Video, thank you so much!

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

    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

  • @jinberry133
    @jinberry133 3 місяці тому

    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)

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

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

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

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

  • @Fanny10000
    @Fanny10000 6 місяців тому

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

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

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

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

    veri nice, thanks!

  • @anshulsharma4500
    @anshulsharma4500 Місяць тому

    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  29 днів тому

      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.

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

    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?

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

    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?

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

    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

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

    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 ?

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

    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.

  • @user-qz8et1xe5s
    @user-qz8et1xe5s Рік тому

    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?

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

    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?

  • @SHADOW-bg4mm
    @SHADOW-bg4mm 3 роки тому

    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?

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

    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 !

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

    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.

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

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

  • @remconet
    @remconet 6 років тому +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?

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

      remconet Yes, exactly!

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

      Wow, I AM starting to get it! Thanks so much.

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

    can i use transistor instead?

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

    can you help make to 3v relay?

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

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

      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!

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

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

  • @g.m4z956
    @g.m4z956 2 роки тому

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

      @@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 ua-cam.com/video/SPa9SMyPU58/v-deo.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 2 роки тому

    Is possible to use this relay for 42dcv?

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

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

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

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

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

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

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

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

      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.

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

    "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!