Это видео недоступно.
Сожалеем об этом.

How To Add Relays to Your Projects- The BASICS

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • How to use relays with Arduino and more projects.
    See more of my Electronics and Arduino videos here: • Electronics Mailbags &...
    Where I buy relays: amzn.to/2MSJEd0
    Remember to subscribe for more videos! goo.gl/2qaJ2U
    This is a simple tutorial showing how I use relays with my Arduino and Raspberry Pi projects to control any device. A relay simply uses a low current supply (like Arduino, PIC etc) to control a high current device such as lights, fans, pumps etc.
    You can simply use the blink example sketch to get started. All you need to do is send a digital on/off to the pin controlling the relay and you are all set.
    Be very careful with mains power (110/230 Volt) as it quite simply will kill you. The end... If you don't know what you are doing, stick to low voltage DC circuits please.
    +1000 OCD points to those who notice the flaw in the Eric CAD wiring diagram :) That actually wasn't intentional but after 6 takes of the bench footage- I wasn't about to consider doing it again...
    As well the relay was ground side switched (I had to switch modules during filming arrrgh) so the state is inverted compared to the OLED. Function is the same and I didn't want to have to re-take the video. This actually illustrates quite well that some relays will indeed be ground side switched on the trigger pin. Bonus :)
    Hope you enjoy. You guys are truly amazing!
    Here is the extremely messy OLED code- I wouldn't suggest even looking at it as there is a bunch of old code I never got around to removing which you do not need. Check out my OLED video for better code :)
    mkme.org/forum/viewtopic.php?f...
    ------------------------------------------------------
    Get Social with Me!
    Google Plus ➢ goo.gl/4o2wMu
    Twitter ➢ / mkmeorg
    Instagram ➢ / mkmeorg
    SnapChat ➢mkmeorg
    Facebook ➢ / ericwilliam13
    -----------------------------------------------------
    Shop at Amazon and support my channel:
    Shop Amazon US ➢www.amazon.com/?rw_useCurrentP...
    Shop Amazon CAN ➢www.amazon.ca/?rw_useCurrentPr...
    Shop the MKme.org Store ➢store.mkme.org
    -----------------------------------------------------
    My Website and Related:
    Main Site ➢ mkme.org
    Blog ➢ blog.mkme.org
    Patreon ➢ / ericwilliam
    G+ Community ➢ goo.gl/6rMPsi
    MKme Facebook Page ➢ goo.gl/aXg29
    -----------------------------------------------------
    Thanks for Subscribing!

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

  • @dilpher
    @dilpher 7 лет назад +3

    I watched many videos on relays and you are the only one so far who explained why a diode is used in the circuit. Great video, thank you and I look forward to watching more videos from you in the future

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

      Thanks David. Lots more videos on the channel. Glad to have you. Cheers.

  • @far-red
    @far-red 7 лет назад +1

    I was trying to understand how can a raspberry pi control high voltage device. This video helps clear those doubt. Thanks

  • @Starbuck7410
    @Starbuck7410 7 лет назад +3

    This video helped me alot figuring how im supposed to control a 9V 5A Peltier module for my mini fridge with a microcontroller like Arduino

  • @mariehuynh
    @mariehuynh 7 лет назад +2

    Perfect. This video contains exactly the info I was looking for to build an automated irrigation system.

  • @ChristopherGaul
    @ChristopherGaul 7 лет назад +1

    This is a great video that I'll refer all of my beginning electroncis/maker/arduino/pi friends to.
    One note is that the type of relay shown in the video, designed for use with micro-controllers like the Arduino, often comes with the clamping diode built in. I would personally recommend people check for that and order that type to save the hassle of doing it manually and the worry of forgetting about it or installing it backwards.
    On another note, because this video is going to get people thinking about all the cool projects this knowledge opens up, maybe you should do a follow up video covering latching relays. What they are, how they work, using them with micro-controllers, etc.
    Thanks

  • @romanDefy2000
    @romanDefy2000 7 лет назад +1

    What a great video. Thank you so much for posting this. Really interesting to hear your comments with the relay diagram.

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

    Thank you so much for posting this video! I've watched several videos explaining relays (and their practical applications) and yours is one of the best explained out there because your simple sketch was actually compared with the actual setup a good eye opener. Thanks again! Keep up the good work!

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

      Thanks Hector.

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

    I'm extremely thankful for this video!!! Helped me a lot!!! Thank you!!!

  • @DylanMangel
    @DylanMangel 7 лет назад +1

    Great video, I was having a hard time understanding this but this video helped.

    • @MkmeOrg
      @MkmeOrg  7 лет назад +1

      Thanks for that Dylan. Sometimes it gets a bit tough hearing people complain about free videos- but when someone like yourself leaves a genuine, simple, honest feedback- it is truly appreciated. Good luck in all your projects. Eric

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

    very good explanation. thank you

  • @misperry
    @misperry 8 лет назад +1

    Hey there I am glad you mentioned the diode. The voltage spike can really destroy a micro or transistor if the relay coil is big enough. I usually use a 1n4007 or similar if I am using relays that don't have an onboard diode. Cheers

    • @MkmeOrg
      @MkmeOrg  8 лет назад +1

      +misperry Sure can. Cheers Sir

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

      Relay boards do have diodes right?

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

    Thanks for the video. The explanation is amazing.

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

      Glad you found it helpful. Good luck in your projects! Check out the other vids on the channel. Plenty here ;)

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

    I think this video was very satisfying.I LOVED it!Best video ever made by man!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Thank you so much for this Video !

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

      You are very welcome. Lots more on my channel. Eric

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

    Hello Great Video and thank you for your time in making it. I need to ask you a quick question on which relay I will need to operate 230v input and 0 volt or 5v output. Basically need a relay so when I plug it into wall socket motor turns oneway and when I unplug from wall socket it turns other way. The motor has its own power and is plugged in the socket all the time.

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

    Gud day mate. Would like to seek help from you.. Would like to build a overheat alarm on our diesel fed generator. From the signal coming from engine thermistor at 55 celsius but dunno if how to use relay for this set up. Please help.

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

    How about adding the relays as a reversing (DC) circuit ..
    My actuator needs a control box that will go fully open then close then back to open again (cycling).. I was wondering if there was a way to set up something for my hay baler ...

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

    Hi, I wonder if you could help please. I'm not much good with this sort of thing. I have a twin relay module and I can't get the relays to trigger. I'm ok with the output, but on the 12v input side I am unable to wire it. The terminals I have are CL2. CL1. DC - and DC + any help you could give will be very much appreciated. Thanks, Terry.

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

    I thank you for the good will. I am trying to set a timer circuit on an iDrive 300 motor control for shades. the iDrive has cube contactor for close shade and another for open shade. The controls have manual open and close positions as well as auto position. the cubes are wired for manual, can I lap a set of timer wires onto the existing connections for timer operation? using the same input voltage (24vac).

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

    Hello! This is a very informative video. In connection to using relays, I would like to inquire on how to use them in four way solenoid valves? Thank you so much. Keep it up!

  • @ZakkBlog
    @ZakkBlog 8 лет назад +1

    Awesome tip for beginners, Eric! Thumbs up as always :)
    P.S. hope you're enjoying the sunshine ;)

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +ZakkBlog Thanks Sir. Cheers

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

    whats a good way of testing that your diode is absorbing the back emf without an oscilloscope?

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

    even if I use the relay controlled by arduino into 240V line to neutral would it still be possible depending on the specs of the relay and the diode connected?

  • @akro286
    @akro286 7 лет назад +1

    Thanks alot for this video, now i gotta use this same concept to control my light through a bluetooth module.. I wonder how :)

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

    Thank you, it's very informative. One question for you, if we are on and off the circuit every second, does it harms the relay?

  • @mizayass489
    @mizayass489 7 лет назад +1

    i want to use relay to move the 12volt dc motor left and right.. the relay cooperate with two infrared sensor.. can u xplain further?

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

    I want to control my very small solar setup, i have ordered an orange pie one and one of the two bank relay boards. Im new at this so it should be interesting. I just want the DC current from the panels to switch from the batteries to my grid tie when the batteries are charged. Thinking this should be relatively simple any suggestions?

  • @johnedwards1968
    @johnedwards1968 7 лет назад +2

    Could I ask what specs you would recommend for the clamping diode?

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

    Hello dear friend, can you kindly answer this question? Is it possible to directly connect(without Arduino) a pir hc-sr501 which has a 3.3v output to a relay that requires a low trigger level? If so, how should the link be? Thank you very much

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

    Hello, I'm having trouble with my low level relay :
    - when I power it with 5v, the input from the arduino works (green LED turns on and off) but the switch isn't actually actuated.
    - When I power it with 9 or 12V, the switch triggers, but the input is not recognized (the green LED just stays lit)
    What do you think is causing that ?

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

    Got an 8 relay module and i'm looking forward to cut off 5 outputs on my arduino by using an 8 bit shift register 74HC595 IC chip. Boy will this be a fun project.
    Mine has optocouplers to seperate the input section from the coil and needs a seperate 5VDC supply there, and is an active low module. Problem is I'm not sure what approach should I take when dealing with latching relay states internally when using the IC. Don't want to add 1 to my byte variable every reading cycle and start glitching my relays by flicking at a crazy rate. Should I use an array of booleans or bits or anything else for shifting out (function used to write the output states in the IC)?

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

    I have a question, can we use this relay on 2 power input to 1 output light...1 power input using normal switch on off and 1 more power using sensor motion...

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

    In relay 2 module. Why must have a jumper at VCC and VCC, if I plug in at VCC and GND will happen?

  • @kelvink9999
    @kelvink9999 7 лет назад +1

    Great video, making relay and power board for school project-Underwater robot.

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

    I'm not sure how to wire the relays for my 12V system in my camper and requires 15, 20, 30, and 40 amp fuses to run my awning in and out with a switch, can these be used instead of those 5 wire relays?

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

    Good vid, thanks. I would like to setup a relay that reads battery voltage. When the battery voltage gets below a certain voltage, the relay should turn off. Example - I am running a battery with 4.2 volts. As I am using the battery , and it falls down to 3.5 volts, the relay should switch off. I am hoping I can use a relay to disconnect a power line to the battery. Thanks.

  • @elmagicocustoms
    @elmagicocustoms 7 лет назад +4

    thanks for the info! question: I want to run an air filtration system with an ir controlled relay with remote, since the unit will be hanging from the ceiling. But I'd like to have a couple options, ON, OFF, 2HR, 4HR & 8HR run times. Can I do this with relays only and some type of timer or would I need to incorporate a pi or arduino? Thanks

    • @MkmeOrg
      @MkmeOrg  7 лет назад +4

      You could do either. Easiest would probably be to use an Arduino and a real time clock to control the relay. Just use the code for my Arduino Urban Kitchen Garden project and adapt it. Easy. ruclips.net/p/PLxyM2a_cfnzgLjCoJ04S2Z812JrdFKbFX

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

      @@MkmeOrg hi dude read your comment and watched urban kitchen, nice nice. Ive got some GM5 far red 12v led pucks that i wish to power from 12v CC led driver triggered by a 12v signal from chilled drive controller. Im a new twat at diy electronics but i love it! Ive had to learn a lot building a new indoor garden as eco as possible. 2KW of led still!! Any help much appreciated

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

    Thanks for the video and love the way you explain with simple languages:" The funny part coming....... wacking the Arduino" which help me learn faster. lol.
    I'm trying to learn how to make stair light.

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

    hi sir. by the way thanks for the video. its very helpful. but Im asking about if posible that im using heater 220v in relay module v3.1 in arduino. what diode can i use? and can you help me in connection?

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

    hey thanks for the vid. what sort of gloves did you have on? are they rubber? wondering if I could use my rubber dishwashing gloves

  • @RD-ni7qe
    @RD-ni7qe 4 года назад

    Can I switch using either the hot or ground side of the relay coil? Does it matter, or is there a convention?

  • @karamchris
    @karamchris 7 лет назад +1

    You may have answered this, but I'm having trouble creating code on my arduino to control dwell times in .5ms increments.
    I need to then add the code to a GUI for a touchscreen that I can manipulate for a sprayer. The relay will power a solenoid valve for a simple on/off operation to apply product to our samples at work.
    Any help would be greatly appreciated.

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

    ..can the arduino be powered from the main too via the relay instead...stepdown bridged

  • @TheMichaelGrace
    @TheMichaelGrace 8 лет назад

    Awesome! Thanks.

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +Michael Grace Welcome!

  • @TheWreckingYard
    @TheWreckingYard 8 лет назад

    Good stuff Eric, I realize that the relay schematic you drew was deliberately simplified for illustration, but it's very much worth mentioning that the arduino can't source enough current to drive anything bigger than the smallest relays, minimally a transistor should be used to switch them. The boards with an integrated driver (likely an opto-isolator) like your boards are a big help and not particularly expensive.

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +TheWreckingYard Indeed. In hindsight I wish I did the video a bit different but for the audience that will actually be searching/viewing the video I figured this would do. Hard to draw the line and not make 20 minute videos that no one will sit through :)

    • @MontclairsLair
      @MontclairsLair 8 лет назад

      This, so much. Arduino resets will plague you if powering relays from the Arduino. Remove that jumper and power the relays separately.

  • @crappysammy
    @crappysammy 8 лет назад

    is there a special diode to be used or a specific name or are they just all the same? im new to this and a few tips with these would be nice!

  • @jham4333
    @jham4333 5 лет назад +4

    You should have shown a close up view of how the relay was wired.

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

    I want to use a relay to turn on/off a common household 20" box fan (with arduino on a schedule)? I'm going to do some googling to see if there are perhaps charts with relays and typical applications vs loads.

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

      Relays are rated for load. Easy math ;)

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

    Thanks!

  • @souncivilized
    @souncivilized 8 лет назад

    Hi - thanks for the direct and informative video. Do you have the link to to the relay you're using?

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      Just search Arduino Relay :) Sorry I dont have links anymore.

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

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

    Hi Mkme Lab, Hope you can help. im confused about which type of relay to get. The relays in your video say "SRD-05VDC" does that mean you need 5v to get the relay to work? Iv saw other relays that say "SRD-12VDC" so would that one need 12v?
    I need to get a relay which can be switched on by 5v and which will be switching on a 12v line.
    Thanks

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

      codoyen
      You can operate a switch that doesn't actually draw from the 12V supply.

  • @KokoMbella
    @KokoMbella 8 лет назад

    Hi Eric, i would like to run a freezer and a water pump with PV energy ( without electrical storage ). To switch the pump and the freezer on and off i am planing to use relays. To make best use of the PV energy i am thinking of using uv LED light strips to sterilize the pumped water. So my question to you is, how would you control the uv LED light strips, with MOSFETs or relays? Thanks in advance

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +Coco Mbella If there isnt need for dimming etc- Good old relays work great and the current consumption for the coil activation is quite low.

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

    I have a pool pump 220V motor (L1(110v) and L2(110v) connections). The motor has a max load of 15.0/7.5 amps. I have a 2 relay board 10 amps a piece that I was hoping to connect one relay to L1 and the other relay to L2. My program would turn on both relays on the board at the same time. What are your thoughts on doing this?

    • @MkmeOrg
      @MkmeOrg  4 года назад +2

      You need to get an electrician (or their help). You cant split phases across separate relays. You need to use a contactor.

  • @RichardT2112
    @RichardT2112 8 лет назад +1

    Good explanation, an even easier one : remote switch.

    • @SamoSamo7s7
      @SamoSamo7s7 7 лет назад +1

      Richard T Indeed it is, nothing more than a remote switch. The 'basic' people certainly don't need to know more than that.

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

    Can I use this for 48v DC?

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

    hey can i control it for my dc battery charger??

  • @2112user
    @2112user 7 лет назад +1

    Planning on making a fish tank heater here, with the arduino, relay and thermistor. (store bought ones fail in the on position, and I believe this can be made to protect against/replace the built in thermostat in those heaters. I was wondering what the "extra" components on the prebuilt boards were.... I didn't know I needed a diode in-line with the coil pins, never needed one for auto's applications. Now, just have to learn to set up the programming side.

    • @MkmeOrg
      @MkmeOrg  7 лет назад +1

      I have 2 reef tanks and if I didn't already have a Reef Keeper on each of them I would definitely build the circuit you are building. Stuck heaters have killed many tanks. Super easy to add a tonne of functions like temp display/alarms. ph alarms/display, water level switch etc etc.

    • @2112user
      @2112user 7 лет назад

      I've noticed that, been shopping around for a new one and on every product theres warnings for one or more person about how theirs broke in a closed loop and killed everything. It was at that point I looked over at the printer and wondered..... it's basically the same... kinda. I'm just starting to learn (or trying to learn) the programming side. I would love to add a small display to show temp or set temp and actual temp. I think that would be a really cool feature to have. And advice on display to use and where to best learn how to program it? So far the extent of my arduino knowledge is simple tweaking an arduino/ramps for 3D and making a custom thermistor table.

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

    What can we use if we want a output voltage between minimum and maximum voltage (not as on and off switch but as a fan regulator)?

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

    If we look at the diagram on the left and name the points around the square from the top left as A, B, C, and D wouldn't it make more sense to put the diode between points A and B (between pin 13 and the coil)?

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

      Actually, never mind. I just solved my own question. The collapsing field generates power and continues to flow around the new circuit feeding the current controlled current source over the coil. Makes sense. If anybody wants to see a visualisation of this I put one up on imgur: imgur.com/EZKTr0G

  • @berniken6511
    @berniken6511 8 лет назад

    Hi Eric, in the video you stated that for those who wanted the more elaborate code you would put the link below but I can't find it. I am particularly interested in the oled code. Thanks Eric good video as usual................................. Berni UK

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +berni ken Hey Berni. Added it to the description but it is really messy and needs the junk from the pulse sensor code removed. You will get the idea though but if you need just the OLED go check out my OLED example video and grab that code- much cleaner :)

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

    The relay board he is using is active low. If you notice, whenever the lcd read "Relay On", the relay led went off, and when it said "Relay Off", it would come on. That because it is active low, which is the opposite of what the blink sketch logic is doing. In other words, if you want to activate the relay, you must write "LOW" to it, and to turn it off you must write "HIGH"...Just a heads up, although I'm sure most of you would figure this out when testing your relay boards.

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

    lol just checked the merchandise page. awesome

  • @akhilyalagonda6644
    @akhilyalagonda6644 8 лет назад

    Hello Sir, can i connect a 450 VAC with less than 1 amp to these ice-cube relays?. Though the rating shows 240VAC - 7A.

  • @mustafayousif2696
    @mustafayousif2696 7 лет назад +1

    thank you so much

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

      You are very welcome

  • @berniken6511
    @berniken6511 8 лет назад

    Thanks Eric.

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      +berni ken Welcome :)

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

    great video! and hey, how do i know if my relay board has a diode or not?

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

      It will almost always be marked on the relay case with a diode symbol across the coils connections.

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

    hi, i gone thru some video that they recommend to supply separate power supply for the relay, but some don't, i not sure is it really necessary to have a separate 5v supply to the relay?

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

      Yan Mong Chan , thanks for your reply. if my relay has lesser ohm, should i add a resistant in series with the relay? will it works?

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

      At 3:03 he basically explains why you shouldn't connect a relay directly to the arduino or any other microcontroller. For that you have control circuits like Yan Mong Chan explained which basically work like this: Output of an arduino or microcontroler triggers a transistor (who in this case operates as a switch) which then triggers the relay, so if anything goes wrong with the relay, the control circuit will get damaged while arduino will be safe.
      If you want to control more relays or other components like motors the easiest way would be to use a Darlington Transistor Array for example ULN2803 (www.ti.com/lit/ds/symlink/uln2803a.pdf) as they require minimum components. All you need for this is the ULN IC and power supply which has to be the same as the power requirements of the device you are controling (12V if using 12V relays, 24V if using 24V relays,...).

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

    Hi there, thanks for this awesome tutorial dude. Anyway, I want to know how to connect bluetooth module to relay. Thanks dude.

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

      Bluetooth to Arduino. Arduino to relay

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

    I'm working on making a timer to turn a motor on and off on my pellet stove.

  • @honeyhoney2182
    @honeyhoney2182 8 лет назад

    Sir i don't know how to give power to the relay?Can i give it from the arduino mega board which i am having or externally?
    If i give it from the board will it damage it or if externally then how should i do it?

    • @MontclairsLair
      @MontclairsLair 8 лет назад

      Do it externally. Remove the jumper on the relay and remove the ground wire coming from the Arduino. Connect your 5v power supply to the relay GND pin and the JD-VCC pin (or whatever it's called on your relay board, where you removed the jumper). Otherwise, you may encounter Arduino resets when the relays are under load.

  • @SamoSamo7s7
    @SamoSamo7s7 7 лет назад +3

    To not complicate stuff: Relays are automatic switches that are typically positioned where the use of regular/manual switches is impractical. Thank me later.

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

    Does this kind of relay only switches AC current output, or would I be able to control a DC current with it?

  • @knut5328
    @knut5328 8 лет назад

    im new to electronics so i dont know how to use a transister yet :/ so do anyone know if i can use a relay instead for my LED Cube and will the timing be right?

    • @MkmeOrg
      @MkmeOrg  8 лет назад

      If you are doing any high speed switching/dimming- no a relay wont work. Cheers

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

    Hello MKme Lab, Great channel. Can ask what type of gloves you are using in your video. Thanks in advance.

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

      Just standard 1000V gloves

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

    I've just bough a Dushbutton from amazon (5$) ...is possible to use an arduino micro with a wifi module and a relay to turn on a light? :)

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

      Sure you could.

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

    What kind of power supply do I need to purchase to power an 8 channel version of the relay?

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

      You need to figure out what your control circuit is drawing and add the relay coil draws. Depending on brand they are usually 50-100 mA each in my experience.

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

      MKme Lab I’m just going to be using it to turn a heater on and off. Leaving the plug intact and just snipping the positive wire and wiring that into the relay. So really I only need the 5V supply to be able to activate the relay. Correct?

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

    Just Awesome!
    Thank you so much. You are the man.
    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 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:
    -> 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

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

      Get a 10 to 15 amp 240V relay and you will be good. Could use a very small relay (aka interface relay) to run a contactor as well if you really wanted to get overkill.

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

      Thank you so much.
      Just if I may clarify please:
      1) Are interface relays generally expensive?
      2) How do I connect the pump wiring to the relay?
      Warm Regards,
      Philip

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

    I am sick of my 91 corolla, leaving the light on, it does not have any beep or warning to let me know that I did left the light on, so I am going to connect two relays horizontally to have two positive voltage from the door switch(fuse) and the head light switch(fuse), so with the two on, I will power on a beep device that I will connect the circuit, like this I will save my battery :), what do you think? sounds like a project? :)

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

    Can someone tell me if a ssr can be used for 5v direct current? would be to control an injector in a fuel injection project managed by arduino

  • @rockb922
    @rockb922 5 лет назад +2

    Why didn't you give a close up shot of how it's actually wired? I'm having a hard time finding a vid showing how they have it wired.

  • @LetTheWritersWrite
    @LetTheWritersWrite 7 лет назад +1

    Does that relay board also require a diode on the arduino? I didn't quite get the diode part.

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

      LetTheWritersWrite I think the collapsing magnetic field from the relay can back feed and cause damage

    • @MkmeOrg
      @MkmeOrg  7 лет назад +1

      Yep- As the collapsing magnetic field cuts through the coils it induces a voltage opposite the normal polarity and very large in magnitude. This needs to be conducted back to the source (the coil) to protect any micro controller.

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

      MKme Lab how do you run a relay from an arduino? even relay current is big

    • @pabsime
      @pabsime 7 лет назад +1

      The relay board he was using already has a flyback diode built into it, so you can just plug and go with the arduino. It is important, however, to use a flyback diode if using a relay by itself. Make sure you also check out the relay specs to make sure the arduino can handle the the coil current. Max I/O pin current for the uno and mega are ~20mA and ~40mA, respectively.

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

    hi I'm using a relay and Arduino to switch on and off a solenoid door lock
    my problem is on power up of the Arduino the relay activates unlocking the door
    I set the Arduino pin low but dos't help.
    Again my problem is when the Arduino power is restarted the door opens as the relay gets
    a pin high from the Arduino
    any help please

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

      Try setting your pin HIGH initially. Make sure you do this in the setup() phase.

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

      MrBildo thanks for your help I made the change setting the pin HIGH and made the changes in the loop from high to low etc
      and it works great
      so thanks again

  • @acorgiwithacrown467
    @acorgiwithacrown467 7 лет назад +1

    :D I always wondered how people use ardunios to control their lights

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

      Glad it helped. Cheers!

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

    I hooked up an 8 channel relay module board one of those typical ones you buy from amazon. I wrote a simple sketch to check it out as I want to use it to power some linear actuators. On power up all relays go high and turn on power to all linear actuators and everything that could be connected to them... this is not good. Once the program rolls through the loop the first time it functions as programmed where I'm cycling through the 8 relays turning one on at a time with a 1 second delay and then back off. So how do I get around this problem on power up where everything turns on?

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

      Tom Collins - I’m having the same issue - how did you manage to resolve this? Thanks

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

    I'm hoping to use this technique to create a quick-shifter system for my motorcycle. Quick summary: Instead of cutting throttle, disengaging the clutch and shifting gear, which can take hundreds of milliseconds at least, one can simply cut ignition to the engine momentarily and shift gear. Without ignition, the transmission momentarily "floats" without torque on the system and allows the gears to engage without stress (normally wears or even breaks gear teeth). I started with the idea for simple electromechanical system; A spring loaded piston in-line with the gear shift linkage allows you to push on the gear shifter until it encounters resistance. Subsequently your spring compresses, which closes a circuit that grounds the engine's ignition coils, which cuts spark to the engine. With the transmission now unloaded, your gear shifter would have no resistance as it pushes the transmission into a higher gear. As you finish actuating the shift lever, the spring loaded piston returns to open the grounding circuit and your engine continues its ignition sequence. Notice this still limits shift times to hundreds of milliseconds that your foot is pressing on the gear shift lever, grounding out the engine ignition system. I know there must be a similar analog method to hold a grounding circuit closed for a set time interval from some kind of input from the spring piston system, but I do not know how to do it. I'm thinking it will be easier and allow more refinement to use a simple Arduino microcontroller to receive that signal from the spring piston and then open a relayed grounding circuit for a set interval, in the 10-100ms range. There are several quick-shift systems available on the market, I'd rather build my own as proof of concept. What are your thoughts?

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

      The motorcycle can supply constant 12~14VDC from a DC battery and regulator/rectifier.

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

      My 2 cents- The times you are looking to get are beyond what a relay can do and you should look at using MOSFETs. Another issue you need to handle is the fuel- unless you stop the supply you will run into a large backfire out the exhaust when ignition is re-engaged. On fuel injected systems this should be easy for you- if carbureted, this is much harder. Good luck with your project.

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

    Hi guys,
    I'm building a custom portable laptop-like-UPS, in order to feed my NUC (the Intel Skull Canyon) when not plugged in the wall-socket.
    I've determined more of less the rest of the components I need, but I have difficulty of finding a proper relay for the purpose of switching from the main-power to the battery when main-power is off.
    I'll need a relay with 2-inputs (one for the main-power, and one for the battery) and 1 output (to the NUC). The closest type of relay I've found is a DPDT type /looking at its basic diagram it actually has 2 outputs, but I can always link them into one/.
    The NUC needs up to 120W (19V @6.32A) which is why good old laptop scavenging is not likely to work (most laptops have lower consumption than the NUC, which is also the reason to consider building my own UPS. Also I think the switching relay circuit is actually in the laptop body rather than in the battery, and I don't have many dead laptops laying around).
    Anyway, most applications of relays on the net I've found (like this one too) depend on outside control of the control-coil, and are often of different type /than 2INs-1Out auto-switching/.
    My case I believe should be simpler, because both the inputs will be DC (the battery obviously without inverter will give me about 22VDC, and since its charger also requires DC, I plan on using common AC/DC adapter which will output 20ish V DC).
    So I was thinking that if I link the main-power not only to one of the relay's INs (lets call it A) but also to the control coil terminals, which under current should keep the relay in A-input closed position, and will feed the NUC.
    Then when the main power is lost, it would also lose the current in the control coil, so it should automatically switch to it's normal position closing the B-input circuit.
    Would that work? And could you recommend such relay capable of say up to 27V and 7A (or up to 120~150W) /could be stronger of course/
    disclaimer: I'm complete newbie regarding electrical stuff, so please correct me if I'm wrong /or missing/ something! For my own safety! :)

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

    You saved my 10 dollars

  • @roidroid
    @roidroid 8 лет назад

    i see u Atmel, practicing your photobombing :P

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

    nice

  • @HatlessChimp1
    @HatlessChimp1 5 лет назад +3

    This is the 2nd Relay Video I have watched, the 1st Relay video was an Indian man using just bare hands and twisted wire joints with live voltage. I then went to the comments section expecting some funny comments about his technique only to find more Indians praising him for such a good video. 😂🤣😂🤣😂FML

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

    HOW ABOUT USING MORE THAN 1 LIGHT BULB, HOW WOULD YOU DO IT ?

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

      Wire the bulbs in parallel. Make sure you use a relay that can handle the load of all the bulbs combined.

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

    Great Video.. Is the diode embedded into the relay?

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

      Yepper

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

      So I need an additional power source to run a servo as my arduino cannot provide enough current to it. Would the relay also work to control a DC circuit or should I use a transistor instead.

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

      So I need an alternative power supply to my 5V arduino as driving a servo from my microcontroller is not enough. Would the relay also work to manipulate a DC circuit? Should I be using a transistor to to this or could I also use a relay?

    • @MkmeOrg
      @MkmeOrg  7 лет назад +2

      You can use either. An analogy would be that using a transistor in that case would be akin to using a flyswatter to kill a fly. The relay would be akin to a Howitzer cannon to kill the same fly. Both would get the job done.

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

      lol, wut

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

    Can I make a sketch that gradually fades the light bulb in and out?

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

      For that you would need a solid state driver like a transistor- Relays are a bit too slow for dimming and would cause massive back EMF issues as the relay coil becomes similar to an ignition coil :)

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

      Ok, I've found out I can, but it's too hard for my electrical skills. I'll probably buy my way out of it

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

    Thair is evin solid state relay

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

    Still have no idea what I’m supposed to do with the “in” pin :[

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

      you are supposed to write code for the GPIO pin to turn on that relay part

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

    My relay will turn on but not off I have to restart my pi every time to turn it off please help me!

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

      prokiller grape what you can do to trick the pi to think it is at g or 0v is to set it as an input. Be sure to add the diode as he mentioned in the video so the excessive voltage don't go into the pi when you turn it off (switching to input).
      This all has to do with that the pi and the relay don't have the same specifications on what is classified as HIGH and LOW.
      Hope it helps!

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

      Christer Garpenlund thanks that was the problem.

  • @pauljohnson-yk5dq
    @pauljohnson-yk5dq 7 лет назад

    be useful if you showed which ones are the NC and NO connectors on that blue-colored relay.

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

      They are labelled on every relay and differ by brand.

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

    I dont understand. I just want to add a relay to a trolling motor so I can switch it on and off safely if it's even needed. This video called kayak go go cart had one and in trying to learn what a relays for.

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

      relay allows you to control power from a different source to a load, its acting like a switch that you can control with very small power, like that coming out of an arduino GPIO pins

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

      @@joshuavincent7884 cool

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

      @@joshuavincent7884 😎