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

Ғылым және технология

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
    @DrOlutoyin6 жыл бұрын

    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
    @murtazahussain63015 жыл бұрын

    best video found so far

  • @robojax

    @robojax

    5 жыл бұрын

    Thank you.

  • @matbeedotcom
    @matbeedotcom3 жыл бұрын

    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
    @ukhtiramadhani7474 жыл бұрын

    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
    @Watchout10103 жыл бұрын

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

  • @robojax

    @robojax

    3 жыл бұрын

    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
    @luketembanimunyandu33267 ай бұрын

    Great video on 2 relay module, thanks!

  • @marconardo1961
    @marconardo19614 жыл бұрын

    Good Man! Thank you for your help!

  • @robojax

    @robojax

    4 жыл бұрын

    You are welcome.

  • @walidal-hinai4342
    @walidal-hinai43425 жыл бұрын

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

  • @robojax

    @robojax

    5 жыл бұрын

    you are welcome.

  • @gyaanmastieverytime
    @gyaanmastieverytime4 жыл бұрын

    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.

  • @erlendm
    @erlendm4 жыл бұрын

    Very good and informative video! Great work!

  • @robojax

    @robojax

    4 жыл бұрын

    Thank you. Good to know that.

  • @saifylanewala865
    @saifylanewala8653 жыл бұрын

    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
    @sparkymarkm3223 жыл бұрын

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

  • @robojax

    @robojax

    3 жыл бұрын

    Glad it was helpful!

  • @spacex5179

    @spacex5179

    3 жыл бұрын

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

  • @fernandomitzio
    @fernandomitzio Жыл бұрын

    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?

  • @teslapark3406
    @teslapark34062 жыл бұрын

    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

  • @872940
    @8729406 жыл бұрын

    Thanks a lot very useful. Please continue .

  • @robojax

    @robojax

    6 жыл бұрын

    You are welcome. Will do in shaa Allah.

  • @valentinkrajzelman4649
    @valentinkrajzelman4649 Жыл бұрын

    Thanks very helpful!!

  • @mandelbro777
    @mandelbro7774 жыл бұрын

    great vid. Cheers bro

  • @robojax

    @robojax

    4 жыл бұрын

    Thank you. Cheers.

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

  • @daemon3spade
    @daemon3spadeАй бұрын

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

  • @adibchowdhury5077
    @adibchowdhury50776 жыл бұрын

    Thnx.Its very helpful...

  • @robojax

    @robojax

    6 жыл бұрын

    you are welcome.

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

  • @jibinjosemathewjibinjosema7617
    @jibinjosemathewjibinjosema76176 жыл бұрын

    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 жыл бұрын

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

  • @phantominception2881

    @phantominception2881

    2 жыл бұрын

    @@robojax can you help me?

  • @aimalkhan7347
    @aimalkhan73474 жыл бұрын

    THANK YOU SO MUCH SIR.

  • @robojax

    @robojax

    4 жыл бұрын

    You are welcome.

  • @SerendipitySue
    @SerendipitySue3 жыл бұрын

    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 жыл бұрын

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

  • @muzguz7276
    @muzguz7276 Жыл бұрын

    Great video..

  • @HadehhFryOWLOL
    @HadehhFryOWLOL Жыл бұрын

    thanks man

  • @mandeepmails
    @mandeepmails5 жыл бұрын

    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 kzread.info/dash/bejne/gp6astqxcre_mag.html 2-for up to 15A use this kzread.info/dash/bejne/pnd-lLNmc7ecgZs.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

  • @MrIonutz2008
    @MrIonutz20084 жыл бұрын

    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.

  • @vladimirpotapov7050
    @vladimirpotapov70502 жыл бұрын

    Thank you a lot!

  • @robojax

    @robojax

    2 жыл бұрын

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

  • @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 kzread.info/dash/bejne/gGGaqM1uYajIaNY.html

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

    Жыл бұрын

    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.

  • @tmmyhmmie7761
    @tmmyhmmie77615 жыл бұрын

    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 kzread.info/dash/bejne/gGGaqM1uYajIaNY.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.

  • @xXxno6xXx
    @xXxno6xXx4 жыл бұрын

    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.

  • @josephds6071
    @josephds60715 жыл бұрын

    Good presentation.

  • @robojax

    @robojax

    5 жыл бұрын

    Thank you.

  • @pictoescultura
    @pictoescultura3 жыл бұрын

    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 жыл бұрын

    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.

  • @chakrirebel4445
    @chakrirebel44456 жыл бұрын

    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 kzread.info/dash/bejne/haBmz9yRlrfdc9Y.html

  • @Khalid-uq5pu
    @Khalid-uq5pu4 жыл бұрын

    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.

  • @sumertheory
    @sumertheory5 жыл бұрын

    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 жыл бұрын

    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
    @markowens99505 жыл бұрын

    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 kzread.info/dash/bejne/Z2yMubh9nqWdg9Y.html

  • @theUsesOFnot
    @theUsesOFnot4 жыл бұрын

    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 kzread.infosearch?query=relay

  • @AitoLaikoSamoMoaCawfy
    @AitoLaikoSamoMoaCawfy Жыл бұрын

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

  • @johnclyde4609
    @johnclyde46095 жыл бұрын

    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 жыл бұрын

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

  • @rajvishah9016
    @rajvishah90163 жыл бұрын

    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 жыл бұрын

    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?

  • @denstrods3570
    @denstrods35706 жыл бұрын

    Very helpfull

  • @robojax

    @robojax

    6 жыл бұрын

    Thank you.

  • @Enoch_The_Gent
    @Enoch_The_Gent Жыл бұрын

    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 kzread.info/dash/bejne/qXyYlKWQnKiyYag.html

  • @Joshgiddens
    @Joshgiddens2 ай бұрын

    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

    2 ай бұрын

    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.

  • @madhujetty1955
    @madhujetty19554 жыл бұрын

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

  • @robojax

    @robojax

    4 жыл бұрын

    yes.

  • @oleksanderdmytriiev4605
    @oleksanderdmytriiev46055 жыл бұрын

    Good video, with lot of important details. Nice!

  • @robojax

    @robojax

    5 жыл бұрын

    thank you.

  • @tnamen1307

    @tnamen1307

    5 жыл бұрын

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

  • @jovertcubangbang1542
    @jovertcubangbang15422 жыл бұрын

    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.

  • @norviniinasol7993
    @norviniinasol79934 жыл бұрын

    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 жыл бұрын

    if you are can.

  • @hannes4069
    @hannes40692 жыл бұрын

    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.

  • @ahmedfayez4596
    @ahmedfayez45965 жыл бұрын

    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 жыл бұрын

    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?

  • @chriss5515
    @chriss55153 жыл бұрын

    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 .

  • @navyaadari8391
    @navyaadari83913 жыл бұрын

    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.

  • @nidhinpjoy7243
    @nidhinpjoy72434 жыл бұрын

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

  • @shahrozKhan4u
    @shahrozKhan4u4 жыл бұрын

    Grt work

  • @robojax

    @robojax

    4 жыл бұрын

    Thanks.

  • @jajajahjjskkkwkkkw
    @jajajahjjskkkwkkkw4 жыл бұрын

    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 kzread.info/dash/bejne/eJWjrdyiZ9fNfag.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

  • @tnamen1307
    @tnamen13075 жыл бұрын

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

  • @robojax

    @robojax

    5 жыл бұрын

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

  • @rickyancey3095
    @rickyancey30955 жыл бұрын

    Brilliant.

  • @robojax

    @robojax

    5 жыл бұрын

    Thank you.

  • @harshalpatil883
    @harshalpatil8834 жыл бұрын

    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.

  • @dangacoscosim
    @dangacoscosim4 ай бұрын

    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=

  • @aniketsawant8498
    @aniketsawant84983 жыл бұрын

    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 жыл бұрын

    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.

  • @abhibiswas9781
    @abhibiswas97813 жыл бұрын

    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.

  • @skipydie
    @skipydie3 жыл бұрын

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

  • @robojax

    @robojax

    3 жыл бұрын

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

  • @tumimbanghymarvannd.8603
    @tumimbanghymarvannd.86035 жыл бұрын

    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.

  • @jamest.5001
    @jamest.50014 жыл бұрын

    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.

  • @maruchan368
    @maruchan3688 ай бұрын

    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 kzread.info/dash/bejne/gGGsxNqtd6rVeNo.html

  • @dangarcia6940
    @dangarcia69404 жыл бұрын

    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.

  • @pauldecastro1523
    @pauldecastro15234 жыл бұрын

    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 жыл бұрын

    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.

  • @exoticwriting8648
    @exoticwriting86484 жыл бұрын

    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 kzread.info/dash/bejne/fIF2yamIYJq_fLA.html

  • @exoticwriting8648

    @exoticwriting8648

    4 жыл бұрын

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

  • @karaokaypinas
    @karaokaypinas4 жыл бұрын

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

  • @robojax

    @robojax

    4 жыл бұрын

    the relay.

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

  • @harshap2673
    @harshap26735 жыл бұрын

    Can the speed of the motor be controlled?

  • @robojax

    @robojax

    5 жыл бұрын

    NO. Relay can turn ON or OFF. Use this kzread.info/dash/bejne/gp6astqxcre_mag.html

  • @mikemutunga2941
    @mikemutunga29413 жыл бұрын

    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.

  • @mtrihartawan
    @mtrihartawan3 жыл бұрын

    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.

  • @desafa5420
    @desafa54203 жыл бұрын

    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.

  • @shrikantdeshpande5318
    @shrikantdeshpande53183 жыл бұрын

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

  • @robojax

    @robojax

    3 жыл бұрын

    Here forum.arduino.cc/ post your question there.

  • @shrikantdeshpande5318

    @shrikantdeshpande5318

    3 жыл бұрын

    Thank you sir

  • @shrikantdeshpande5318

    @shrikantdeshpande5318

    3 жыл бұрын

    Sir I am not getting how to post a question

  • @faizazlan30
    @faizazlan304 жыл бұрын

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

  • @robojax

    @robojax

    4 жыл бұрын

    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
    @aripnopal77624 жыл бұрын

    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 kzread.info/dash/bejne/g4Vry6aal7TUgbA.html and here is my Arduino Course on Udemy robojax.com/L/?id=67

  • @aparnaka5061
    @aparnaka50613 жыл бұрын

    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.

  • @trobert132
    @trobert1322 жыл бұрын

    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-

    6 ай бұрын

    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!

  • @veerabaguv1648
    @veerabaguv16483 жыл бұрын

    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.

  • @himanshua.b.1653
    @himanshua.b.16536 жыл бұрын

    CANT BOTH RELAYS BE OPERATED AT THE SAME TIME??

  • @robojax

    @robojax

    6 жыл бұрын

    Yes they can. They are independent.

  • @trevorbelmont4633
    @trevorbelmont4633Ай бұрын

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

  • @robojax

    @robojax

    Ай бұрын

    It is written on the relay. The blue pieces

  • @trevorbelmont4633

    @trevorbelmont4633

    Ай бұрын

    @@robojax oh i see know thanks! love u

  • @ztiger09
    @ztiger092 жыл бұрын

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

  • @robojax

    @robojax

    2 жыл бұрын

    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

    2 жыл бұрын

    This very basic and it should work.

  • @21thTek
    @21thTek Жыл бұрын

    nice video with very low volume

  • @robojax

    @robojax

    Жыл бұрын

    Yes, can't fix it now.

  • @nesscamelo
    @nesscamelo5 жыл бұрын

    Did u use a power supply?

  • @robojax

    @robojax

    5 жыл бұрын

    for motor yes. for module no. just Arduino.

  • @rinedz893
    @rinedz8932 жыл бұрын

    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 kzread.info/dash/bejne/mWqfmtWJetzPlps.html

  • @Walkingopro
    @Walkingopro4 жыл бұрын

    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
    @ramchandrapatil38485 жыл бұрын

    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
    @firstman68434 жыл бұрын

    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

  • @craigbartlett9233
    @craigbartlett92333 жыл бұрын

    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.

  • @anandyadav5646
    @anandyadav56466 жыл бұрын

    Ye program work ni kar rha ha bhai. Log

  • @robojax

    @robojax

    6 жыл бұрын

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

  • @yumnamuneer1107
    @yumnamuneer110710 ай бұрын

    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.

  • @nandhagopals5305
    @nandhagopals53055 жыл бұрын

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

  • @robojax

    @robojax

    5 жыл бұрын

    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

  • @9997999702
    @99979997023 жыл бұрын

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

  • @robojax

    @robojax

    3 жыл бұрын

    that would be too fast.

  • @RodneyDavis
    @RodneyDavis3 жыл бұрын

    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.

  • @catalin77ursu
    @catalin77ursu3 жыл бұрын

    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.

  • @c.j2527
    @c.j25275 жыл бұрын

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

  • @robojax

    @robojax

    5 жыл бұрын

    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 жыл бұрын

    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
    @bikersoncall3 жыл бұрын

    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 KZread premium and never see ads here m.kzread.info

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

Келесі