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.😊 .
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?
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 ruclips.net/user/robojaxTVsearch?query=timer
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.
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?
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
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
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.
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
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.
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 .
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 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?
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.
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?
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.
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?
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 ruclips.net/video/mHPqxctmJrs/видео.html
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 ruclips.net/video/pLvqh57T3s4/видео.html which explains and gives example for pins and all other details
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.
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
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!
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?
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?
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 ruclips.net/video/mHPqxctmJrs/видео.html
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 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!!
for Normally Open or Normally close, you just connect to different to the module you can learn about that in this video: ruclips.net/video/58XWVDnB7Ss/видео.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.
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 😉
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
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.
you maid me watch the video and the I have explaiend it at that timestamp. Ground always to the ground. this module has voltage issued. see the video in separate video ruclips.net/video/Q9aBI4ELKC4/видео.html
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.
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.
The only way to make it programmable, you should use Arduino or ESP32 with LCD yes. I have so many videos on LCD and tones of video on programming. check them out.
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.
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 ruclips.net/video/lQL6dfL_rsg/видео.html search my channel and you will find more
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 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)?
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 ruclips.net/video/OhkUceBWcHs/видео.html and here is the video you are looking for ruclips.net/video/mHPqxctmJrs/видео.html
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 ruclips.net/video/lQL6dfL_rsg/видео.html
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?
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
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.
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 ruclips.net/video/_giGPBS_WAo/видео.html and connect them in parallel.
@@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.
𝙃𝙞, 𝙍𝙚𝙨𝙥𝙚𝙘𝙩𝙚𝙙 𝙎𝙞𝙧, 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
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 ruclips.net/user/robojaxTVsearch?query=16+channel
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.
You are welcome. There are 1000s of items. You better check my videos and find something that you want. I have over 280 videos ruclips.net/user/robojaxTVvideos
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?
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.
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
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
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.
@@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 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
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 RUclips Video in a channel bit.ly/findRUclipsVideo just search my channel for the video
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.
@@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.
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?
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.😅
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.
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.
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).
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.
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: ruclips.net/video/est3rrd2IUA/видео.html
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.
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.
@@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.
The explanation about the board is better than any other thing you can find online! Thank you!
Thank you very much for explaining the 5V and GND connection with arduino. I was so confused with the common ground problem.
Glad it helped
Thank you very much for this excellent tutorial and video.
I can watch the relays on and off all day.
Yes LOL.
Iam watching your video from India your explanation is very nice 👍
You are welcome. Here is Arduino Step by Step course worth $200 on Udemy, for free starts here ruclips.net/video/-6qSrDUA5a8/видео.html
Thank you for the explanation! You saved me! :)
You are welcome!
thank you so much you saved my life with that one
Excellent Explanation in RUclips... So far on this topic
You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
Iam watching your video from India
A really excellent tutorial. Thank you so much for posting this.
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.😊 .
I could sleep with the sound of this relays
Very good stuff, great explanation and production values, thanks a lot for sharing!
You are welcome.
Amzing video
Very nice
thank you.
Thank you very much Sir for the informative video tutorial. Helps a lot.
You are welcome.
Thank you for making this
My pleasure!
Very clear explanation! Thank you.
You are welcome.
Brother which type of relay is this
Solid state relay A or type of relay
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?
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 ruclips.net/user/robojaxTVsearch?query=timer
you should do this 16 relay board being controlled by Arduino and the Nextion Touch Screen with 16 digital buttons :)
Interesting. I will try to get that screen.
Very, very informative video!
:)
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.
You are very welcome. I am pleased be helpful. I appreciate your comment, like and subscription.
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?
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
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
@@robojax thank you again. I'm going to try it. in the future I'll keep more attention
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.
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
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.
Yes you could. I might have a video on that. But Uno is the most common board.
can i use a bluetooth module to control the 16 channel relay module?
Yes of course. I have explained how each relay is controlled. Simply send the that command via Bluetooth
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 .
you are welcome. I utilised Anolog (A0, A1, ...) ports to make it work. Other methods are coming soon.
@@robojax I will wait for the videos soon. Thanks so much😉
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).
if you don't change the code, it will work. first trying it without changing and then modify it if you want.
@@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?
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.
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?
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.
very good. thank you
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?
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 ruclips.net/video/mHPqxctmJrs/видео.html
How could I manipulate the code to have more than one relay turn on at the same time?
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.
and how would one map pins for this board with esp 8266 connected? home assistant integration
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 ruclips.net/video/pLvqh57T3s4/видео.html which explains and gives example for pins and all other details
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?
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.
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
please see the provided link in the description and watch that video.
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!
Arduino MEGA has enough pins and you can control it.
Very well explaned
Thank you.
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?
Arduino can do almost anything. it depends how you use it and where.
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?
I've seen a few videos and wiring diagram where they hooked up the 5volt from relay board to 5volt on arduino.
Good to know. thanks.l
I was asking if this is correct?
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 ruclips.net/video/mHPqxctmJrs/видео.html
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?
Hi, Yes absolutely this work for that.
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!!
for Normally Open or Normally close, you just connect to different to the module you can learn about that in this video: ruclips.net/video/58XWVDnB7Ss/видео.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.
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 😉
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?
@@robojax I use them through the Blynk app, if possible.
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
@@ernsthaeckel5276 send an email to my address: dlamattina@mail.ru
brother for stair led 12v how to simple 16 channel relay
You need to have sensor on each step to detect a foot and turn the light on.
@@robojax thank you yes
Great video, do you know of a similar 16-Channel Relay that can supply 24VDC with a 24VDC input? Thanks
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.
Could it be use for lights of motorcycle and safe? And can 12v use to trigger each relay? Thanks.
yes you can can.
Great video
Thank you.
What happens if you exceed 10A per relay. Does it burn down or are they fused somehow?
I think I have mentioned it. it will burn and cause fire.
Why do I need to connect the ground to the VIN? Can I use ground to ground? 13:14
you maid me watch the video and the I have explaiend it at that timestamp. Ground always to the ground. this module has voltage issued. see the video in separate video ruclips.net/video/Q9aBI4ELKC4/видео.html
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.
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.
CAN YOU ADD LCD AND BUTTON TO MAKE IT RE-PROGRAMMABLE ?
The only way to make it programmable, you should use Arduino or ESP32 with LCD yes. I have so many videos on LCD and tones of video on programming. check them out.
Which one can help me achieve this, please can you recommend one for me ?
both are the same. I have courses. look at the playlist. the first lesson tells you what can do with each.
Why is it necessary to connect GND to arduino when the power supply GND is already connected?
Power supply and Arduino and any other device must have common in order to work together.
Great work. Could I use this to control 12-24 volt equipment in vehicles?
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.
How much ampere do we need for 12volt 16 relay model
each relay needs 50mA so 50mAx16=?, then the module need 50mA. do the math.
I'm wondering how to have 32 relays controlled by one Arduino. How would you do it?
Very simple. Use are rArduino Mrga which has more than 50 digital pins and use the same code
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.
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 ruclips.net/video/lQL6dfL_rsg/видео.html search my channel and you will find more
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)?
yes they can be controlled. But the power must be 5V.
@@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)?
Is there anyway to output 12v instead of 5v
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 ruclips.net/video/OhkUceBWcHs/видео.html and here is the video you are looking for ruclips.net/video/mHPqxctmJrs/видео.html
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?
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 ruclips.net/video/lQL6dfL_rsg/видео.html
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?
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
@@robojax actually just reverse the digitalWrite (controlPin i from HIGH to LOW and LOW to HIGH
Can i use 5v relay for 24v DC motor control?
Watch this video ruclips.net/video/58XWVDnB7Ss/видео.html so you know about it before coming to 16 channel.
Hello there can we synchronise the relay with music..by any chance
you can do it if you use sound module to detect sound level and turn on relays with sound level.
@@robojax sir can u please do a video on this ..I have just ordered my first aurdino need to learn
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.
You are welcome. I will make that video God willing. it would be using ESP32 and ESP8266
@@robojax That would be much appreciated. Thank you again.
you are welcome.
Good day sir! Is it possible to control 1 AC with 2 relays only?
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 ruclips.net/video/_giGPBS_WAo/видео.html and connect them in parallel.
@@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.
𝙃𝙞, 𝙍𝙚𝙨𝙥𝙚𝙘𝙩𝙚𝙙 𝙎𝙞𝙧, 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
Is there any way to use this as a serial device? It takes too many pins. For my project.
here another video related to this with just 4 wires ruclips.net/video/Q9aBI4ELKC4/видео.html
@@robojax Thanks for the reply. I think you sent the incorrect link, as it just directs me to this video.
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 ruclips.net/user/robojaxTVsearch?query=16+channel
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.
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.
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
This is general question. Not about the video
Thank you for informing about relay and I want information about arduino sensors kit available on Amazon can you give me information ?
You are welcome. There are 1000s of items. You better check my videos and find something that you want. I have over 280 videos ruclips.net/user/robojaxTVvideos
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?
commented on the "Fixing" video.
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?
As you highlighted relay voltage issue at 06:47 .
Can i use mobile phone charger to solve this issue?
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.
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.
it possible to add 16 channel relay again in single board? so the channel relay will be 32?
yes it is possible. if you have Arduino Mega with more pins, yes you can use it.
@@robojax Arduino Mega 2560 Rev3?
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
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
Which application is used to control this project...
You see this video ruclips.net/video/Mbb2xa1WcRM/видео.html
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
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.
@@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...
It seems you have not check the link and page .
@@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
You fist visit the page where the code is, you will see it there
Please add ultrasonic sensor 2x and please share circuit diagram add codes. For staircase
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 RUclips Video in a channel bit.ly/findRUclipsVideo just search my channel for the video
Be careful inputs of this PCB ARE NOT galvanically isolated - when you need to connect grounds together, there is no isolation...
I need website to purchase arduino/ switches/ wiring. CODE/ pumps (8) sensors (8). I am disabled and need AUTOMATED PLANT OUTDOOR AND INDOOR WATERING.
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.
Thanks Sir
beginning automations
You are welcome.
How can I control this relay module via PLC?
I have no idea what PLC is. Sorry. I could not find any board to see and learn it.
@@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.
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?
Can I add 16 sensors to this build?
if your Arduino board has input for the sensors, yes. Arduino Uno has no more pins left. Arduino mega does.
Sir, I have a question? Can I use the 32 really?
This code works l with any boards
thank you
you are welcome.
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.😅
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.
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?
You can use the code in this video: ruclips.net/video/3EZecphNdAI/видео.html
Which type of relay sir this
If you watch the video you will see I mentioned it is 5V relay.
Types bro electromagnetic relay or solid state relay
Kindly answer brother
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.
whats the point of the relays being on a pcb if you still have to use so many pins on the arduino?
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).
I want program for working
Plz share the link of program
you must have skipped the video. I mentioned it in the first minuet of the video.
Do u have an email
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.
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: ruclips.net/video/est3rrd2IUA/видео.html
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.
Your explain isn't so dirty not showing this wearing what is this joking
If you jump and not watch the video , it it becomes difficult to understand it. Watch fully yo learn.
Abonner sur technologie professionnel merci
😊
A really excellent tutorial. Thank you so much for posting this.
Very, very informative video!
Thank you. I am glad you found it useful.
Can I use a 12v 30a power supply with this? 10a 30v dc, 10a 250v ac. will it break?
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.
@@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.