How to use 2 channel relay to control AC and DC loads in Arduino

Поділитися
Вставка
  • Опубліковано 1 сер 2024
  • This video shows you How to use 2 channel relay to control AC and DC loads in Arduino.
    The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
    *** Free Course ***
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    Download the code for this video: robojax.com/L/?id=125
    ** Purchase Arduino Start Kit **
    Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
    Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
    Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
    AliExpress: s.click.aliexpress.com/e/_9uc7Xe
    Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
    eBay: ebay.us/B1JWLi
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    All Europe Amazon: amzn.to/36YDSzn
    *** Purchase Arduino Uno Compatible
    Amazon USA: amzn.to/3aY7KOL
    Amazon Canada: amzn.to/3pYxSNN
    Amazon Europe (all Europe): amzn.to/2PgGItD
    Purchase 2 channel 5V relay from:
    eBay: ebay.us/dkldii
    Amazon USA:amzn.to/31WMCU2
    Amazon All European Countries: amzn.to/34F6qxd
    Amazon Canada: amzn.to/37UtSsm
    Banggood: www.banggood.com/custlink/vmG...
    ***Related Videos ***
    4 Channel relay with remote: • 4 channel Relay with I...
    Control direction of rotation of DC motor: • Home Automation: Chang...
    Want to turn ON and OFF relay using your mobile phone or computer over WiFi? Here are my videos / @robojax
    Chapters of this video:
    00:00 Start
    00:53 Hardware Explained
    05:55 AC wiring explained
    07:46 Code Explained
    10:20 Demonstration
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    If you want to learn Arduino from proven instructor on **Udemy**: bit.ly/rj-udemy
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    #robojax #robojaxRelay #robojaxMotor
  • Наука та технологія

КОМЕНТАРІ • 243

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

    Agreed - very helpful video. I had sent you an email twice requesting help but just figured it out myself watching the video multiple times. Thanks Robojax!

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

      You are welcome.

  • @murtazahussain6301
    @murtazahussain6301 5 років тому +10

    best video found so far

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

    Ah thank you so much. This was a great help. Just wiring up a relay to control my DC Battery charger when my solar batteries voltages drop too far.

  • @ukhtiramadhani747
    @ukhtiramadhani747 4 роки тому +6

    Thank you for the video sir. It really helps me for my final project🙌

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

      You are welcome. Good to hear that. Ahmad from Canada

  • @Watchout1010
    @Watchout1010 3 роки тому +5

    One of the few videos that explain the basic operation principals clearly!!👍

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

      Glad you think so!

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

      Pro tip: you can watch movies on flixzone. Been using them for watching a lot of movies recently.

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

      @Uriel Drake definitely, have been using flixzone} for since november myself :)

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

      @Uriel Drake Definitely, been using flixzone} for since december myself =)

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

      @Uriel Drake yea, have been using flixzone} for years myself :)

  • @luketembanimunyandu3326
    @luketembanimunyandu3326 7 місяців тому

    Great video on 2 relay module, thanks!

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

    Salute you sir. For explaining asia and European countries relay power capacity. Hats off sir.
    #From India #

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

      Assalamu alaikum. Ramadan Karim. Thank you.

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

    Thanks very helpful!!

  • @walidal-hinai4342
    @walidal-hinai4342 5 років тому +1

    Sir, thank you for your explanation. It was very useful.

    • @robojax
      @robojax  5 років тому

      you are welcome.

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

    Good Man! Thank you for your help!

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

      You are welcome.

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

    Very good and informative video! Great work!

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

      Thank you. Good to know that.

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

    Nice! I was looking for something like this but don't have electronics know-how. This calrified a lot of questions for me. Thanks!

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

      Glad I could help!

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

      @@robojax very good. How will you connect different relays in such a way that if I turn on one power the other one goes off? or vice versa. LET ME KNOW IF YOU CAN DO THAT, VERY BE VERY THANKFUL

  • @sparkymarkm322
    @sparkymarkm322 4 роки тому +1

    I’ve been looking for a good tutorial on this, thank you!

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

      Glad it was helpful!

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

      Hello guys welcome to my minecraft lesson lets mine for diamonds and hopefully some iron and ore

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

    Thanks a lot very useful. Please continue .

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

      You are welcome. Will do in shaa Allah.

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

    thanks man

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

    Very good video can you tell us how we can hook loads that exceed 30 volts DC so if I have two batteries that I want to toggle between and they're 36 volts wouldn't that 36 volts passing through there destroy the circuit how do we toggle between those two DC power loads and still get the electricity needed to run the application

  • @fernandomitzio
    @fernandomitzio Рік тому +1

    Hi, thanks for the explanation.
    Important comment: When taking out the jumper to supply power from an independent source for relays, exterior pins shold be used (GND and JD-VCC). The VCC central pin is the same as the VCC in the other input as they are wired together through the pcb.
    I'm doing a little research since my board (NODEMCU ESP8266) works with 3.3V, and I want to try feeding 5V to the relays and 3 to the signal side. Would it be possible? Has anyone tried?

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

    Great video..

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

    Thnx.Its very helpful...

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

      you are welcome.

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

    great vid. Cheers bro

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

      Thank you. Cheers.

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

    for 12v relay module you also need to power it using 12v right? for car accessories

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

    THANK YOU SO MUCH SIR.

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

      You are welcome.

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

    Thank you a lot!

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

      You are welcome. The best thank you for me is to subscribe to my channel. Thank you.

  • @jibinjosemathewjibinjosema7617
    @jibinjosemathewjibinjosema7617 6 років тому +4

    Sir, you explained very well... especially the maximum power a relay can consume in the Asia and European region.... thanks a lot

    • @robojax
      @robojax  6 років тому +1

      You are welcome. I am glad you found it useful.

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

      @@robojax can you help me?

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

    Can you tell me, if I need to connect the 230v motor with this module without a contactor, so is it possible or not?

  • @josephds6071
    @josephds6071 5 років тому +1

    Good presentation.

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

    Very helpfull

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

    What if I connect a motor driver (say drv8825) to a Raspberry pi board to control a nema17 stepper motor, and at the same time I connect a relay module to the same Pi board to control an AC bulb? Can I control both simultaneously?

  • @SerendipitySue
    @SerendipitySue 3 роки тому +2

    I think you mentioned hooking up the wrong VCC pin when using external power. When you remove the jumper, you want the external 5V to be on the LEFT VCC pin

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

      look at diagram I've shown.

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

      @@robojax look at 3:58 where you point out wrong VCC terminal. What diagram?

  • @mandeepmails
    @mandeepmails 5 років тому +1

    Awesome video, inspiring too
    For DIY project- I’m trying to build gate opener. Few questions, if you could answer please;
    1-which motor is enough for 200kg sliding gate.(any link or product specs)
    2-forward/reverse bi-direction rotation(how to achieve)
    3-anyway to have a motor speed control possible?
    I’m willing to do this for months but no guidance is stopping me.

    • @robojax
      @robojax  5 років тому

      1- if you don't need speed control, use this module ua-cam.com/video/PjfPxxBTYiE/v-deo.html
      2-for up to 15A use this ua-cam.com/video/tCJ2Q-CT6Q8/v-deo.html without direction control
      and it would be hard to find such thing all in one

    • @galuolivian585
      @galuolivian585 5 років тому

      i want to do the same project

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

    0:01 5:53 how many times do i have to watch this over and over again from your videos.🤣

  • @rickyancey3095
    @rickyancey3095 5 років тому

    Brilliant.

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

    Grt work

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

    I'm trying to to use these relays (x6) but controlled from 74HC595 chips. But i can't get it to work. The 74HC595 chip only gives out 6 mA but shouldn't the power come from the 5V? Only the led lights up.

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

      Hi, that's why we use relay driver so enough power drivers the relay. voltage is one thing, the current (ampere) id different. Power = V*I, where P is power in Watt, V is voltage and I is current in A (Ampere). So you need to use relay module. or build your own relay driver shown in this video ua-cam.com/video/N-fFk51Eb8s/v-deo.html

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

    Hi, congratulations on your professionalism. I would like to ask you how to make the 4 lelay work with an arduino
    radio frequency remote control. Thank you, subscribed and like !!

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

      thank you. there so many protocols of RF remote controlling. modules sold for Arduino and people also use RC car/plane can also be used. it needs full detailed video.

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

    Hi, i would like to know if the 24v rated relay modules could be triggered by 24v as signal or the 5v is a must as signal. Thank you.

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

      it would be very simple to use 2 resistors to make voltage divider. See this diagram. snipboard.io/gJXm0c.jpg this converts 5V for 3.3V and can be used for 24V just change the 1.8k resistor to 22k.

  • @oleksanderdmytriiev4605
    @oleksanderdmytriiev4605 5 років тому +2

    Good video, with lot of important details. Nice!

    • @robojax
      @robojax  5 років тому +1

      thank you.

    • @tnamen1307
      @tnamen1307 5 років тому

      @@robojax Can I control load of max 15 amps under 12 volt DC??

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

    i wonder an want to learn, why do we use l298n motor driver instead of using relays to run DC motors?

    • @robojax
      @robojax  Рік тому +1

      relay can just turn ON/OFf a motor and con't control something in between which we want to control the speed. L298N allows speed control and relay can't.

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

    My Relais looks the same but without the DC load description printed on top of the Relais.
    Still safe to use for DC?

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

      I am not sure. You would have to find out.

  • @tmmyhmmie7761
    @tmmyhmmie7761 5 років тому

    hi robojax, why do some people use diode, transistor and resistor in similar circuits? is it related to reverse current? and if so, does separating the power supply for arduino and relay help (so only data connection between arduino and relay)?

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

      sorry I missed your comment. The transistor and diode etc are to drive the relay. this module has all those components for you. I have separate video on how to drive a relay See it here ua-cam.com/video/N-fFk51Eb8s/v-deo.html . To keep the power of Arduino and the board separate, it is a good practice to keep the microcontroller and the power section separate. This increases safety.

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

    Cant we use stepper motor(bidirectional) in place of dc motor...?

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

      Yes can but it depends in the type application. here is my video winch you can control the diction of stepper motor ua-cam.com/video/Sl2mzXfTwCs/v-deo.html

  • @Khalid-uq5pu
    @Khalid-uq5pu 4 роки тому

    Can I use a 12 VDC for a load connected to the relay or I am limited to 28 or 30VDC? Will the current be 10 Amp too ?

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

      Your load can by anything from 1V to 220V either AC or DC as long as you follow the power/current rating of the relay and safely proceed.

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

    Great video! This helped a lot. Can you please explain what kind of dc power supply you connected to the motor? Is it okay to use Li-ion batteries for that purpose?

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

      The power supply voltage depends on your motor. doe snot matter. if your motor is 50V use 50V or it is 12V use 12V. You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you

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

      @@robojax thanks a lot! Will subscribe

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

      @@robojax Good circuit but is it possible to do this without the ardino?

  • @sumertheory
    @sumertheory 5 років тому

    Is the JD-VCC pin strictly for powering the switches? Can it also be used to connect a single DC power source to 8 devices, e.g. 24V peristaltic pumps?

    • @robojax
      @robojax  5 років тому +1

      Yes it is. the connector is to power relay ONLY. it has tiny pins. have I understood your question?

    • @sumertheory
      @sumertheory 5 років тому

      @@robojax Yes. Thank you!

  • @markowens9950
    @markowens9950 5 років тому

    I don't have a lot of experience with relays, but I found out that my relay looks the same but works in reverse. When there is power from digitalWrite(7,HIGH) it actually turns it off and the "LOW" command turns it on. I don't know if this is normal, but I would appreciate any input.

    • @robojax
      @robojax  5 років тому

      yes. because your relay is "low trigger". Watch the video again. or see this video ua-cam.com/video/58XWVDnB7Ss/v-deo.html

  • @johnclyde4609
    @johnclyde4609 5 років тому +1

    can you supply that relay switch with 24v 12AH supply? since the supply exceeds the 10Ah required current, will my supply burn the relay switch?

    • @robojax
      @robojax  5 років тому +1

      I have explained it in the video, but have a look at this: snag.gy/UDJMCg.jpg

    • @tnamen1307
      @tnamen1307 5 років тому

      @@robojax Can I control load of max 15 amps under 12 volt DC??

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

    Sir, you explained very well... My question is about the bulb.... Is the bulb connected to external power supply even after connecting to arduino??

  • @Enoch_The_Gent
    @Enoch_The_Gent Рік тому +1

    At 4:09 can I attach a power source that's higher than 5v to the external Power source if I don't want to use the power from Arduino?

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

      You need to watch this lesson on Arduino board ua-cam.com/video/wHd2CWlEL1E/v-deo.html

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

    How do I use 1 button to turn
    off ch1 & ch2 on like 0:30 with dc both sides?
    Or can I use 1ch relay?

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

      I have so many videos and push buttons switch please search them. For one relay, it can turn on/off only and you can’t change what direction of rotation. It seems you haven’t watched the video. Please watch fully yo learn.

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

    What relay can I use? I have 12V DC power source and I want 5V going to power an Arduino and 9V to power a device like a servo or actuator.

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

      any relay either 5V or 12V. But you need relay module to connect it in simple way. Search my channel ua-cam.com/users/robojaxTVsearch?query=relay

  • @jamest.5001
    @jamest.5001 4 роки тому

    It would be somewhat safer to connect the ac neutral to the relay, being it is connected to ground, and can not make a circuit with ground, you would have to rember the line or hot wire is still live, when the circuit is shut off, so light sockets would still have a live contact, it would make the board safer to touch!

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

      Hi, always put switch on LIVE or HOT line. the relay is switch and connect LIVE. But remember it is NOT safe to touch even if the relay is OFF.

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

    is there anything out there that can, using a 120ac input, relay a 5v circuit?

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

      your question is not clear. if you meant to power the 5V relay with AC, then yes. AC120V to 5V dC adapter.

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

      @@robojax Is normal to control a 120ac relay with a 5v board. My question is how can I do the reverse. I want to have a normal house pole switch that in some way control/send a 5v circuit (a 5v relay maybe if exists?)

  • @ahmedfayez4596
    @ahmedfayez4596 5 років тому

    Sir please can you help, when should i connect the jumper and when should i remove it and use an external adapter?

    • @robojax
      @robojax  5 років тому +1

      I watched the video making sure I have I have explained it in the video. Watch the video twice or three time until you get it.

    • @ahmedfayez4596
      @ahmedfayez4596 5 років тому

      @@robojax
      Sorry for bothering you, if i want to control my room lights, should i connect external adapter?

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

    Both relays can be operated with same time with same input?

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

      Yes they can. You haven't subscribed. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

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

    Hi sir, if my relay is 12V and I'm going to use an Arduino to send signal. Is it possible to trigger the relay? But using an 12V external power to JD-VCC. Thanks.

    • @robojax
      @robojax  4 роки тому +1

      if you are can.

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

    can u do the same using msp430g2553(lunch box) instead of arduino?

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

      never heard of it. if you can connect and program it using Arduino Program (IDE) then yes.

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

    So can a two channel relay also power two outputs at the same? (Motor and Light both on)

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

      if you mean to share the power to power up Arduino and relay and power up your load. yes you can if your load is needs the same level of voltage.

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

    i have a question, i am using same relay as yours but i get a reverse result, when my arduino isnt sending high signal to the in1 or in2 relay gets active, when i send signal to in1 or in2 relay turn off. pls help

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

      Hello, your relay must be different. Regardless I have explained it fully so you should understand it if you watched that you can change anywhere inside loop you see HIGH and LOW, switch them. meaning change HIGH to LOW and LOW to HIGH.

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

    Where can i find a device like this that can handle 20amps? Great video!

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

      You can't. You can make your own powerfully relay module. I will make video on that.

  • @dangacoscosim
    @dangacoscosim 4 місяці тому

    Can you give me an schematic diagram sir for a time delay on using spdt realay, ne555ic, capacitor, and a digital clock display please

    • @robojax
      @robojax  4 місяці тому

      www.bing.com/search?q=Can+you+give+me+an+schematic+diagram+sir+for+a+time+delay+on+using+spdt+realay%2C+ne555ic%2C+capacitor%2C+and+a+digital+clock+display+please&form=QBLH&sp=-1&lq=1&pq=can+you+give+me+an+schematic+diagram+sir+for+a+time+delay+on+using+spdt+realay%2C+ne555ic%2C+capacitor%2C+and+a+digital+clock+display+please&sc=0-134&qs=n&sk=&cvid=E86E23CC813D46FB8B7A8EE6AA1009A4&ghsh=0&ghacc=0&ghpl=

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

    Hi! I’m having trouble when hooking the wires to Normally Open. It doesn’t work. If I hook the wires to Normally Closed it works just fine. Any help would be much appreciated. Thanks!

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

      If you connect it to normalcy open then you have define ON and OF the opposite, I have fully explained it how it works. Watch it tow or three times until you get it .

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

    Can I use to control solar panel and dynamo motor depending on whose voltage is high

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

      Yes you can, use the code in this video to ready voltage ua-cam.com/video/FaoKzi7tgME/v-deo.html I have mentioned how to measure any voltage. Then decide what to do when the voltage reaches to certain value.

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

      @@robojax Thank you

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

      @@robojax I am making solar , wind hybrid power system . It measures voltages generated by solar panel and motor and compares them . It has 2 LEDs . If the voltage generated by solar panel is greater than motor then LED1 glows by power produced by solar panel and if voltage generated by motor is high LED2 glows by power produced by motor . Please guide me about the connections of solar panel , motor and LEDs with 2 channel relay module

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

    Hi Ahmad,
    Educational movie, clearly explained, liked and subscribed. Regarding rating of the relay: I never understood why the rating is AC 250V/10A and for AC 125V is also 10A? If this can switch a power of 2.5 KW at 250 V why cannot switch 20 A at 125 VAC, because that would be same power? Thanks.

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

      Hi, the piece of metal the current passing through the relay can handle 10A. At lower voltage works fine but higher voltage is prone to causing spark and for that reason you can't say at 250V it can handle 10A=2500W, we should then go back to 125V and use it for 2500W. 10A is the limit. Usually at lower voltages it works fine but can't increase it.

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

    Sir can you tell me that how to detect fault ac bulb which comnected with the relay??

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

      Connect the bulb at home to something else making sure it works.

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

    Is the arduino and relay safe from back emf from dc motor? What if we connect 12v dc solenoid instead of dc motor? How to control it's back emf when it switches off?

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

      relay is just mechanical switch. to if you know what happens when you turn ON and OFF a switch to motor or solenoid, the same is true here.

  • @trobert132
    @trobert132 2 роки тому +9

    Caution: Please do not solder the ends of wires as it can melt over time and cause shorts and fire. Instead, crimp the ends down with a proper tool.

    • @-Primer-
      @-Primer- 7 місяців тому

      Been soldering wire for 40 years now and have never seen a solder joint fail due to heat. Poor adhesion maybe, but never heat. 60/40 solder melts at 365F and if your circuit is getting to that temperature, you have done something wrong. Stop spreading that BS lie.

    • @matejcapak1571
      @matejcapak1571 5 місяців тому

      No. Components are soldered and there is no danger. Soldering of wire end is reliable and proper!

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

    Can we turn on both the ac load and dc load at the same time using the two channel relay? or is that not safe and thus being the reason why you showed them being on in an alternating manner in the video?

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

      Yes. This just relay. a switch.

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

      @@robojax Thank you for replying and clarifying that we can turn on both the ac load and dc load at the same time using the two channel relay.

  • @tumimbanghymarvannd.8603
    @tumimbanghymarvannd.8603 5 років тому

    Bro can you help me make an app and code for switching on and off 2 AC connections using arduino nano and Wifi module? I was making a Wifi Enabled Smart Plug for my Science Investigatory Project. Tnx

    • @oleksanderdmytriiev4605
      @oleksanderdmytriiev4605 5 років тому

      Better use Wemos/NodeMCU board. ESP8286/32 boards have nice examples in Arduino IDE.

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

    Hi Sir Robojax! Greetings from Philippines! i like how you tutor me using your videos! do you use the own 5v supply of arduino UNO? hows that possible when you have huge 2 loads(1 motor and 1 LBulb) i think 500mA is the max current draw on arduino Uno 5v pin?

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

      Oh my bad i was overthinking the relays mA current draw is different from the rating of the relays contacts. but why use a external power source or separate the supply of the relays? from arduino 5v? in your video you use arduino UNO 5v whats the difference between supplying externally and via arduino UNO own 5v?

    • @robojax
      @robojax  4 роки тому +1

      I just explained the option because you may keep Arduino separate from relay power for safety reason because it is possible for relay to draw more current, arduino can't supply that much and keep is safe.

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

      Thanks sir robojax! i love you man i owe you a lot! when i finish my project i want you to see it firts!

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

      You are welcome. I ❤️ you too. Let's be good and help each other.

  • @21thTek
    @21thTek Рік тому

    nice video with very low volume

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

      Yes, can't fix it now.

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

    just a question... which device makes that clicking sound?

  • @tnamen1307
    @tnamen1307 5 років тому

    Can I control load of max 15 amps under 12 volt DC??

    • @robojax
      @robojax  5 років тому +1

      Yes you can. I have explained it in the video.

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

    Sir I need a program combination of temprature , falme and 2 module relay for aurdino please help me sir

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

    how can i control two ac loads and have start and stop. also i need so if one relay is on the other can't turn on. im tryng to control a ac motor that can spin both way and the relay will turn on the contactor that controls the ac motor

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

      Hello, here is how to control the direction of rotation of DC motor using two relay ua-cam.com/video/JMBgGO07YLM/v-deo.html

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

      Robojax do you know how to add a start and a stop to this code?

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

    Nice video sir, but how to connect Relay 5V 2 channel to a Arduino + Ir module. To connect a bulb that will light up if the ir sensor detects an object. Please sir help me

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

      please search my channel . I have so many videos on that.

  • @harshap2673
    @harshap2673 5 років тому

    Can the speed of the motor be controlled?

    • @robojax
      @robojax  5 років тому

      NO. Relay can turn ON or OFF. Use this ua-cam.com/video/PjfPxxBTYiE/v-deo.html

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

    Hello, I'm switching a motor ON and OFF once the counts reach the preset value.. but upon switching ON/OFF my arduino resets randomly but not always . Advice plaease. Thankyou in advance.

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

      3 phase motor via a contactor. (DOL) stater..

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

      if it rests arduino, it means something is wrong and it creates short circuit and turning the Arduino. check wiring. I assume you have not changed the code.

  • @maruchan368
    @maruchan368 8 місяців тому

    Can it be converted to high trigger?

    • @robojax
      @robojax  8 місяців тому

      I don't undestand what. you can reacieve any signal LOW or HIGH and do something with Arduino. So Arduino can send LOW or HIGH to the relay. But if you want to do it without Arduino, you can do it with a PNP transistor and 1k ohm reisistor. But here is the relay with LOW level trigger ua-cam.com/video/N-xbxtGGoHw/v-deo.html

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

    Are the pins active low?

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

      oh. people don't watch and ask. I just watched the video. I wish you've asked a question that was not addressed in the video. I've clearly explained it in the code section.

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

    sir , i have a question , if the lamp is replaced with a single phase 220VAC 1400watt electric motor , can it be done??
    please answare sir, that is my Homework from My school

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

      You have not watched the video fully. I made the video so you get all answers.

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

    What is maximun delay value? I want make motor run 2 hour earlier than light

    • @robojax
      @robojax  4 роки тому +1

      There is no limit. You can delay it as long as you want.

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

      @@robojax thanks for fast reply.. U r the best

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

    Hi. I'm newbie in arduino. Can you help me? Now i'm into project that one arduino can ran 2 relay with 2 ultrasonic sensor and 2 DC motor. And i'm stuck with coding. I only got one code that can ran 1 relay with 1 sensor. Can you help me with the coding? Thanks

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

      your project has 3 items, relay, ultrasonic, motor. Here is the video which you will learn from ua-cam.com/video/QQ7iDagQnQM/v-deo.html and here is my Arduino Course on Udemy robojax.com/L/?id=67

  • @himanshua.b.1653
    @himanshua.b.1653 6 років тому +1

    CANT BOTH RELAYS BE OPERATED AT THE SAME TIME??

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

      Yes they can. They are independent.

  • @nesscamelo
    @nesscamelo 5 років тому

    Did u use a power supply?

    • @robojax
      @robojax  5 років тому

      for motor yes. for module no. just Arduino.

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

    this is active low relay or not

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

      I don't remember what is it. when i explained the code where it say
      digitalWrite(8, LOW);
      if this line which has LOW turns the relay ON, then the relay is Low level trigger if we have
      digitalWrite(8, HIGH) and it turns the relay ON, then it is HIGH level trigger. Just watch and pay attention. Good luck.

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

    How can I check if my module is for 12v or 5v?

    • @robojax
      @robojax  Місяць тому +1

      It is written on the relay. The blue pieces

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

      @@robojax oh i see know thanks! love u

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

    Ive tried doing that only for the 12v Dc motor but it failed for some reason

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

      this is just simple switch ON/OFF it should not fail. first try it without motor and see if relays respond. at one time both relay should not be ON. One is ON the other is OFF to make the motor run. else you have done incorrect wiring.

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

      This very basic and it should work.

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

    Sir can we give 5v dc without arduino

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

      Yes I believe I have explained in it in video. You can't always connect to USB.

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

      Thank you for ur valualble reply. I am using this for automatic changeover switch 12v solar inverter.

  • @ramchandrapatil3848
    @ramchandrapatil3848 5 років тому

    Cant we do it without aurdino
    Please reply fast

    • @robojax
      @robojax  5 років тому

      Yes you can do it with two push buttons. Instead of input from Arduino to the relay module, you connect push button to the input. Sorry there is time difference between Canada and your location. I was in bed when you replied. Also I read comments ONEC a day. so it will take usually 12 to 24 hours.

    • @ramchandrapatil3848
      @ramchandrapatil3848 5 років тому

      @@robojax sir can u post a video on it very fast before tommarow and waterpumping motar should be there i.e automatic tap pls sir urgently nedded

    • @robojax
      @robojax  5 років тому

      I have a lot of videos on relay and push button. Just search my channel.

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

    thank you but the link provided to download the code is not working does not even directly link to the files to download can i make a request to ask for the fresh link so i can download it again

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

      Thank you for letting me know. The link was incorrect and to other contents. I just fixed it. You can try it gain.

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

      @@robojax can i make a request for a project... code and setup of charging station with 2 relay channel , charging module and coin acceptor ...the rate of hrs per coin ?

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

      that is very hard. Detecting coin and values is very tough topic. it needs very complex mechanism and processing power. I won't be able to do it alone.

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

      @@robojax there is a tutorial about coin acceptor my problem i dont have background with any source code in adruino so it is difficult to me to start this project i have the diagram for coinacceptor and your tutorial for controlling relays but my problem is i dont know how to start to combine those two the clue is on my hand but i dont have an idea to sketch the code

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

    what? this relay is active low,,, why on the code are "HIGH ,RELAY TURN ON" ?

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

      in this video actual circuit of relay has been explained ua-cam.com/video/g6k8sPJyif8/v-deo.html

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

    your link to the code goes to code to control the direction of a dc motor

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

      is this statement or question? it seems you have not watched the first minuet of the video.

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

      @@robojax so i have watched the video. Three times.
      Have you clicked on the link to see where it re-directs you to? The code in your video, doesnt seem to match the code that the link goes to.
      Thats a statement.

  • @yumnamuneer1107
    @yumnamuneer1107 10 місяців тому

    I am unable to understand the DC motor connection at least you should have shared the circuit diagram

    • @robojax
      @robojax  10 місяців тому

      it is all about the code in Arduino. learn that and you will understand why I shown how to connect. I have shown all wiring. I just watched myself the video.

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

    Watch at 1.5 Speed and thank me later :) Good Info Though..

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

      that would be too fast.

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

    There is TWO HUGE mistakes in this video!!! FIRST MISTAKE: The 5V provided by Arduino is not enough to switch the relay because the optocuplor and the relay is rated at 12 Volts ! SECOND MISTAKE: The 12V for the optocuplor and relay must be provided on the pin named JD Vcc, not on the Vcc because the Vcc from left is connected with Vcc from right and you will put 12V on Arduino 5V and Arduino board will blow. I saw this video and I distroy one Arduino nano board. PLEASE PAY ATTENTION TO THE RELAY BOARD!

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

      5V of Arduino can supply minimum 1A which is coming from laptop or desktop. Each relay will use maximum of 100mA so in total this will consume 0.2A so no worries.

  • @nandhagopals5305
    @nandhagopals5305 5 років тому

    Can you please circuit send me plz.....

    • @robojax
      @robojax  5 років тому +1

      I have explained the wiring. this is very simple and doesn't need schematic. But you can draw it from the wiring I explained.

    • @nandhagopals5305
      @nandhagopals5305 5 років тому

      OK which ardiuno using this project I was confused..

    • @nandhagopals5305
      @nandhagopals5305 5 років тому

      Thank you sir output came

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

    Ye program work ni kar rha ha bhai. Log

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

      English please . कृपया हिंदी लिखें। (मैंने अनुवाद करने के लिए Google का उपयोग किया)

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

    I've looked all over the internet and this is the closest I've found to a solution to my problem. My project has a 12V power supply using three 18650 Li-ion batteries on a charger board ( www.parts-express.com/dayton-audio-lbb-3-3-x-18650-lithium-battery-charger-board---module-12v-with-charge-protect--325-200 ). I need to upgrade this to 24V with another identical board using a 2-channel optocoupler relay I have from HiLetgo. I have all the components but have no idea how to wire them together safely. Can you help?

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

      Hello, I can answer your question if I understand it and it is related to this video. I did not understand what you are trying to do.

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

      @@robojax Thanks for replying. It's a bluetooth speaker kit with an amp that can handle 24V. But the kit only comes with the 12V board even though they do recommend upgrading o 24V. So I have to connect the two boards in series, with an optocoupler relay similar to the one in this video, in between controlling them somehow.

  • @c.j2527
    @c.j2527 5 років тому +5

    NO not normally CONNECTED? that doesn't make sense. its normally closed and normally opened.

    • @robojax
      @robojax  5 років тому +4

      You are right too. It is just matter of perspective. In contacts and wires, "closed" or "connected" results the same thing: flow of current.

    • @c.j2527
      @c.j2527 5 років тому +1

      Robojax No not working with high voltage. the wrong words used is not your perspective. the wrong words can be result in people getting hurt or worse when working with high voltage. there is no liability in the wrong words you use just ignorance.

    • @tnamen1307
      @tnamen1307 5 років тому

      @@robojax Can I control load of max 15 amps under 12 volt DC??

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

    Midroll adds = Dislike Video
    You don't have to run midrolls, that is a fact,
    I let all adds run but will never let a midroll run
    if I can catch it, they are usually twice
    as loud , can run for an hour or more, literally.
    Not all of us are able to sit in front of our laptops,
    to catch disruptive midroll adds.
    Midroll adds encourage viewers to turn to
    add free subscriptions, which drives revenue
    away from content providers.

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

      What is midroll ? The ads?
      I worked over 8 hours to make this video by wiring code and making video and you can’t even wait 10 seconds? The pay for UA-cam premium and never see ads here m.ua-cam.com/users/premium

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

      @@robojax Read the op again.

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

      paid service is the best option. either pay and watch using premium or hire someone. you can't expect to get it absolutely for free. you give up something and get something. unless you are unjust person who wants something without paying for it.

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

      @@robojax Read the op again.