Home Automation: Change direction of rotation of DC motor using 2 relays and Arduino - Robojax

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    Learn how to control motor using 2 relay and Arduino in a very simple way without motor driver module.
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
    Download Arduino code for this video: bit.ly/2relay-motor
    ** Purchase 2 channel relay from **
    Amazon USA: amzn.to/2QhmuAO
    Amazon Canada: amzn.to/3x3iAvQ
    Amazon Europe (all Europe): amzn.to/3dwp7aA
    ** 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
    Jump to different section of video by clicking on the time:
    00:00 Start
    00:51 Introduction
    02:04 Relay Module explained
    04:29 How it works
    08:03 Wiring Explained (2 single relay)
    10:16 Wiring Explained (dual relay module)
    11:48 Basic code explained
    15:25 Advanced code explained
    18:41 Demonstration
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 150 lectures) Starts here • Lesson 00 What is Ardu...
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    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
    *** AFFILIATE PROGRAM ***
    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
  • НаукаНаука

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

  • @aco319sig3
    @aco319sig3 4 года назад +6

    Finally, a clear explanation without assumptions make about the viewer’s knowledge!!! Thank you!

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

    Fantastic! Thank you. Absolute beginner with Arduino. Subscribed. Managed to combine it with some rfid code to operate a car door Solenoid Lock for garden shed security.

  • @wr1450
    @wr1450 3 месяца назад +2

    You just cleared my final year project bro❤

    • @robojax
      @robojax  3 месяца назад

      Glad to hear that

  • @3phasetinkerer
    @3phasetinkerer 9 месяцев назад

    Such a beautiful explanation Ahmed! Thank you very much for the video. I’ve never uses a relay module in my life and this video shows everything I need in detail.

  • @rodolphougolini
    @rodolphougolini 2 года назад +1

    Thanks. It worked perfectly. I'm using 2 way smart relay.

  • @BeeKneeSeaGhoul
    @BeeKneeSeaGhoul 10 месяцев назад

    Excellent video. You earned yourself my humble sub. Tnx.

  • @danjunk-DIY
    @danjunk-DIY 3 года назад +2

    Very informative and helped me ! Thank You !!

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

      You're welcome!

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

    Thank you!

  • @kevinchang7497
    @kevinchang7497 3 года назад +1

    Thank you soooo much l. Was very helpful

  • @joesisco8145
    @joesisco8145 Год назад

    Thank you very much 👍

  • @directorstu
    @directorstu 8 месяцев назад

    Very clear. Thanks 👍

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

    Woha...3:30 am here...and I was thinking and solved it and verifying on RUclips...and it's already here..lol..Thank you 😀 Robojax 👍🔥

  • @ChristianGrau92
    @ChristianGrau92 9 месяцев назад

    Very good thank you

  • @alphaeaglesoft
    @alphaeaglesoft 3 года назад +1

    Thanks a lot, your video reali helped me out big deal!!!!

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

      You're very welcome!

  • @user-to3mb5dt3b
    @user-to3mb5dt3b 7 месяцев назад +1

    Thank you so much for the video. your code helps me a lot with similar projects.

    • @robojax
      @robojax  7 месяцев назад

      Glad I could help!

  • @jascfdrac
    @jascfdrac 8 месяцев назад

    Excelent!❤

  • @tomasmargelis8083
    @tomasmargelis8083 7 месяцев назад

    Thanks:)

  • @galaxcartz9429
    @galaxcartz9429 3 года назад +1

    Thanks a lot. Before I find this, I wired it very close. Only thing was I forgot to check which side that relay pins are placed on the relay module.

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

      You're welcome

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

    Awesome instructor and instructions......

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

      Thank you. 😄

  • @a.a.b3834
    @a.a.b3834 3 года назад

    Thank you so much finally i got it

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

      you are welcome. please subscribe. I appreciate it.

  • @2007xoxox
    @2007xoxox 4 года назад

    You are incredible. Thank you

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

      You are welcome. 😃

  • @suhassubbanna
    @suhassubbanna 2 года назад +2

    Very nice explanation m8. Even though the video is long, there is a lot crisp information included. Perfect for a beginner to control the motor without a motor driver.
    If you're okay with working in a constant speed I advice using a relay with the optocoupler since the relays usually handle very large currents without any problem.
    I did 6 wheel drive toy car to tow around my nephew's cycle using Johnson motors, the motor driving modules prices were so high I just ended up using the relays. Works perfectly fine.
    In the next video provide instructions on using an isolated voltage for relays as using the same 5 volts from the Arduino won't work all the time and will give lot of interference.

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

      Thank you for the suggestions specially the interference issue. I have it in mind it.

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

      @@robojax yeah. You need any help with that let me know m8. I do that for living with big tractors and trucks.

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

      Ok

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

    Great as usual

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

      Thank you. 😄

  • @gabrielaguilar8108
    @gabrielaguilar8108 7 месяцев назад

    great video and explination!!!!
    am i able to control bigger motors with the arduino and relays such as a 2hp motor 115 /230 Volts 1800 rpm

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

    Gracias me sirvió.
    Aún que el idioma no entendí nada 🤣.
    Pero gracias a las conexiones entendí.
    Gracias

  • @atulkhatavkar6986
    @atulkhatavkar6986 24 дня назад

    Hi Sir how to change the direction of synchronous AC motor with Limit switch and Arduino. Plz make the video and we will be a delighted subscriber as usual 😂

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    still because old video didnt know if still active. hi great video so clear. i found the relays 12v 2 channel relay. please advise what else i need besides motor. i need arduino board and breadboard but dont know where to begin which model and style

    • @robojax
      @robojax  Год назад

      I have already send you the link to introduction to relay if you didn’t understand it from this video. Everything you need is shown in video.

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

    awesome Robojax thanks so much for this. Please can you explain how i can add to this a Limit swith to change polarity and a motor control (for speed)? thanks so much

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

      You are welcome. Once we talk about the speed, then we need to use Speed Controller and there won't be any relay. I just added it to my "to do list" and if time permits, I will make video. Thank you for not skipping the ads and keep watching them. This will help me a lot.

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

      @@robojax thanks again.. you are dope

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    your lessons are fantastic. cant wait to create motor auto reverse for crane. can i use arduino to control speed?

    • @robojax
      @robojax  Год назад

      search my channel. learn how to Search for a Particular video here ruclips.net/video/OhkUceBWcHs/видео.html

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

    Great video, thank you so much! I just have one question. Is the current supplied to the motor from the battery, the relays or a combination of both?

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

      Hi, the motor is a load. So the power supply for the motor and relays can be the same. That is only possible if your motor is 5V and relay is 5V. if relay is 5V and motor is 12V or something else, then use separate power supply.

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

    Good evening from Greece! i am using this code to control a chicken coop door to open and close in 12 hour intervals. The problem i am facing is that if i operate using the arduino delay (because i tried with Ds3231 RTC and failed countless times) because of friction in the door, is never fully open or closed and if i increase the motor rotation for more seconds i am afraid it will crush the shell (using a 12v windshield motor). My question is is there any chance i could add 2 limit switches so that it stops at spesific height, delays for 12hours, reverses polarity and then continues operating the other way and if so, how? ( i am a complete noob in programming and it is time consuming and frustrating to fail every time) Thank you so much in advance!!

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    hi great video so clear. i found the relays 12v 2 channel relay. please advise what else i need besides motor. i need arduino board and breadboard but dont know where to begin

    • @robojax
      @robojax  Год назад

      Hi, if you are totally new to Arduino then this is 30 minutes course ruclips.net/video/Mbb2xa1WcRM/видео.html but I have $200 Arduino course now offering it on RUclips for free and here is a section of the course on relay ruclips.net/p/PLHvJ4bw0xno4GS6Y3yxm1kEoKIkSWRXPs

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

    Excellent guidance !!! Program for CW and ACW direction is fine.What changes in the program to be made to start the motor rotation in clockwise and anticlockwise for 3 cycles and stop until the module is powered on again with a trigger from a switch or sensor ? Sir can you help me please.

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

      that needs separate video. Can't be explained here and because it very custom for specific feature, few people would want that so I can't make video for that.

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

    Thanks Ahmad, great video, i intend to use the 2 channel relay and a wiper motor in my project but wish to incorporate limit switches to stop the motor at a set position, basicly motor start, run to limit switch and stop, then when activated reverse position to second limit and stop...do you have a tutorial/code for this at all?
    Thanks

  • @hannoseegers651
    @hannoseegers651 3 года назад +2

    Thank you for the informative video!
    I have one question.
    Wont it be easier to connect the VCC to the NO(Normally Open) ports and GND to NC(Bormally Closed) ports?
    Therefore the connection will always be open and you dont have to turn both relays on for the connections to be open?
    Therefore you only have to turn on relay one for relay one to become positive

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

      Also, im currently using a raspberry pi, using node etc. But i doubt it'll make a difference in my question

    • @robojax
      @robojax  3 года назад +1

      Hello and you are welcome. It won't work. in the introduction I explained with diagram how it works. we need to separate SPDT switch's. I've spend hours making diagram and recoding this video so you won't have any question. When I make video, I put myself in the position of a viewer and I can see all question that a viewer might have and answer them in the video. so please watch without skipping. I have not wasted time in this video. Good luck and your subscription with active 🔔 is appreciated.

    • @hannoseegers651
      @hannoseegers651 3 года назад +1

      @@robojax no problem! Your video really helped me and was exactly what i wanted so i didnt skip the video. I was simply curious about the question.
      Once again. I really liked your video.

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

      Thanks. Stay safe.

  • @MrBobWareham
    @MrBobWareham 3 года назад +1

    Thank you for the explanation you made it easy to understand

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

    Nice

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

    First of all thank you for this video, Sir. I have 12v Dc motor, I want it rotate cw and ccw automatic same like in this video WITH speed controller. So where can I connect speed control in between ? Also one more question is If motor 12v ardruino also required with 12v ?

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

      Hi, You are welcome. I just added the link correct link to control direction of motor. this video and code is to just change the direction or Turn ON and OFF. no speed control. That's why we used relay to make it very simple. I have motor control related videos here ruclips.net/channel/UCkcBSig_Iu4ZnAIeCeG1TVgsearch?query=L298N

  • @ShrikrishnaShrikantGad
    @ShrikrishnaShrikantGad 9 дней назад

    I'm want to control linear actuator using Arduino, 2-relay module and a 8 inch 200N linear actuator and 12v battery. Can the same connection and code be used for controlling a linear actuator without using push buttons?

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

    Great session as always, can we use the same module to control the initial speed of the the motor, ie: I want the 220v motor to start slowly and gradually gain speed
    thanks

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

      Thanks. No you can't do it. this is just a switch. turn ON and OFF only.

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

      What can you advise to add to the circuit so I can manage the speed of 220V, I guess the Arduino won't do it but it will help with the on/off function only. Thank you.

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

    Will you be able to program a schedule on and off for the motors. On any given day. For example Monday relay 1 turn on ccw for 30 seconds then relay 2 turn on cw for 30 seconds on the same day 30 seconds after relay 1 was activated?

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

      Hello, Yes you can but you need to use clock module to accurately track the day and date and time. here is video for that ruclips.net/video/7hBtXdoaAOY/видео.html

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

    Hola, excelente, el motor solamente logra moverse para una sola dirección, hice el cableado como explicas y el mismo código. Que estará sucediendo? Saludos.

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

      Gracias. Si no cambió el código, el cableado debe ser incorrecto. Entonces, el cableado o el código son incorrectos.

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

    Plz make a video on ac single phase motor rotation change

    • @robojax
      @robojax  2 года назад +1

      Very interesting idea. It needs modification of wiring of inside motor.

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

    Great video, really helpful, but, can you assist me in adding an ultrasonic sensor [HC-SR04 ] code for these motor code. when the sensor detect someone of 1 meter distance, it shall trigger the motor sequence run. Really means a lot to me.

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

      okay. if your ultrasonic sensor the distance is "distance" then you say if(distance >=1){ motorStop();}

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

    Good day sir, how did you control the voltage? Do you use code for reducing and increasing it?

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

      no voltage is controlled. this is just switch (relay is a switch) and speed of motor does not change.

  • @mpume.dzwane9213
    @mpume.dzwane9213 3 года назад

    Hi! Ahmad Shamshiri from Canada, I hope you well. I was wondering if you can make an automatic gate that open and closes using arduino, IR sensor. Thank you my good Sir.

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

      Hello, Thanks. I hope you are well as well. You did not mention which type of gate, but if it is home gate you could use actuator shown here ruclips.net/video/EaoB6lfnS7g/видео.html or if it is a tiny robot, then ruclips.net/video/oERwjgrX3fA/видео.html good luck.

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

    Nice tutorial sir i had same relay module 3 chanel one its rating is 10mp andi want to power my water motor with it its rating is 170W which is 3.36Amp is it safe to plug that with relay?

    • @robojax
      @robojax  3 года назад +1

      I can’t say anything. I explained in video. It should be clearly written on the relay. So decide accordingly.

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

    Can we add additional sensor for regulating ,like non contact liquid sensor

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

      Yes you can. this is Arduino and you can add as much as your Arduino pins permit.

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

    You can make this project with DPDT switch

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

      Yes I could. Then you don't need arduino. You are right I should make video . Thanks

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

    Awesome Video! How did you connect the code to the arduino? Is the code run from a computer and connected via USB? Could a solar panel with a compatible voltage be used instead of a battery as a power source?

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

      Thanks. your question is very basic. You program on Arduino, then send the code the Arduino board and never needs computer. Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338

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

      @@robojax thank you. With the relay being connected to a battery, would it still run if you disconnected the arduino from the computer? Or would the arduino and relay need two separate power sources to run?

  • @nelgalapin8068
    @nelgalapin8068 Месяц назад

    Good Afternoon Sir! Is there a chance that I can put start and stop button in this project? As well as timer?

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

    Sir can we give +5v and GND to relay instead of +9v and -9v?

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

      We have operating voltage and motor voltage. If relay is 5V, then give it 5V (like shown here) if relay is 12V then connect 12V. But for the motor if your motor is 24V connect 24V if it is 5V then connect 5V.

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

    My load is an actuator instead of a motor so I can open and close. However when the actuator is connected the relay seems to trip and it remains in the closed position (actuator remains on). What could be the root cause? Actuator works fine when tested with a 12v battery and code on Arduino works if the actuator is not connected. Thanks.

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

      Please watch this ruclips.net/video/EaoB6lfnS7g/видео.html

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

    Is this applicable for stepper motor as well?

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

      No. Stepper motor has 4 or more wires.

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

    Iam working on a project that uses 4 wiper motors. I once had a mosfet irf3205 hbridge burnt with 12v power supply using the wiper motors.
    can I use the reply with multiple wiper motors..

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

      Find out or measure the current foe the wipers and if it uses las than the rates current of the relay, then yes.

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

      @@robojax thank you very much. When using an h bridge I learnt the ground on the wiper motors are connected to their casing and this can cause a short circuit and damage the motor controller anytime you are controlling more than one wiper motor..
      When using a relay, do I need to open the wiper motors and disconnect the ground as its done when using motor drivers

  • @gokulmoolayil
    @gokulmoolayil 3 года назад +1

    Hi sir ,if i want to stop the motor by turning off 2 relays ,that means - ve is connected to both the pole of motor
    Or vice-versa +ve is connected to the both pole of motor , in this case will the motor get damaged ?

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

      Hi, if you connect only ONE terminal for example positive of your battery to anything, including motor, nothing will happen. for anything to happen, we need to complete the circuit. so both positive and negative must be connected so the motor moves or something happens.

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

    I am sorry for posting a question in a year old video. But I am currently having issues with two gate motor that have 3 cables, 2 positives and 1 negative for both direction of the motor. Can I just use one relay channel for both movements (Opening/closing) or do I really need to buy a second 2 relay module? As I understand it one of the circuits is always Open so electricity is always flowing so I cannot just plug in two positives in one relay channel or as soon as I install the arduino with the motor it will start opening or closing even if the relay is OFF. I am a bit lost here. I appreciate any help, thanks in advance!

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

      don't be sorry. this is great question and I love to help if I can. I haven't seen such motor yet. but if you can say it has GND and then two wires for CW and CCW, then sue you can use ONE relay. if you are using ONE relay then the motor can never ben turned OFF by this system. so you will need separate OFF switch. Please watch the introduction to relay video here ruclips.net/video/N-fFk51Eb8s/видео.html

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

      @@robojax Thank you for the answer. After watching the video I understand a bit more what you mean but I think I am still a bit lost. I currently have relay 1 and relay 2 in HIGH so one of the flows of electricity goes to CCW on both motors. If I stop supplying 5v to the relay itself from the arduino would that stop the circuit at all? I don't understand where that OFF switch would go. For more clarity on what I am trying to do, I am using Blynk(with ESP-01 wifi module) to try and make the gate of my house automated for me to enter without getting off my car with the two motors I mentioned

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

      for ON off switch, please watch this video ruclips.net/video/dVh77wT-4Ao/видео.html where I show how to turn ON or a light. I don't like th B-L... service as it is not free and does not offer free service.

  • @8ctopus0000
    @8ctopus0000 3 года назад +1

    Is this a 5V motor or is the battery a higher voltage? Does the Vcc of the relay need to match the V+ of the motor for an opto-relay?
    Great video, love the diagrams, wiring details and code, really easy to follow!

    • @robojax
      @robojax  3 года назад +1

      I am glad you found it useful. I used 12V power with 12V motor. but you can use 5V or any other voltage you like. Please don't forget to spare your subscription which costs you nothing.

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

    please make a video with this same code using millis instead of delay

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

      you want something that there is no demand for it. I send you the link. it seems you don't want to learn. I have explained every line and every piece of code. just watch it and it should work here are two videos on millis() ruclips.net/user/robojaxTVsearch?query=millis

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

    Can we control such motor with ultrasonic sensor? I'm just a beginner at ardiuno, I'm going to have a similar case to what you shown in the video, but the reverse of motion will be controlled by ultrasonic sensor, how can this be done with your connection?

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

      Yes you can. Arduino Step by Step Course (over 100 lectures) Starts here ruclips.net/video/-6qSrDUA5a8/видео.html

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

      @@robojax Thank you for your reply.I mean,if I connect the motor just how you did with the same coding, and I have already connected and coded the supersonic sensor, how can I take that at distance of 10 cm to send a signal to the motor to stop and then reverse? Is it possible? Do I need extra equipment? Or is there somthing in the coding I can do to send the signal

  • @Avogsanstanihindulougf
    @Avogsanstanihindulougf 6 месяцев назад

    Hi sir I want halp this tipe circuit making multiple function 5 to 10 dc moter run use project possible?

    • @robojax
      @robojax  6 месяцев назад

      Hi, Sure you can. but you need lots of pins, you need Arduino Mega with 50 pins and for push buttons you can use only one input, look at this video ruclips.net/video/AI-zzmSZVfw/видео.html

  • @castelmichel8670
    @castelmichel8670 8 месяцев назад

    Can I run 24v motor with this set up? Thanks

    • @robojax
      @robojax  8 месяцев назад

      I belive I mentioned that the relay is just a switch. so you can turn ON/OFF anything with any voltage. Only pay attention to the load current which should not exceed the rated current of the realy.

  • @VijayaLakshmi-eg4ss
    @VijayaLakshmi-eg4ss 2 года назад

    Good morning Shiri sir, please give me one circuit about xyj 02 timmer relay with2no limit switch and 5rpm synchronise motor?

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

      Hi, I am not sure what you are looking for. you can search my videos on my channel. here is how to find a video on a youtube channel bit.ly/findRUclipsVideo

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

    Can the same circuitwork on raspberry pi?

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

      Yes it will work if you way it the proper code.

  • @kjboygaming6681
    @kjboygaming6681 9 месяцев назад

    Can u help for my project

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    what is the model of the uno board?

    • @robojax
      @robojax  Год назад

      The model does not matter . Get any Arduino board . It will work. Arduino UNo, Arduino Mega, Arduino nano or digispark and others will work.

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

    is this work with wiper motor ?

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

      I used relay and as I explained it it is a switch. And I have shown what a relay does.

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

    Nice Video , Mr. Ahmed Shamsheeri, want to Join u sir.

    • @robojax
      @robojax  3 года назад +1

      Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

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

      Its for rich students, what for poor~😊

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

      Today I launch a video introducing my plateform there I praised your site and will send link to mu poor students

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

      In this video I already mentioned about Robojax

  • @BilalKhan-do9il
    @BilalKhan-do9il 3 года назад

    Have you done any video on optical encoder with Arduino ,if yes please share the link,if no please do it😃

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

      are you referring to rotary encoder? no I have not. yet.

    • @BilalKhan-do9il
      @BilalKhan-do9il 3 года назад

      @@robojax yes rotary optical encoders ,please do one!

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

    Good night friend, how do I stop the sequence of this program in the engines at a certain time and start where I end?

    • @robojax
      @robojax  3 года назад +1

      Use millis() to calculate time and do something see this video ruclips.net/video/u2HsiTS8niQ/видео.html or look at my other videos

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

      @@robojax será que me puede ayudar con el código con un ejemplo lanceroswifi@gmail.com mi correo

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

      @@robojax I have two motors I want to rotate forwards and backwards, but they stop at a certain moment and then pick up or start where they stopped or I order them to do the sequence

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

    good evening
    i have a 110v ac motor i want it to start and stay 3 seconds on and off after 3 seconds and turn on 2 hours later how can you?

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

      Hello, this is for DC motor only.I have tones of videos on timers ruclips.net/user/robojaxTVsearch?query=timer

  • @syphertdg1746
    @syphertdg1746 Год назад

    Please how do I increase the voltage supplied to the motor to 12v

    • @robojax
      @robojax  Год назад

      my friend. it seems you either did not watch or did not understand. your motor voltage is up to you. if you want to run 10V or 100V motor it is up to you.

  • @SonPham-ww6sw
    @SonPham-ww6sw Год назад

    Your tutorial is so awesome. Can you tell me how to connect the switch or sensor for the door to open and close by itself?

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

    Hello, I have a question.
    Where are the two extra wires of the dual relay connected to?
    Why can't my motor rotate, only the two lights of the relay are flashing

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

      Hello, all the wiring has been explained. nothing left without explaining. first relay has been explained then wring. please watch. This can't be explained better than this.

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

    Salam sir

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

    I have used this relay connection to open and close gate project, but when I try to close gate without motor running with power, its becoming very hard. I have try to rotate motor with bear hands and it was too hard, but if I remove relay wires from motor, then its very easy to rotate motor with hands. Can you help me what should I do to make it easy to rotate with relay connected to motor?

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

      this is interesting. I realize that the relays are connecting the output wires of the motor creating circuit that when you rotate the motor, it creates brake. I am not sure how you did the wiring, but inside the code somewhere when the motor is not running, we should open or close one or both relays such that the wires from motor are free and not creating a loop circuit with the motor. this is the best I could not as it needs working and practically resolving this. good luck.

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

      Sir, I have done the same wiring which you have done and its working fine to forward, reverse and stop (keeping both on HIGH) as well. Even relay is not connected to power and if I try to rotate shaft, its becoming more hard. I am using geared DC motor.

  • @aavesh.bagwan
    @aavesh.bagwan Год назад

    Bro is it safe to do it I am going to use it in my project called hand gesture controlled wheelchair where I am going to control 350 watt motor with this relay.

    • @robojax
      @robojax  Год назад

      I have explained the amount of power each relay can take. usually they are rated at 10A. So do the math P(watts) =V÷I, where I is current in Ampere.

    • @aavesh.bagwan
      @aavesh.bagwan Год назад

      @@robojax thanks bro I will do it 👍

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

    wiring to module start at 10:20

    • @robojax
      @robojax  4 года назад +3

      I have already provided the link to all section of the video in the description.

  • @FirstLast-tx3yj
    @FirstLast-tx3yj 4 года назад

    I want 2 dc motors to follow certain movement pattern after pressing a botton. I have two bottons red and blue
    For example:
    1st time i press blue: motor 1 (5°CW)
    2nd time i press blue: motor 1 (10° CCE) motor 2 (5° CW)
    3rd time i press blue: motor 1 (15°CW)
    Now at any point I might press the red botton then the motors will reverse there movement (move in opposite direction and order).
    For the whole project I need the two motors, four relays and 2 arduinos and the program right??
    I know there is tons more detail but comment on the general view.
    Please reply to me sir thank you

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

      Hi, This is a complete project and needs a full or two days to be done. I am very busy and have no time to do that.

    • @FirstLast-tx3yj
      @FirstLast-tx3yj 4 года назад

      @@robojax off course it will even take more than that with me. I am not telling u to do my work. I am just asking u if what am thinking is right.
      Basically just the main components that i need for the recipe.
      2 motor, H bridges, arduinos, and then programming right?

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

      for single motor as shown in video you need Dual relay module (or 2 relays) and for 2 motors, double it. then you will need wires and of course Arduino board. Cheers

    • @FirstLast-tx3yj
      @FirstLast-tx3yj 4 года назад

      @@robojax thank you brother

  • @FranciscoSilva-zt3qj
    @FranciscoSilva-zt3qj 4 года назад

    Can i use a timer instead of using an arduino?

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

      what is timer? it must be a microcontroller. Arduino is a microcontroller. Some time people put a microcontroller on a module and program it so you can't change it. here is timer ruclips.net/video/Y1gwOkPtqCg/видео.html and time with 2 relay ruclips.net/video/O01NCZq7O2M/видео.html

  • @isz9772
    @isz9772 Год назад

    Sir can you make one video same like this but using 2 switch to change the directions of motor🥺but still using the same connection

    • @robojax
      @robojax  Год назад

      very interesting. I will try to make that video. thanks

    • @isz9772
      @isz9772 Год назад

      Thnks🥺

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

    Why did you declare redundant variables for "HIGH" and "LOW"?

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

      I had to open the code page and read it before I could reply to you. I did not declare . I assigned them to relayON and relayOFF . If I didn't , then for LOW level trigger (turns ON with LOW) and HIGH level trigger (that turns ON with HIGH) the person would be confused. Now we have relayON which always the same for LOW and HIGH level trigger. and this makes it very straight forward.

  • @kjboygaming6681
    @kjboygaming6681 9 месяцев назад

    Hi

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

    hi do you sale such chips
    i am interested to buy

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

      which part? Arduino is Programmable board which is sold everywhere. Then we have relay module. Because it has two relay, it is called dual relay. you can buy them from Amazon, eBay or AliExpress.

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

    hi!! i want to connect this 2ch relay with a reciever so how to connect 2 signal input terminal of relay to one reciever output??? pls help

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

      Hi, you did not say which receiver. but if the receiver has above 2.8V to 5V, it will work.

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

      @@robojax is an austar 3ch rc tx rx!!

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

      @@robojax i have connected reciever with bec from 3s lipo!! i want to use relay for changing direction of motor!! because my esc does not have reverse mode

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

      if you want to use just receiver, then you need to use two channels. one for CW and once for CCW because receiver outputs different PWM signals. or use arduino to decode it . I don't have any video on RX Tx with Arduino

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

      @@robojax i was thinking of using two channel relay, when it is normally open it will rotate in one direction and when i press a button which is channel 3 on my reciever it will change polarity so i can use reverse mode for motor!! is it possible?

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

    I want the dc motor fwd rev without stopping...

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

      very simple change the code. Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135

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

    Hi
    am testing with a battery and a meter and I could only get it to read power in one direction..
    what am I doing wrong?
    why its not read - 4.17 and +4.17

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

      check wiring. watch it multiple times. do not change the code.

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

      @@robojax thanks l got it working. I am using esphome code for my homeassistant. I had to add "interlock: [Id name] plus "interlock_wait_time: 1000ms.
      My setup is 2 12v DC attic fans and you can't go forward to reverse right away or the power supply will pop a fuse so adding a delay of 1000ms work great.
      I'm using 2 30amp 5v relays anything else would burn up.

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

      you are welcome. I am glad you were able to fix the issue. Good luck.

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

    How to control forward reverse using switch?

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

      I have explained it وافق
      watch the video and learn. then from other videos with push button which I can see yo posted comments, just use that push button to change the HIGH to LOW or LOW to high to make the motor rotate in different direction. I have tones of videos on push buttons. Even motor with push button. Search for it.

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

      @@robojax for the coding?

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

      Can make 1 Video for.. Forward And Reverse dc motor use Switch - Forward Stop Reverse ..please..😭

  • @haroonrasheed1375
    @haroonrasheed1375 3 месяца назад

    With 40 degree rotation

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

    or where i can buy this

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

      which part? Arduino is Programmable board which is sold everywhere. Then we have relay module. Because it has two relay, it is called dual relay. you can buy them from Amazon, eBay or AliExpress.

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

    what is the rating of motor that he used

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

      Motor used in this demonstration is HTBRR04206705B. I've added details in the code page as well.

  • @manmohansingh8786
    @manmohansingh8786 Год назад

    How can I control the speed of motor?

    • @robojax
      @robojax  Год назад

      You should have searched my channel but I am in good mood and I did the search for you ruclips.net/video/wn5D7j1ybxY/видео.html

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    do you still reply to questions?

    • @robojax
      @robojax  Год назад

      Why you say “still” ? I am not dead yet. Lol

    • @robojax
      @robojax  Год назад

      I read every single comment and if there is a question that is not answered in the video I reply.

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

    how to control motor using 2 relay with ir remote control

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

      yes and I have tones of videos on Infrared. Simple search shows it ruclips.net/user/robojaxTVsearch?query=remote

  • @NarendraSharma-zd8gx
    @NarendraSharma-zd8gx 2 года назад

    Sir I want Drive motor Clockwise and anticlockwise with start button like that when I press button Motor Drive Clockwise for Ten seconds and Stop and Press again button Motor Drive anticlockwise for Ten seconds and Stop. This program running continuosly continuosly press button Motor Drive Clockwise ten seconds and Stop Press again motor Drive anticlockwise ten seconds and Stop

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

      this video is about motor. what are you talking about? please post your question under the related video. if your question is not related to video, then posted it on Arduino forum forum.arduino.cc/

    • @NarendraSharma-zd8gx
      @NarendraSharma-zd8gx 2 года назад

      Please Help me

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

      I have already helped you. Is google yo translate it if you did not understand it

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

    Gazolinas do carro está pronta tá estados unidos último foguetes essa gazolinas será mais evoluídas para gazolinas bioferas ok sim agora sim nunca o amiga sou mente rica ok eclaro que sim e tou feliz

  • @crafts4mecrafter763
    @crafts4mecrafter763 Год назад

    sorry i dont see any links

    • @robojax
      @robojax  Год назад

      Check again. All my videos have link in the description of below the video.

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

    Ferragens dele e primeiro mundo ok feito com mesmo material do avião e revestidos ok como colagens de fora erefeita com cristal e junsao ok deretendo cristal ok portas dele cores e de diamantes ele lindos 120carros ok sim ok sim PACTa tá com migo Denize ok

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

      Olá, usei o google para traduzir e não entendi o que você está tentando dizer. Desculpe.

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

    الكود فين

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

      عندما تتخطى الفيديو ، هذا ما يحدث. تحت كل مقاطع الفيديو هناك وصف. لدينا روابط في منطقة وصف الفيديو أسفل الفيديو.

  • @marianoronha593
    @marianoronha593 3 года назад +1

    Os carros dou filho Rubens Denize bortoletto Gabi tirando leia ela eu ok mal amiga essa mulherzinha não presta esse carro edanize eda mãe do Sandro Rodrigues ok eteu leia ok Maria tá nojo de você ok eu colho amiga Denize você que querida tudo ótimo ok