Тёмный

Connecting a Relay Module to a Microcontroller 

Brad Henson
Подписаться 2,9 тыс.
Просмотров 238 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@markharrisllb
@markharrisllb 2 года назад
I don’t care what your subject is all the best teachers have passion for their subject. We saw that in spades here along with very clear explanations.
@UselessDuckCompany
@UselessDuckCompany 2 месяца назад
I have been looking for exactly this! Thanks for making this.
@ocdtechtalk
@ocdtechtalk 3 года назад
Excellent video. Rare to see an explanation of the circuit with cause and effect.
@wonderwang1585
@wonderwang1585 Год назад
After I destroy 2 esp32 boards, luckily I found this to let me not third boards. It may draw to much current by coil to wreck them before I test any project.
@sennabullet
@sennabullet 2 года назад
Very nice explanation. Thank you for sharing your knowledge !
@arya8431
@arya8431 6 месяцев назад
thank you, great explanation of various module type and it circuit schematic
@johnathanelkins4285
@johnathanelkins4285 Год назад
Thank you for this video! Every other video I've found has only explained how to plug in a couple wires. You actually explained how things work and why they're set up in a certain way, which is exactly what I needed. Thank you!
@kitkirkyen2002
@kitkirkyen2002 10 месяцев назад
This is the best explanation of relays that I have ever encountered for so long. Thank you so much sir for this.
@odiliomartinez6811
@odiliomartinez6811 2 месяца назад
This is a great video...question...is there another way to set the relay from input low to input high?, the option you mentioned would only work with a single relay board, i'm using a dual relay board. already try to set the output GIO pin to high but it did not work... thank you
@santiagocorrea783
@santiagocorrea783 Год назад
Great video, I definitely subscribed to watch more like this. It was a really good explanation.
@hensonbl
@hensonbl Год назад
Thanks for the sub!
@SkydivingKiwi
@SkydivingKiwi 2 года назад
Top quality. Clear and concise. Thanks for the video!
@XepRuduk
@XepRuduk 2 года назад
At 7:29 it seems like the microcontroller is seperated from the relay? Can't you just have an external power supply going to the DC+ and DC- on high level trigger?
@OnosTech
@OnosTech 2 года назад
Very explanatory. Many thanks.
@saleemkhan-mx9jw
@saleemkhan-mx9jw Год назад
Thanks for knowgable video sharing.
@shigarfmashaam
@shigarfmashaam 2 года назад
Brad, I really want to see more videos like this. If it is luck or what, I was trying to figure out a way to operate my relay with active high signal and I found this video right here. You have been a huge help. Subscribed.
@praveenraj387
@praveenraj387 3 года назад
Awesome explanation 😍😍😍👌👍
@ramgo0
@ramgo0 2 года назад
Finally, the mystery between the relay modules are resolved for me, Thanks!!!!
@hensonbl
@hensonbl 2 года назад
Awesome, thank you.
@veda6165
@veda6165 2 года назад
Is it possible to use a relay module to programatically switch power source of arduino from a DC power supply to an external battery without loosing power on the microcontroller, thus making it uninterrupted? I hope you can help me.
@lelilimon
@lelilimon 4 месяца назад
Amazing explanation, after viewing, rushed to watch for more of the similar explanations and... daamn
@mikelunsford7462
@mikelunsford7462 2 года назад
What type of signal activates the relay? 1 vdc? A frequency? Or any detection on signal? Does anyone know off hand. I'm not driving mine with Arduino, I'm using BT
@joew4202
@joew4202 Год назад
You would need a 24 volt signal to activate a 24 volt relay
@AztecWarrior69_69
@AztecWarrior69_69 2 года назад
What software did you use to create the animations.?
@mowtown75
@mowtown75 Год назад
Thanks, it helped me with solving the problem of the light being on when the relay lost power. I left one wire in the centre then moved the other to the opposite side, (which made no sense based on the Com, NO, NC schematic you showed). I then had to change my code to send LOW to actuate, and the HIGH to turn off. My wires are therefore now in I_ ( whereas before they were in ( _I where ( is the centre. Hmmm what I have done works for me but makes no sense to me.
@Hollywood4Fun
@Hollywood4Fun 4 месяца назад
I have the red relay. I'm trying to figure out how to get it to replace the trigger on my plasma torch for CNC use. I have the MKS DLC 32 control board. The instructions suggest I use the spindle output as the trigger source. The debt connection is 24 volts since it outputs whatever the power supply is. I just want to use that 24 volt spindle connection to trigger the relay which will finalize the wire connection to the plasma machine. Can you tell me how to do it in terms that a caveman could understand? Thanks. There's two wires that travel from the plasma machine to the trigger on the torch handle. Squeezing the trigger simply closest the connection. That's all I'm trying to do.
@bourgeoise2350
@bourgeoise2350 7 месяцев назад
nice.. do you have circuit diagram of this?
@frankp.2831
@frankp.2831 6 месяцев назад
Thank you for the excellent and clear explanation. Regarding relay module two, would it be possible to isolate relay and signal power by discarding the jumper and applying DC+ to the DC+ terminal for the relay coil (or the LOW pin of the 3 pin jumper) and signal power to the middle pin of the three pin jumper (either DC- or DC+ depending on whether we want to trigger high or low). Edit: I tried it and it works!
@eddiemolina657
@eddiemolina657 2 года назад
Is JD-VCC is the (+) terminal for the collector of phototransitor, anode of the diode & P2 of relay? Pls reply
@Manu__R
@Manu__R Год назад
I've been trying to find a good explanation of how to wire these relays, the 3 pins on the load side confused me, but you cleared it up really nicely. Thanks!
@AshokaRajalingam
@AshokaRajalingam 3 года назад
Brad, Thanks. So helpful. You saved my board.
@TOMTOM-nh3nl
@TOMTOM-nh3nl 3 года назад
Thank You
@hensonbl
@hensonbl 3 года назад
You're welcome
@RayAteMushrooms
@RayAteMushrooms 2 года назад
Best video about relay so far, I wonder is it necessary to use opto-isolator when they share the same ground or even same source? Also it would be great if you also mention the resistor values.
@AztecWarrior69_69
@AztecWarrior69_69 2 года назад
You want him to list ALL of the resistor values for EVERY relay module out there?
@RayAteMushrooms
@RayAteMushrooms 2 года назад
@@AztecWarrior69_69 Yes, it’s necessary for a schematic. I can send you those values if you want.
@marcello4258
@marcello4258 2 года назад
really useful brad thanks for that. can you give us some tips how to find good quality relays? dealing with 230V I want to avoid bad quality components which may cause a fire in case they break.
@garrybrewster5821
@garrybrewster5821 9 месяцев назад
either NPN or PNP will work for me switching RF signal inputs and outputs
@kevinbahe7745
@kevinbahe7745 25 дней назад
This is awful technical. I just need the relay to switch from a solid state switch to fire a motor
@aatmajbarbhaiya3228
@aatmajbarbhaiya3228 Год назад
what if i have to use a 15-0-15 V at 300mA rating transformer connected to a IC L7805CV Voltage Regulator operating at 5V DC output?! i did this but it resulted in a humming sound when the relay was turned ON, and heating of the IC circuit.
@JeffMusicFL
@JeffMusicFL 11 месяцев назад
Thank you for the video Brad! I'm wondering if I can use a single power supply to power both the relay coils (JD-VCC jumper removed) but also the arduino. I guess technically the arduino wouldn't be completely isolated from the coils BUT at least the coils would be getting their power straight from the power supply instead of possibly overloading the VCC pin on the arduino right? I'd also like to know if I could possibly go a step further and use that same power supply to also provide the power on the relays themselves (only intending on turning on 5mm LED's) so basically I'm trying to use a single power supply to power the arduino, the relay coils, and the LED's connected to the relays. Starting to think maybe I could've just gone with a different module like something using mosfets? Still kind of a beginner so any suggestions are welcome! Thanks for your time!
@fishingrelaxquangtrungkien5875
@fishingrelaxquangtrungkien5875 2 года назад
good video, Can you make a new video guide " Turn on contactor by module relay and arduino", i think it is a good video because i finding it :v
@sosscs
@sosscs Год назад
at 4:22 , I don't understand why the protection diode have the small yellow animated dots going through it. Shouldn't the diode be reversed?
@rubenvaneupen7327
@rubenvaneupen7327 2 года назад
Can you explain how to connect the high voltage DC circuit? I want a 12V circuit: so - from the battery goes directly to the load -. And + from the battery goes first to com pad on the relay, then the the NC pad on the relay (if you want normally closed) connect to the + side on the load. Is that correct? My relay does not seem to have an external power supply input. Only 5V from the receiver servo wire.
@odonusa007
@odonusa007 Год назад
Dude, I was totally confused about these relay modules. I wish I had seen this before I bought some. Anyway, thank you. [Click -> Subscribed 😀]
@lastdraco1
@lastdraco1 3 года назад
Adding this to my tool box!
@RandomTorok
@RandomTorok Год назад
I've got a small digital relay that I can't get to work on 5 volts. It takes a trigger larger than 5 volts to cause it to go high. I've currently got a 12 volt battey pack triggering it. So I've got the 12 volt battery pack acting as my mains current going to an LED. 5 volts coming into the relay side. And a line from a switch to the 12 volt on the trigger. When I hit the push button 12 volts goes to the trigger and triggers the relay allowing 12 volts to go to the LED. The relay is supposed to handle mains current but I doubt that I want to use mains current to trigger it.
@pableitor
@pableitor Год назад
Great video but I think theres a bug in the relay 2 schematic at 6:22 . The optocoupler transistor output cannot be connected to Vcc, otherwise it is shorting the Vcc to GND when the opto is active , isn't it ?
@haywardhaunter2620
@haywardhaunter2620 Год назад
Nice catch. I'm guessing the board has a third resistor to limit the current through that path, but that it was inadvertently left out of the schematic. I love that someone took the time to explain the differences between the relay modules designs. I know a few people who think they're all the same, so they just recommend people always buy the cheapest.
@garymazzataz9350
@garymazzataz9350 Год назад
thanks for the video, now i know what the JD-VCC is used for i was going to use this relay for turning on a second PSU for computer as before i just use a relay and diode drive 12v dc from the main PSU and been working ok for years i just like to add a bit more protection
@mishatagavor
@mishatagavor Год назад
What are the chances of tarying a fire by connecting 110v to this full time using this as an interruptor for a power strip?
@flickmew99
@flickmew99 2 года назад
you are my lifesaver for understanding relay module, I was about to make the diagram in everycircuit and when I try to run it, the page says I gotta pay, so I was lil bit frustated, then I finally watch this video, thanks sir
@Ron-pe4bp
@Ron-pe4bp Год назад
2:00 Can you really be sure those 3mm -wide traces can carry more current that the 1-1/2 mm wide ones? Can you know the thickness of the copper somehow? Excellent video, btw.
@jam2031
@jam2031 Год назад
cant i connect an external power supply to the dc+ pin in relay module 2? or external power supply to dc- and dc+ for that matter?
@alexmcewen9594
@alexmcewen9594 2 месяца назад
Very well explained. Thank you for posting this video.
@simoncote3429
@simoncote3429 Год назад
Hi, please, can you get a 5VDC output? i want to use this as a safety relay so i want 5VDC in, 5VDC out
@starstar71981
@starstar71981 2 года назад
What is better for a 12v vehicle application say 3amp. A standard automotive spdt or a microcontroller. Been trying to find a comparison but I can’t. Just knowing that the automotive relay uses electromagnetic only. Thank you
@hamoudihamoudi-gh5xy
@hamoudihamoudi-gh5xy 2 года назад
l have quation ,you can put the GND of optocoplor with the GND of the transistor. thanks
@robinhooodrh13s23
@robinhooodrh13s23 3 года назад
You give me a great vision thanks a lot But do you have explanation for this? When I turn on the Arduino board esp8266 and at same time connected to doubled relay WiFi can't connect Only connect if I unplugged gnd and 3v pins So each time I want to turn on board must unplugged gnd and 3v pins
@sarathisankar227
@sarathisankar227 3 месяца назад
It works when I did with external supply , helps a Lot
@Supriyadi17
@Supriyadi17 3 года назад
How to implement this method in multiple relay?
@hensonbl
@hensonbl 3 года назад
You could drive multiple relays with an external power supply, and then turn them on and off with different GPIO on the micro. This would require utilizing the relay that enables you to separate VCC and JDVCC.
@cyber_john
@cyber_john Год назад
Hi Brad, what software suite did you use to create this video?
@hensonbl
@hensonbl Год назад
Adobe Premiere and After Effects
@screeningstudio3868
@screeningstudio3868 3 года назад
Hi thanks a lot. Thanks to you the relay is working on and off according to the job, its all work fine, but when i turning on my plasma cutter, the relay only work about 10% of the project then my stepper motor suddenly stop moving and on the lightburn its show busy and pause, is it because the relay is 10 Amp maximum and the plasma cutter i use is 40 Amp? Is there any way make it work?
@EnduroNerd
@EnduroNerd Год назад
This was a great tutorial. There is just one big problem with this safe option (8:20). You have THREE power sources hooked up!? I am trying to create a small project where I drive a traffic light from and arduino. I have a dual relay board. I really don't want to have 3 power cables running from the device. Ideally, I'd like to plug in my 240v mains and have it run the full system. Please could you create a demonstration to show how you would accomplish this in a safe manner (for me and the electronics).
@EnduroNerd
@EnduroNerd Год назад
Please bare in mind that I have no formal electrical training. I have bought a few ardiuno starter kits and have bought what I think the necessary components are to get this all to work.
@badisbouchama1801
@badisbouchama1801 3 месяца назад
I hate active low modules 😂
@wackojacko1997
@wackojacko1997 10 месяцев назад
This was a really clear video, well-explained. In particular, I was interested in understanding what JD-Vcc was doing and why the jumper is there/not there. Thank you.
@anatoliytrifonov9812
@anatoliytrifonov9812 3 года назад
Will be good to have the calculation on the resistor, diode, transistor.
@merseytrainz
@merseytrainz 3 года назад
Thank you for your video. Its very informative and interesting.
@hensonbl
@hensonbl 3 года назад
Thank you.
@anandjoshi8554
@anandjoshi8554 2 года назад
@@hensonbl so if i am not using jumper to avoid any feedback> can i use same 12 v dc power supply source to give 12 v to jd vcc and same 12 v to vcc pin ...in DC plc output side ?
@gabrielsiciliano6730
@gabrielsiciliano6730 Год назад
All my comments based on Relay Module One. Tks.
@sahilbhambure5821
@sahilbhambure5821 3 года назад
If I don't use an OptoCoupler in the circuit, would there be any problems? I simply want to use the relay as an active high device
@hensonbl
@hensonbl 3 года назад
It wouldn't be a problem. The version of the relay module that includes the optocoupler is good for protecting your control circuit (micro), but it isn't required.
@sahilbhambure5821
@sahilbhambure5821 3 года назад
@@hensonbl Thank you👍
@lcd3
@lcd3 Год назад
good
@k4qdex
@k4qdex 3 года назад
quality tutorial, nice.
@hensonbl
@hensonbl 3 года назад
Thanks!
@enthusiasts7278
@enthusiasts7278 2 года назад
so incase i want to use 9v battery, i need to use the fist relay module
@omehoque
@omehoque 4 месяца назад
This is a high-quality educational video. It is unique in the sense that it describes the physics inside the relays. In addition, it shows three different ways of connecting the relay module at 3:31, 5:10 and 5:52. Thank you very much for the video.
@muhammadazamazam2931
@muhammadazamazam2931 2 года назад
Bundle oF Thank,s For your supper good Explane every point from A to z Thanks Alot.
@Aaron-dn4hn
@Aaron-dn4hn 2 года назад
Bad explained, your talking to fast
@raymondtang539
@raymondtang539 8 месяцев назад
Thanks for your video. Excellent explanation.
@phuonganh6445
@phuonganh6445 8 месяцев назад
Cách ly mà dùng chung mass ?
@lookoutnew
@lookoutnew Год назад
hello brad, are you still ? i have a question... is there a relay module to a microcontroller 10 - 30 amp dual pole?
@hensonbl
@hensonbl Год назад
Sorry, I'm not familiar with any that I could recommend. If you find something, please let me know.
@halfaperson-co8jh
@halfaperson-co8jh 4 месяца назад
helped a lot with my project thanks
@Cablamgaming2
@Cablamgaming2 Год назад
How much voltage is required to power the first relay module when using an external power supply ?
@hensonbl
@hensonbl Год назад
You would use 5 volts at around 70 milliamps to power the relay from an external power supply.
@ArchyGameDev
@ArchyGameDev 3 года назад
Awsome video. Can you do a tutorial on how to read schematic and electronic?
@hensonbl
@hensonbl 3 года назад
Thank you. I appreciate the recommendation.
@RixtronixLAB
@RixtronixLAB Год назад
Nice video, thanks :)
@rafagarcia5880
@rafagarcia5880 2 года назад
Hi Brad, From what I understand, if I'm not using an external power source, it's not possible to reverse the pins in order to activate the relay when the pin is high or is it? I'm talking about what you discuss at 5:35 of the video. Thank you for this really great video, I've understood a lot thanks to you!
@matjazpetek2511
@matjazpetek2511 10 месяцев назад
Insta Subscribed
@Dralsoft
@Dralsoft 2 года назад
Is it possible to power the arduino from the relay?
@Mrmath76
@Mrmath76 2 года назад
Nice video bro would you please explain us how the nrf433 hz relay module does work🙏
@tommytan8571
@tommytan8571 3 года назад
this this most beautiful video. thanks for your parents for making you
@Joemama-km9np
@Joemama-km9np Год назад
Refreshing to see a clear video on the subject. One thing to note and I wished more presenters did was talk to their audience like we are just home DIY's not knowing schematics and just visually seeing how to wire everything together. I've never used a breadboard so wouldn't even know where to plug something into it. We just want the pertinent info and move onto another subject.
@muhammadhaseebtahir_313
@muhammadhaseebtahir_313 2 года назад
kindly share code for this.
@arun.sekher
@arun.sekher Год назад
Thanks for the video, very informative. I would have liked to see the optocoupler based relay driver schematic with component names and values so that I could have tried making my own in a custom PCB.
@charlesbenedictt.durano1510
@charlesbenedictt.durano1510 3 года назад
Awesome! Can the relay be the cause why my arduino keeps crashing? Im using it on my lamp and ac motor
@alazyfrog5969
@alazyfrog5969 Год назад
Excellent video, and you solved my issue at 5:45, thanks a lot.
@barneycarparts
@barneycarparts 2 года назад
Great vid Thanks for sharing you said: I created all of the wiring schematics in the video using Adobe After Affects.
@BuildswithBrian
@BuildswithBrian Год назад
Thank you Brad, that was a very well explained demonstration
@zeeebrenn
@zeeebrenn 2 месяца назад
I believe your "Relay Two" schematic is wrong. The optocoupler is open-collector and the way you have drawn it you are shorting the 5V to ground when optocoupler transistor turns on.
@symontorres3952
@symontorres3952 2 года назад
Can I add a relay to 50w ac fan?
@omkarkhade4602
@omkarkhade4602 3 года назад
Great tutorial, thanks a bunch.
@nguyenvantaihust
@nguyenvantaihust 2 года назад
It's very useful. Thank for your video
@remist
@remist Год назад
i tought theres nothing to learn about driving relays .. but i was wrong so much informational video!! thanks :)
@hensonbl
@hensonbl Год назад
Glad it helped!
@saintpeter1802
@saintpeter1802 2 года назад
hello teacher What is the wire that goes into the roller? Is it phase or negative? or doesn't matter
@perokokpasif
@perokokpasif 20 дней назад
thanks bro
@Presso99
@Presso99 3 года назад
educational video... thank you
@hensonbl
@hensonbl 3 года назад
Thanks for watching!
@benjaminmelgar9327
@benjaminmelgar9327 Год назад
Great demonstration and so helpful thank the video.
@kedarpuranik750
@kedarpuranik750 2 года назад
Thank you for the video.
@contextualcoding1884
@contextualcoding1884 3 года назад
Awesome!
@repairchannel
@repairchannel Год назад
Superb. Thank you!
Далее
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,5 млн
Everything you need to know about RELAYS
22:48
Просмотров 55 тыс.
How many relays can I connect to one Arduino?
9:39
Просмотров 52 тыс.
DIY Smart Switch - Part 1 how to use a relay
8:02
Просмотров 641 тыс.
Electronic Basics #32: Relays & Optocouplers
8:21
Просмотров 516 тыс.
Solid State Relay || DIY or Buy
10:21
Просмотров 1,2 млн