Lesson 68, Home Automation: How to control 16 Channel Relay module using Arduino control 16 AC loads

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 มิ.ย. 2024
  • This video shows how to control 16 AC or DC load using the 16 Channel Relay and Arduino. This a great home automation project.
    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.😊 .
    *** Purchase 16 channel relay module:
    Amazon USA: amzn.to/3kKxxwk
    Amazon Canada: amzn.to/34DCbXb
    Amazon UK: amzn.to/32SzO4F
    Amazon Germany: amzn.to/3sNCICI
    Amazon all European countries: amzn.to/3oEL2Ac
    eBay: ebay.us/C1D0AG
    Banggood: www.banggood.com/custlink/Dm3...
    ** 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
    Download Arduino code for this video:
    robojax.com/course1/?vid=lect...
    Go directly to different section of this video:
    00:00 Introduction
    01:22 Hardware explained
    05:40 load calculation
    06:47 Design flaw in the module (must see)
    08:46 Code is explained
    12:54 Wiring Explained (watch this if you don't know how to connect your AC load • How to use 5V Relay wi... )
    14:20 Demonstration
    Tutorial by Ahmad Shamshiri form Canada
    Subscribe To my channel now bit.ly/rj-subscribe
    ****************************
    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
    Robojax on Ticktok: / robojaxtv
    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.
    #robojax #robojaxArduinoCourse #robojax16Channel
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 227

  • @polako89
    @polako89 2 ปีที่แล้ว +7

    The explanation about the board is better than any other thing you can find online! Thank you!

  • @asab994
    @asab994 2 ปีที่แล้ว +2

    A really excellent tutorial. Thank you so much for posting this.

  • @mustaphaalaoui9320
    @mustaphaalaoui9320 3 ปีที่แล้ว +2

    Thank you very much for this excellent tutorial and video.

  • @brasofilo
    @brasofilo 5 ปีที่แล้ว +1

    Very good stuff, great explanation and production values, thanks a lot for sharing!

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @nastuhi2509
    @nastuhi2509 2 ปีที่แล้ว +1

    thank you so much you saved my life with that one

  • @dandrion2
    @dandrion2 4 ปีที่แล้ว +2

    Thank you very much Sir for the informative video tutorial. Helps a lot.

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome.

  • @driftwood9421
    @driftwood9421 5 ปีที่แล้ว +2

    Brilliant video RJ. A big thank you for all your uploads, really appreciate these tutorials. Have watched a few now and the detail you go into and the helpful information you provide is very much appreciated.
    A new like and a new sub here.

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are very welcome. I am pleased be helpful. I appreciate your comment, like and subscription.

  • @nikitaKaner
    @nikitaKaner ปีที่แล้ว +1

    Thank you for the explanation! You saved me! :)

    • @robojax
      @robojax  ปีที่แล้ว

      You are welcome!

  • @leochen4891
    @leochen4891 3 ปีที่แล้ว +1

    I can watch the relays on and off all day.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      Yes LOL.

  • @darshanlokesh6498
    @darshanlokesh6498 3 ปีที่แล้ว

    Excellent Explanation in TH-cam... So far on this topic

    • @robojax
      @robojax  3 ปีที่แล้ว

      You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you

  • @ygreq
    @ygreq 4 ปีที่แล้ว

    Very, very informative video!

  • @dickwhittington7321
    @dickwhittington7321 ปีที่แล้ว

    Great, easy to understand videos by the way.

  • @edwinhdz5014
    @edwinhdz5014 2 ปีที่แล้ว +1

    I could sleep with the sound of this relays

  • @kakleerko2088
    @kakleerko2088 ปีที่แล้ว

    Iam watching your video from India

  • @pbartmess
    @pbartmess 4 ปีที่แล้ว +1

    Very clear explanation! Thank you.

  • @MrMrbrianbechtel
    @MrMrbrianbechtel 2 หลายเดือนก่อน +1

    Thank you for making this

    • @robojax
      @robojax  2 หลายเดือนก่อน

      My pleasure!

  • @Khujandiho
    @Khujandiho 2 ปีที่แล้ว

    very good. thank you

  • @kakleerko2088
    @kakleerko2088 ปีที่แล้ว

    Iam watching your video from India your explanation is very nice 👍

    • @robojax
      @robojax  ปีที่แล้ว

      You are welcome. Here is Arduino Step by Step course worth $200 on Udemy, for free starts here th-cam.com/video/-6qSrDUA5a8/w-d-xo.html

  • @roperhl
    @roperhl 5 ปีที่แล้ว

    Very well explaned

    • @robojax
      @robojax  5 ปีที่แล้ว

      Thank you.

  • @yogeshitaliya473
    @yogeshitaliya473 5 ปีที่แล้ว

    Thanks Sir
    beginning automations

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @DerekPicard
    @DerekPicard 4 ปีที่แล้ว

    Great video

    • @robojax
      @robojax  4 ปีที่แล้ว

      Thank you.

  • @kingfarming
    @kingfarming 4 ปีที่แล้ว

    Amzing video
    Very nice

    • @robojax
      @robojax  4 ปีที่แล้ว

      thank you.

  • @chowbrian8124
    @chowbrian8124 5 ปีที่แล้ว +2

    Thank you for the informative video, I am relatively new to Arduino and I have a question, why is the Vin pin used as ground rather than the GND pin?

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      Some relay module are HIGH trigger and some LOW trigger. This is LOW trigger meaning it gets activated with LOW voltage. So we send LOW signal from Arduino output to turn it ON and we send HIGH to turn it OFF.

  • @robingist6666
    @robingist6666 5 ปีที่แล้ว

    thank you

    • @robojax
      @robojax  5 ปีที่แล้ว

      you are welcome.

  • @sgundil
    @sgundil 4 ปีที่แล้ว +1

    Most helpful video. Excellent explanation. Thank you.
    In case I do not want a continuous loop but only want to use for sequential delay so that the relays remain ON continuously after a certain time, what would be the code?

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome. You haven't subscribed to my channel. The best thank you for me is to subscribe to my channel and thumb up the video. It is greatly appreciated. 🔔 😊
      Please watch my other video on Timer th-cam.com/users/robojaxTVsearch?query=timer

  • @semanpreetsingh3367
    @semanpreetsingh3367 ปีที่แล้ว

    HI. Thankyou for the video. I have a query that I want to individually control 8 LEDs of like 3 Watt power and 3.5 V using 8 channel relay. Shall I connect external battery source? and would it be safe to do that?

  • @pb1672
    @pb1672 2 ปีที่แล้ว

    Can the 16 relays on a sainsmart 16 channel relay board be operated without using a Mega 2560 R3 or similar board? I just want to trigger some LED lights using a Game module I have.

  • @onurbmti
    @onurbmti 2 ปีที่แล้ว

    Hello I am using the 8 Channel Sainsmart relay board. I use 12V to power the board. I am using 24V to trigger a 24V solenoid (pinball flipper). The relays work but after a while they start to degrade and stop making connection to close the circuit to the 24V solenoid. What might be causing this issue. It appears the relays can handle up to 30V 10A,. Any help would be appreciated. Thanks

  • @QuickMind
    @QuickMind 4 ปีที่แล้ว +2

    you should do this 16 relay board being controlled by Arduino and the Nextion Touch Screen with 16 digital buttons :)

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      Interesting. I will try to get that screen.

  • @jackmcaleer7496
    @jackmcaleer7496 3 ปีที่แล้ว +1

    Thanks for the video! It was fantastic and really helpful, I was wondering if you could advise me slightly for a project I'm working on?
    Q1. if I had 3 of these modules would it be possible to control all of them up to 48 channels from the single arduino? If not, would I need 3 arduinos and could I control them all at the same time?
    Q2. if I could control all 3 is it possible to set differing times for each relay, so for example, if I wanted channels 1,2,3 to all run at the exact same time, then I want ch4 to start 5 seconds after ch3 then ch5 to start 10 seconds after ch4 and so on, would these values be customisable?
    Q3. Say I wanted to program a schedule,more a light show for example on the arguing, could I start the show remotely from say a laptop? Just for example say I have a collection of Christmas lights in the garden could I start the Christmas light show from my laptop? Thanks so much for your help!

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      Arduino MEGA has enough pins and you can control it.

  • @frankgambino3147
    @frankgambino3147 5 ปีที่แล้ว

    thank you for this most informative video, I have one question, can you convert this 16 channel solid state relay board from a low-level trigger to a high-level trigger?

    • @robojax
      @robojax  5 ปีที่แล้ว

      you are welcome. you will need hardware like buffer, inverter which takes the signal and inverts it.So you will send HIGH and it makes it LOW. here is one chip that can do it: CD74HC240E which just needs 5V and ground: www.ti.com/lit/ds/symlink/cd74hc240.pdf

    • @peachville4383
      @peachville4383 4 ปีที่แล้ว

      @@robojax actually just reverse the digitalWrite (controlPin i from HIGH to LOW and LOW to HIGH

  • @Elettronica-xt7nm
    @Elettronica-xt7nm 5 ปีที่แล้ว +1

    Beautiful, beautiful, the video as always very constructive your tutorials. Speaking of 16 relays, instead could you make a video tutorial to manage the relays with the MCP23017 component that uses only the I2C mode is I able to have more free ports of Arduino? Thank you very much for the attention .

    • @robojax
      @robojax  5 ปีที่แล้ว +2

      you are welcome. I utilised Anolog (A0, A1, ...) ports to make it work. Other methods are coming soon.

    • @Elettronica-xt7nm
      @Elettronica-xt7nm 5 ปีที่แล้ว +1

      @@robojax I will wait for the videos soon. Thanks so much😉

  • @jcdragon77
    @jcdragon77 5 ปีที่แล้ว

    Great work. Could I use this to control 12-24 volt equipment in vehicles?

    • @robojax
      @robojax  5 ปีที่แล้ว +2

      the relay can control any load of 10A (explained in video at 05:40). But powering up the this module, has an issue (watch it at 06:50) and I am posting another video today showing how to resolve it and then yes it can be powered up from 5-30V.

  • @EatingChemicalFree
    @EatingChemicalFree 4 ปีที่แล้ว

    Great video, do you know of a similar 16-Channel Relay that can supply 24VDC with a 24VDC input? Thanks

    • @robojax
      @robojax  4 ปีที่แล้ว

      I am not sure. But you should find it on AliExpress.com or eBay. But it would be very simple to put 24V to 5V Buck converter Module (from eBay) and use it with 24V.

  • @jammyashell
    @jammyashell 5 ปีที่แล้ว

    any ideas on adding a PIR to start the relay delay?
    I would like to use the relay for some lighting outside and have been playing about with the sketch but cant seem to get anything working.

    • @chrismathes1273
      @chrismathes1273 5 ปีที่แล้ว

      You'd wire up the PIR to the arduino, then when your sketch detects motion (PIR output goes high) it would trigger one or more relays, presumably turning them off after some fixed amount of time once motion is no longer detected.

  • @dennishamilton902
    @dennishamilton902 2 ปีที่แล้ว +2

    Amazing video! This might seem like a stupid/obvious question but can you decide how many Watts/Amps/Voltage your relays output. For example if I only want to output 9V at 1A per relay would that be possible or no?

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Hi, the relay is just a switch. you can connect anything you want does not matter 9V or 200V. just keep it less than 10A or whatever is written on the relay.

  • @zsszabolcs
    @zsszabolcs 4 ปีที่แล้ว

    Great video! I'm really new to the IoT world, and I'm wondering if it is possible to control the relays of this board directly with 3.3V instead of 5V (i.e. with Raspberry)?

    • @robojax
      @robojax  4 ปีที่แล้ว

      yes they can be controlled. But the power must be 5V.

    • @zsszabolcs
      @zsszabolcs 4 ปีที่แล้ว

      @@robojax Thanks for the quick response. One more question I have is whether I need to use the 5V pins of the relay board at all? Or are they really just for providing power to other electronics (like Arduino or RPi)?

  • @Elettronica-xt7nm
    @Elettronica-xt7nm 5 ปีที่แล้ว +1

    hello Robojax. Congratulations on the video. I wanted to ask you if you had the possibility to do some video management of 32 relays using two mcp23017 through I2C. Thank you so much for your attention 😉

    • @robojax
      @robojax  5 ปีที่แล้ว +2

      Hi Diego, all 32 channel relays are PLC based. I am not sure if there is demand for those to be used using Arduino. is it?

    • @Elettronica-xt7nm
      @Elettronica-xt7nm 5 ปีที่แล้ว +1

      @@robojax I use them through the Blynk app, if possible.

    • @ernsthaeckel5276
      @ernsthaeckel5276 5 ปีที่แล้ว

      Hey @Robojax Great work!
      The use of I2C (or SPI) would be useful, no need for the ribbon cable and leaving more ports on the arduino. In our project Arduino is proving restrictive for the code logic and data logging required so I am thinking ESP32. Its an IoT AC or DC power distribution device but where we want to record and store second by second fluctuations of voltage and current. I'll be following your work with much interest and would be interested to collaborate if we can work something out.
      At one point we were working on this sort of chip to breakout from the I2C
      www.ebay.co.uk/itm/20Pcs-Ti-Dip-SN74HC138N-74HC138-New-Ic-/132177047757?fbclid=IwAR2ANJOvx28Xf_IrwSTCSH0834ZJKa94uPY2gY5_zwSrqrQF03XJ27Z3aaM
      And I assume you have seen:
      www.ebay.co.uk/itm/16-Channel-12V-Relay-Module-Optocoupler-Protection-Power-Supply-for-Arduino-C1S3-/283138265199?fbclid=IwAR3ebvltHjzfZDV31QjKWtr1qGBhTCnxu09a_qTgskhk-hEwyUc7UCGnetM

    • @Elettronica-xt7nm
      @Elettronica-xt7nm 5 ปีที่แล้ว

      @@ernsthaeckel5276 send an email to my address: dlamattina@mail.ru

  • @techcargo2834
    @techcargo2834 4 ปีที่แล้ว

    Thank you for informing about relay and I want information about arduino sensors kit available on Amazon can you give me information ?

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome. There are 1000s of items. You better check my videos and find something that you want. I have over 280 videos th-cam.com/users/robojaxTVvideos

  • @rolandhalili5510
    @rolandhalili5510 5 ปีที่แล้ว

    Could it be use for lights of motorcycle and safe? And can 12v use to trigger each relay? Thanks.

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      yes you can can.

  • @23andres09
    @23andres09 2 ปีที่แล้ว

    Hi great video. I wanted to ask. If I dont want to supply the Arduino by the relay supply. I just dont put the 5V pins on the relay board but put the conect the GND pin of the relay to the GND pin of the arduino? what if I connect the 5V pin of the relay to the 5V of the arduino but left the GND pin of the relay disconnected? is it the same?

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      for every electric circuit, we need to connect two wires to complete the circuit. you need to power this module with 5V and you MUST connect GND. This module has problem when it is shipped and here is how to fix it th-cam.com/video/mHPqxctmJrs/w-d-xo.html

  • @abstudio1228
    @abstudio1228 3 ปีที่แล้ว

    Hi Brother, i want to know there are some of the 16 relays are without voltage regulator (LM2596 or LM2576) and without any capacitors, so if you please tell me what's the importance and the job of these parts in the 16 relay module. Thnx

    • @robojax
      @robojax  3 ปีที่แล้ว

      please see the provided link in the description and watch that video.

  • @jimmyjimmy7324
    @jimmyjimmy7324 4 ปีที่แล้ว

    Hi, great video!!! I done your project in few minutes. I need a different function. I want to switch on (for 200-400 ms ) one by one all the relay. So, first relay on for 200ms then off, second relay on for 200ms then off... up to the 16th relay. I'm not native language english so if is not clear I will try to explain it better. Thank you

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have given example in the code.
      Did you see this:
      //channelControl(6,1, 2000); // turn relay 7 ON for 2 seconds
      //channelControl(6,0, 5000); // turn relay 7 OFF for 5 seconds
      //channelControl(9,1, 3000); // turn relay 10 OFF for ever
      just above that, I have a "for" loop that controls all 16 relay. (below) which controls relay for 200ms, you replace it with the value. I have explained how relay is controlled. Watch the video again.
      for(int i=0; i

    • @jimmyjimmy7324
      @jimmyjimmy7324 4 ปีที่แล้ว

      @@robojax thank you again. I'm going to try it. in the future I'll keep more attention

  • @alejandrominder2097
    @alejandrominder2097 5 ปีที่แล้ว

    Thank you for the nice video. But something is wrong. With shift registers you could control as many boards as you want. Means you could use smaller Arduinos too. Even an AtTiny could do the job.

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      Yes you could. I might have a video on that. But Uno is the most common board.

  • @vicjs216
    @vicjs216 3 ปีที่แล้ว

    Thanks for your informative video. Can WiFi be added to this system and then controlled by a phone app. I am new to Arduino but not to electrical work. Thank you.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      You are welcome. I will make that video God willing. it would be using ESP32 and ESP8266

    • @vicjs216
      @vicjs216 3 ปีที่แล้ว

      @@robojax That would be much appreciated. Thank you again.

    • @robojax
      @robojax  3 ปีที่แล้ว

      you are welcome.

  • @monaemhossaintipu9257
    @monaemhossaintipu9257 5 ปีที่แล้ว +1

    Can i use 5v relay for 24v DC motor control?

    • @robojax
      @robojax  5 ปีที่แล้ว

      Watch this video th-cam.com/video/58XWVDnB7Ss/w-d-xo.html so you know about it before coming to 16 channel.

  • @edfx
    @edfx 3 ปีที่แล้ว

    What happens if you exceed 10A per relay. Does it burn down or are they fused somehow?

    • @robojax
      @robojax  3 ปีที่แล้ว +2

      I think I have mentioned it. it will burn and cause fire.

  • @smartassist9700
    @smartassist9700 4 ปีที่แล้ว

    Can I use this arduino an 16 switch relay (or qty 2 8 switch relay to sense moisture near plants and have water pumps to give plant water until sensor picks up the new moisture?

    • @robojax
      @robojax  4 ปีที่แล้ว

      Arduino can do almost anything. it depends how you use it and where.

    • @smartassist9700
      @smartassist9700 4 ปีที่แล้ว

      I need someone with knowledge to do a video putting an 8 or 16 switch to arduino shown wire connections closely then the code needed to manage moisture sensor and water pump working together. I can freeze video often to copy / learn. I badly need this being disabled. Only way to have outdoor plants.
      I have had qty 5 55gallon rain water barrels installed. I will get 3-5k reservoir tank to hold extra for dry season.
      Are you in USA?

  • @dennischang5296
    @dennischang5296 3 ปีที่แล้ว

    I've seen a few videos and wiring diagram where they hooked up the 5volt from relay board to 5volt on arduino.

    • @robojax
      @robojax  3 ปีที่แล้ว

      Good to know. thanks.l

    • @dennischang5296
      @dennischang5296 3 ปีที่แล้ว

      I was asking if this is correct?

    • @robojax
      @robojax  3 ปีที่แล้ว

      Now the "?" mark helps. yes you can do that. You can power up Arduino with 9V to 12V if you connect it to VIN pin which is close to 5V and GND pin. This module has problem and you need to fix it. See this video th-cam.com/video/mHPqxctmJrs/w-d-xo.html

  • @patrickslota7374
    @patrickslota7374 5 ปีที่แล้ว

    I want to use this to control actuators in a CNC machine. Basically a magnet closes a reed switch which places a HIGH on the arduino input. This in turn controls a relay that powers the actuator. There are 14 actuators that will work one after the other, never more than one at a time. What is code edit to allow this to happen?

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      Hi, Yes absolutely this work for that.

    • @patrickslota7374
      @patrickslota7374 5 ปีที่แล้ว

      Robojax actually we just changed the design of the CNC. We are now using micro switches and a slide bar about 7 inches long. It engages a N/O switch placing a HIGH on the Arduino pin which closes the corresponding relay and drives current through an actuator causing it to go down and it stays down as long as the HIGH exits. As soon as the slide bar passes the switch opens and a LOW is placed on the Arduino pin. At this point I need to fire a second relay to drive current through the actuator in the opposite direction to make it go up to start position. Can you help me modify your code to cause this to function? I know where to place it but not sure of coding. Thanxx!!

    • @robojax
      @robojax  5 ปีที่แล้ว

      for Normally Open or Normally close, you just connect to different to the module you can learn about that in this video: th-cam.com/video/58XWVDnB7Ss/w-d-xo.html
      For controlling the output to be HIGH or LOW, I have explained that in the video. It is called LOW or HIGH trigger and you can choose what type of trigger you want at the output of Arduino pin.

  • @rekharam8049
    @rekharam8049 5 ปีที่แล้ว

    Hey what's up
    I have a question
    I am good at circuits and programming but well I mess up with mechanical building. Can you suggest a mechanical building kit or something that help me out with this.

    • @robojax
      @robojax  5 ปีที่แล้ว

      hi, to help you with what? this is just needs wiring to connect it to your motor or light or whatever you want to control.

    • @rekharam8049
      @rekharam8049 5 ปีที่แล้ว

      No that i know but like i want to make a humanoid robot or some mechanisms i want some parts or something similar to make it

    • @rekharam8049
      @rekharam8049 5 ปีที่แล้ว

      This is general question. Not about the video

  • @mrmatistp
    @mrmatistp ปีที่แล้ว

    and how would one map pins for this board with esp 8266 connected? home assistant integration

    • @robojax
      @robojax  ปีที่แล้ว

      I am not sure what is "home assistant" as there are 100s of tools. You simply define a pin in the code to control each relay. I have introduction video for ESP8266 here th-cam.com/video/pLvqh57T3s4/w-d-xo.html which explains and gives example for pins and all other details

  • @louisruff1323
    @louisruff1323 4 ปีที่แล้ว +1

    How could I manipulate the code to have more than one relay turn on at the same time?

    • @robojax
      @robojax  4 ปีที่แล้ว +2

      Hi Louis, I have updated the code page. Added new code at the end of the page so you can control more than one relay.

  • @melickon
    @melickon 5 ปีที่แล้ว

    If a need to control four of this kind relay modules (64 bulbs in total). How to achieve it with regular, let say, Arduino UNO?

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      with uno you can do it ONLY control 4 bulbs at time if you use 4 of this with 4 multiplexer. here my video on that th-cam.com/video/lQL6dfL_rsg/w-d-xo.html

  • @ntc7335
    @ntc7335 4 ปีที่แล้ว

    I'm wondering how to have 32 relays controlled by one Arduino. How would you do it?

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      Very simple. Use are rArduino Mrga which has more than 50 digital pins and use the same code

  • @CircuitMindsS
    @CircuitMindsS 7 หลายเดือนก่อน

    𝙃𝙞, 𝙍𝙚𝙨𝙥𝙚𝙘𝙩𝙚𝙙 𝙎𝙞𝙧, I want to connect 16 (actuators/motors)want to 𝒎𝒂𝒌𝒆 𝒂 𝒓𝒐𝒃𝒐𝒕 arm I wish control motors by programming so like that controlling speed and working time varying as my desire,
    Plz suggest me arduino..like that.. motors,or how to do it ,I will be very thankful

  • @mikengo4036
    @mikengo4036 2 ปีที่แล้ว +1

    can i use a bluetooth module to control the 16 channel relay module?

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Yes of course. I have explained how each relay is controlled. Simply send the that command via Bluetooth

  • @Bo-rv8om
    @Bo-rv8om 2 ปีที่แล้ว

    Can I use a 12v 30a power supply with this? 10a 30v dc, 10a 250v ac. will it break?

    • @robojax
      @robojax  2 ปีที่แล้ว

      To lower it up you need 12V and minimum of whatever current I mention as I don’t remember it. Maybe it was like 1A. Anything hover has no affect it. I hope your quality was about powering this module up.

    • @Bo-rv8om
      @Bo-rv8om 2 ปีที่แล้ว

      @@robojax No I mean not to power it up but the current that runs trough the relay. I want to control multiple solenoids with my 12v 30a power supply but wondering if the relay will break because it is to much current.

  • @FahadAli-gc1vt
    @FahadAli-gc1vt 4 ปีที่แล้ว

    Sir if i use 5volt 2 or 3 amp mobile phone charger to power this 8 channel relay. Do i still need to do changes in this circuit?

    • @FahadAli-gc1vt
      @FahadAli-gc1vt 4 ปีที่แล้ว

      As you highlighted relay voltage issue at 06:47 .
      Can i use mobile phone charger to solve this issue?

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      perhaps you did not follow what I said. This module is soled as "12V 16 channel relay" and that is why I offered solution. if you use 5V, don't do anything. it will work.

    • @FahadAli-gc1vt
      @FahadAli-gc1vt 4 ปีที่แล้ว

      Sir i have 1 more question.
      Sir i have 12 watt smd LEDs. Can you tell me how many leds can i connect with a single 5v to 220volt relay.

  • @srikeshiyer2695
    @srikeshiyer2695 3 ปีที่แล้ว

    Why is it necessary to connect GND to arduino when the power supply GND is already connected?

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      Power supply and Arduino and any other device must have common in order to work together.

  • @TheBAD7777
    @TheBAD7777 4 ปีที่แล้ว

    I try to do the same with d1 mini but only led in relay board works but relay is not working what is wrong 😔 please help

    • @robojax
      @robojax  4 ปีที่แล้ว

      do you hear a click? how do you know it is not working? have you connected the load? Watch my video on single relay as you might have connected the load incorrectly

  • @Phantom0507
    @Phantom0507 2 ปีที่แล้ว

    Is there anyway to output 12v instead of 5v

    • @robojax
      @robojax  2 ปีที่แล้ว

      I am reading your comment after 7 hours. you should not have waited if you had done a simple search for "16 channel" on my channel. Here is how search for a particular video in a Channel th-cam.com/video/OhkUceBWcHs/w-d-xo.html and here is the video you are looking for th-cam.com/video/mHPqxctmJrs/w-d-xo.html

  • @dennischang5296
    @dennischang5296 3 ปีที่แล้ว

    For some reason, doesn't matter what script I run, all the relay will all turn on at the same time. I have delays and timer on all of them, and I try a few different scripts, but with no luck. All the relays that are in my script will turn on (same time).

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      if you don't change the code, it will work. first trying it without changing and then modify it if you want.

    • @dennischang5296
      @dennischang5296 3 ปีที่แล้ว

      @@robojax I left the code the way it is with no change and I'm still having the problem. What do you think is causing all the relays to turn on all at once?

    • @dennischang5296
      @dennischang5296 3 ปีที่แล้ว

      I notice when the GPIO is set to "output" doesn't matter if it's true/high or false/low, there is some voltage coming out of that GPIO pin. Very low .179, this is why I think the relay stays on, and doesn't turn off.

  • @ahmadtauhid2807
    @ahmadtauhid2807 4 ปีที่แล้ว

    it possible to add 16 channel relay again in single board? so the channel relay will be 32?

    • @robojax
      @robojax  4 ปีที่แล้ว

      yes it is possible. if you have Arduino Mega with more pins, yes you can use it.

    • @ahmadtauhid2807
      @ahmadtauhid2807 4 ปีที่แล้ว

      @@robojax Arduino Mega 2560 Rev3?

  • @yehudagoldberg6400
    @yehudagoldberg6400 3 ปีที่แล้ว

    Is there any way to use this as a serial device? It takes too many pins. For my project.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      here another video related to this with just 4 wires th-cam.com/video/Q9aBI4ELKC4/w-d-xo.html

    • @yehudagoldberg6400
      @yehudagoldberg6400 3 ปีที่แล้ว

      @@robojax Thanks for the reply. I think you sent the incorrect link, as it just directs me to this video.

    • @robojax
      @robojax  3 ปีที่แล้ว

      I am sorry. you are right. but you should not have waited. just should searched for "16 channel" and you would gotten it . here is the search result th-cam.com/users/robojaxTVsearch?query=16+channel

  • @social6166
    @social6166 ปีที่แล้ว

    How much ampere do we need for 12volt 16 relay model

    • @robojax
      @robojax  ปีที่แล้ว

      each relay needs 50mA so 50mAx16=?, then the module need 50mA. do the math.

  • @smartassist9700
    @smartassist9700 4 ปีที่แล้ว

    I need website to purchase arduino/ switches/ wiring. CODE/ pumps (8) sensors (8). I am disabled and need AUTOMATED PLANT OUTDOOR AND INDOOR WATERING.

    • @robojax
      @robojax  4 ปีที่แล้ว

      get them from eBay or AliExpress which takes about 30 to 80 days. if you want them fast then Amazon. if you want to code and kits in one box, then search for Elegoo on Amazon. Good luck.

  • @kazimir8086
    @kazimir8086 4 ปีที่แล้ว

    Can I add 16 sensors to this build?

    • @robojax
      @robojax  4 ปีที่แล้ว

      if your Arduino board has input for the sensors, yes. Arduino Uno has no more pins left. Arduino mega does.

  • @yashindian4233
    @yashindian4233 3 ปีที่แล้ว

    Hello there can we synchronise the relay with music..by any chance

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      you can do it if you use sound module to detect sound level and turn on relays with sound level.

    • @yashindian4233
      @yashindian4233 3 ปีที่แล้ว

      @@robojax sir can u please do a video on this ..I have just ordered my first aurdino need to learn

  • @bilmusic1768
    @bilmusic1768 2 ปีที่แล้ว

    Good day sir! Is it possible to control 1 AC with 2 relays only?

    • @robojax
      @robojax  2 ปีที่แล้ว

      if you mean to use two relays to control 1 AC load, yes but why? perhaps you want to you want to double the amount of current. very simple, see the wiring for AC here th-cam.com/video/_giGPBS_WAo/w-d-xo.html and connect them in parallel.

    • @bilmusic1768
      @bilmusic1768 2 ปีที่แล้ว

      @@robojax thank you for responding sir. We wish to control 1AC at the same time, 2 relays and an RTC to Arduino uno. Is it possible? Our project is to trigger a time twice, with one motor only. Our motor is 220V.

  • @richardhough3640
    @richardhough3640 4 ปีที่แล้ว

    Are you sure, we can power up the relay with 24 volt?
    You did not go up to 24 v. I watch your video may be thirteen times. You only said, max is 24 v but only increase it to 15 volt to module right?

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      commented on the "Fixing" video.

  • @DrZipZwan
    @DrZipZwan 3 ปีที่แล้ว

    Is it obligatory to use all 16 Channels?
    I got this Relay board, and 1 MicroController is blown. So only 8 channels, are available. I intend to use it to control only 2 devices with the 8 channels left... When I give 12V to it, all remaining Red led are ON, so I guess half of the board is usable.
    Thx

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      please see the link under the video. I can't being it as I am in page where comments from all videos are shown. I've shown how to fix the problem with this board.

    • @DrZipZwan
      @DrZipZwan 3 ปีที่แล้ว

      @@robojax Thx you, maybe was not a bad idea to provide a schematic to help us connect the board to Arduino, because always having to pause the video, to understand the wiring it not so easy...

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      It seems you have not check the link and page .

    • @DrZipZwan
      @DrZipZwan 3 ปีที่แล้ว

      @@robojax sure I checked, and you are right, there is a lot of good infos, but no schematic... It is a very important part in electronic project.
      Plus the Code is very helping, Thx again for that
      You mean this link:
      Download code and resources for this video: robojax.com/L/?id=253
      >> robojax.com/learn/arduino/?vid=robojax_16ch_relay

    • @robojax
      @robojax  3 ปีที่แล้ว

      You fist visit the page where the code is, you will see it there

  • @darshanh9197
    @darshanh9197 5 ปีที่แล้ว

    What's the life of these boards.? Are these good to keep continuously connected to power and controlled by ESP8266..? I don't want to risk my expensive electronics.😅

    • @robojax
      @robojax  5 ปีที่แล้ว

      the life of board depends on the relay (mostly). What is the worst would happen? There is no risk. Input and output is optically isolated. If you don't share power with Arduino, you will be isolated. The worst could happen, relay will die and it will do the job.

  • @gabrieldalbani6653
    @gabrieldalbani6653 4 ปีที่แล้ว

    I need a code similar to this but without it being looped and to work like an on/off switch instead. What do I have to change?

    • @robojax
      @robojax  4 ปีที่แล้ว

      You can use the code in this video: th-cam.com/video/3EZecphNdAI/w-d-xo.html

  • @upscaspirants633
    @upscaspirants633 3 ปีที่แล้ว

    Which application is used to control this project...

    • @robojax
      @robojax  3 ปีที่แล้ว

      You see this video th-cam.com/video/Mbb2xa1WcRM/w-d-xo.html

  • @Zohaib.S.H.K
    @Zohaib.S.H.K 2 ปีที่แล้ว

    Please add ultrasonic sensor 2x and please share circuit diagram add codes. For staircase

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      I already have the video on Ultrasonic sensor. To draw, get this free software fritzing.org/ and draw it. it is very easy. Here is how to Find Specific TH-cam Video in a channel bit.ly/findTH-camVideo just search my channel for the video

  • @jailbreak7750
    @jailbreak7750 ปีที่แล้ว

    brother for stair led 12v how to simple 16 channel relay

    • @robojax
      @robojax  ปีที่แล้ว +1

      You need to have sensor on each step to detect a foot and turn the light on.

    • @jailbreak7750
      @jailbreak7750 ปีที่แล้ว +1

      @@robojax thank you yes

  • @afzalharain
    @afzalharain 2 ปีที่แล้ว

    Sir, I have a question? Can I use the 32 really?

    • @robojax
      @robojax  2 ปีที่แล้ว

      This code works l with any boards

  • @davordamjanovic893
    @davordamjanovic893 3 ปีที่แล้ว

    I really don't know why they don't add shift register then you will need only 5(4 if not supplying 5V from the microcontroller) wires instead of 18.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      there are 1000s of people want to NOT use anything else and just connect it directly. here is using of 4 wires to control the same module th-cam.com/video/lQL6dfL_rsg/w-d-xo.html search my channel and you will find more

  • @jimbobbyrnes
    @jimbobbyrnes 5 ปีที่แล้ว

    whats the point of the relays being on a pcb if you still have to use so many pins on the arduino?

    • @robojax
      @robojax  5 ปีที่แล้ว

      16 relay without drivver woul have 4 wires to operate (2 power supply+2 load). for drivers it would be very complicated. This makes it very clean and easy to use. If you have 16 channel, then you need at least 17 wires (1 ground + 16).

  • @alcoholisfreedrink
    @alcoholisfreedrink 2 ปีที่แล้ว

    why does each relay consume around 180mA my relay module does that and it sounds really weird

    • @robojax
      @robojax  2 ปีที่แล้ว

      each relay need about 40mA. I might have made mistake or you got it wrong. the sound, I purposely programmed it with fast loop to make that noise. in real life application it won't happen at that speed.

    • @alcoholisfreedrink
      @alcoholisfreedrink 2 ปีที่แล้ว

      @@robojax no. I meant that a single relay consuming 180mA sounds weird. I ran the thing on the benchmark powersupply and it does consume that much. It's really weird.

    • @robojax
      @robojax  2 ปีที่แล้ว

      yes each relay will need 40-50mA.

    • @alcoholisfreedrink
      @alcoholisfreedrink 2 ปีที่แล้ว

      @@robojax i guess there is something wrong with my module

    • @robojax
      @robojax  2 ปีที่แล้ว

      No thing is wrong

  • @megamanwins
    @megamanwins 2 ปีที่แล้ว

    How can I control this relay module via PLC?

    • @robojax
      @robojax  2 ปีที่แล้ว

      I have no idea what PLC is. Sorry. I could not find any board to see and learn it.

    • @megamanwins
      @megamanwins 2 ปีที่แล้ว

      @@robojax PLC stands for Programmable Logic Control. I have Siemens S7-300 and Allen bradley SLC 500. I want to integrate to them and act as external board.

    • @robojax
      @robojax  2 ปีที่แล้ว

      I searched eBay and AliExpress and could not find one single board that is famous to purchase and work on it. What is the most common board so I start with that?

  • @Wojtkingson
    @Wojtkingson 3 ปีที่แล้ว

    Be careful inputs of this PCB ARE NOT galvanically isolated - when you need to connect grounds together, there is no isolation...

  • @rockentertainment7979
    @rockentertainment7979 4 ปีที่แล้ว

    Which type of relay sir this

    • @robojax
      @robojax  4 ปีที่แล้ว

      If you watch the video you will see I mentioned it is 5V relay.

    • @rockentertainment7979
      @rockentertainment7979 4 ปีที่แล้ว

      Types bro electromagnetic relay or solid state relay

    • @rockentertainment7979
      @rockentertainment7979 4 ปีที่แล้ว

      Kindly answer brother

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      When we say "relay" it is just relay which clicks, otherwise we say "Solid State Relay" which I have videos on that. We don't mention "electromagnetic" when referring to relay.

  • @satya_9001
    @satya_9001 2 ปีที่แล้ว

    I want program for working

    • @satya_9001
      @satya_9001 2 ปีที่แล้ว

      Plz share the link of program

    • @robojax
      @robojax  2 ปีที่แล้ว

      you must have skipped the video. I mentioned it in the first minuet of the video.

  • @technologieprofessionnel3598
    @technologieprofessionnel3598 4 ปีที่แล้ว

    Abonner sur technologie professionnel merci

    • @robojax
      @robojax  4 ปีที่แล้ว

      😊

  • @slinegt
    @slinegt 4 ปีที่แล้ว

    Hello, I was looking for something like that.
    I want to use that for stair lighting. Now I would have to control the whole 2 Pir motion detectors (HC-SR501). Is that possible? When I stand at the bottom of the stairs, the light goes up and off gradually and when I stand up, the lighting goes down and off gradually. Can you help me integrate the code for the sensors?
    Thanks a lot
    Here is an example: th-cam.com/video/est3rrd2IUA/w-d-xo.html

    • @robojax
      @robojax  4 ปีที่แล้ว

      Hello, finally I got a change to reply. I watched the video. Yes possible. You will need a sensor on each step so the light will turn ON only when obstacle or human is detected. it would be very easy.

  • @nicholashassanali1243
    @nicholashassanali1243 4 ปีที่แล้ว

    Do u have an email

    • @robojax
      @robojax  4 ปีที่แล้ว

      yes I do but have got no time. This is where i come once or twice a day to replay to comments. BTW: when you click on the channel logo, you will go to main channel page and there is a link "About" and my email is there.

  • @milansahoovlogsodishatoka1440
    @milansahoovlogsodishatoka1440 ปีที่แล้ว

    Your explain isn't so dirty not showing this wearing what is this joking

    • @robojax
      @robojax  ปีที่แล้ว

      If you jump and not watch the video , it it becomes difficult to understand it. Watch fully yo learn.

  • @dickwhittington7321
    @dickwhittington7321 ปีที่แล้ว

    I just checked out the 16 relay module on Amazon UK and the photos show the module is missing the tall capacitor and a few more components on the power side.
    The regulator also looks different to the regulator on your board.
    I just wondered if its an updated board or an older board?

    • @robojax
      @robojax  ปีที่แล้ว

      The capacitors are good to keep the voltage stable when all relays or bunch of them turned on. Some guys produces them with caps to save few cents.

    • @robojax
      @robojax  ปีที่แล้ว

      Search my channel as there is another video explaining the issue with the module. Or check the links in description

  • @robertrobert5583
    @robertrobert5583 4 ปีที่แล้ว +1

    A really excellent tutorial. Thank you so much for posting this.

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      You're very welcome! The best thank you for me is to not skipping ads and Subscribing 🔔 to my channel, and clinking 👍 the video. It is greatly appreciated. 🔔 😊.
      I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .

  • @ygreq
    @ygreq 4 ปีที่แล้ว

    Very, very informative video!

    • @robojax
      @robojax  4 ปีที่แล้ว

      Thank you. I am glad you found it useful.