hello thanks for the detailed explanation in the video. however I have a question to ask, what external source can I connect the jdvcc to? a battery?what are the options
like others have said , best tutorial I've seen on using these relay modules. i also have this model as well as a few more complex boards with timers, delays etc. Brad I wish to use this Relay without a controller , just using 12v from an led driver, to trigger relay. can you tell me which ins id use to do this pretty please dude? serious lack of info from manufacturers and on net in general. thanks alex
if I have 12v/150ma triggering rail (2 rail only) , how do I activate the relay? should I connect the negative rail to both IN and GRD, and the positive rail to the VCC/JDCC ?? please advice
Why do you need two transistors? Why couldn't you connect the relay along with the diode between the JD-VCC and the collector of the the opto-isolator transistor and have the emitter of that go to ground?
Great question. In this module the opto-isolator isn't designed to carry the current required to activate the relay, so it is instead used to drive the transistor. With that being said, there are isolators that can carry more current and it is of course possible to build a circuit to do what you mentioned.
hey i used a basic relay on off code to check if its working so its finally working.. connection were as jdvcc and ground from external and vcc,grd, vin from arduino . This actually worked. But when i used everything same in my project then the relay is not working . same connection as in previous one but when i connect grp to arduino the led goes off and when i disconnect it is on again. So now what should i do.what should my connection be. i even tried but jumpinng vcc and jdvcc but even that didnt work. the is working but not in my project. it only works on basic program . please let me know the proper connections.
When troubleshooting a problem like that I would double check voltages. Make sure you are getting the expected voltages between JDVCC and GND, then check the voltage between VCC and IN1. If you are connecting the relay for use with an external power supply, using JDVCC, then you shouldn't have to connect the Arduino GND. In this type of set up the IN1 pin acts as the GND for the VCC from the Arduino. The idea is when IN1 pin is high, the voltage potential is the same as VCC, so the relay is not activated. When IN1 pin is low, the voltage potential between the pin and VCC is 5 volts which activates the opto-isolator and ultimately the relay.
@@bradfordhenson huge respect for yur reply bro. Now the issue is like relay is working and I am finally done with my project but the relay was wired . When I set low it went high and vice versa. Why so?
@@vp.8181 When the Arduino pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow logically from VCC to IN0. In this case IN0 is the lower "negative" side of the circuit. It is safe to source current like this up to 40 mA on an Arduino pin. The effect is that the Arduino pin has to be low for current to flow and activate the opto-isolator. If the Arduino pin connected to IN0 is High, then the voltage potential between VCC and IN0 is the same, which does not allow the opto-isolator to turn on. This is why when the Arduino pin is High the relay is off and when the Arduino pin is low the relay is on.
There technically is a max distance, but it would depend on what kind of wire you are using to hook the Arduino up to the relay. The longer the wire, the more resistance there is. You have to account for the voltage drop of the wire, due to resistance, when you start getting to really long wire lengths.
HI everybody, I need to do a stroboscop with LED bands so I copy exactly all the connections (2nde exemple shown) , I just used a 12V battery to aliment the LEDs but they stay switch on instead of alternate between on/off, the led on the relay do the on/off delay I've code however, I don't understand... Somebody to help me ? ( sorry for my frenchy english ) Nice video ! The only one I've totally understood
When the pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow. That is what activates the opto-isolator and ultimately there is enough voltage present on the transistor's gate to turn the transistor on. In this case we are using the output pin to sink current (it is safe to do this up about 40 mA). Anymore current then 40 mA and you run a serious risk of damaging the pin on the Atmega chip.
Just Awesome! Thank you so much. Very Descriptive and Academic. I have a request please. Would you be kind and make a tutorial video on how to connect an AC well water pump to a relay? If you could also advise on the correct pump start relay spec to purchase please. I plan to control my pump for the house from my cell phone using my Arduino UNO and a WiFi sheild. AC Well Pump Specs (India): -> 240 V -> 50 Hz -> 1.5 HP -> 6.6 A -> 2800 rev/min -> HEAD: 30 Feet If there is anything else you would need to know, kindly let me know. Eagerly awaiting your reply. Thanks & Best regards, Philip
Unfortunately, I wont be able to make a specific video on how to do this. However, there are a lot of videos out there that explain how to configure an arduino for that type of operation, and as far as the pump in concerned you only have to splice in a relay on one leg of the input power. Good luck with your project.
The light is connected to a standard two prong power cable which is plugged into a wall outlet. The relay is effectively spliced into the "hot" wire connection.
You are a great teacher, this video is 9 years old but for me it is fresh, just like you were standing there. Thank you.
This is the best relay tutorial I have seen.
I appreciate that. Thanks for watching.
That's exactly what I was looking for. Thanks Brad
Thanks, great explanation on the difference between JDVcc and Vcc pros and cons to use a jumper connector
best relay tutorial on connection signal
Thank u from algeria, the best relay tutorial ever I seen.
Thank you very much
Just stumbled on this looking for info on how to wire up a traffic light, thanks for the great explanation!
It really helped me a lot better understand the concept of relays
Nice job and thanks a million
Hands down the best relay presentation and explaintion for arduino and relay control.
Thanks a lot.
I loved to the way u taught. ❤️❤️❤️ U kept it very simple to understand. Thanks.
Thank you
Good explanation, Brad. Thank you.
Best explanation I've seen
You made a very good tutorial. Thank you.
Very good detailed explanation about relays ❤ thank you
By far the best explanation i've seen. Thanks!! :)
Thank you.
Your tutorial was very enlightening and helpful to me. Thank you very much.
Thanks for the video and the explanations.
everything is explained very well
good job 👍
Perfectly explained, thank you so much
Great explanation!
Thanks a lot. You helped me understand the concept...
Nicely Explaind. Thank you 👍
Well done buddy, really informative
hello thanks for the detailed explanation in the video. however I have a question to ask, what external source can I connect the jdvcc to? a battery?what are the options
Great work... I like the deep dive explanation. Awesome job.
like others have said , best tutorial I've seen on using these relay modules. i also have this model as well as a few more complex boards with timers, delays etc. Brad I wish to use this Relay without a controller , just using 12v from an led driver, to trigger relay. can you tell me which ins id use to do this pretty please dude? serious lack of info from manufacturers and on net in general. thanks alex
Don't use 12v on these 5v relays.
Verry usefull, Thank you!
Thank you, I have a question if I have a single relay module and external power supply. How should I connect it?
Very nice. Done in language that I could understand
Thank you...very helpful, liked and subbed
sir i have relay module 30A 250VAC/30VDC how many watts my relay can hold? thank you sir
Make video on 12 v & 24 v relay with Arduino
Great Stuff. Thanks.
Well done! I LOVE IT.
Thank you
if I have 12v/150ma triggering rail (2 rail only) , how do I activate the relay? should I connect the negative rail to both IN and GRD, and the positive rail to the VCC/JDCC ?? please advice
Excellent sir
Thanks
Why do you need two transistors? Why couldn't you connect the relay along with the diode between the JD-VCC and the collector of the the opto-isolator transistor and have the emitter of that go to ground?
Great question. In this module the opto-isolator isn't designed to carry the current required to activate the relay, so it is instead used to drive the transistor. With that being said, there are isolators that can carry more current and it is of course possible to build a circuit to do what you mentioned.
hey i used a basic relay on off code to check if its working so its finally working.. connection were as jdvcc and ground from external and vcc,grd, vin from arduino . This actually worked. But when i used everything same in my project then the relay is not working . same connection as in previous one but when i connect grp to arduino the led goes off and when i disconnect it is on again. So now what should i do.what should my connection be. i even tried but jumpinng vcc and jdvcc but even that didnt work. the is working but not in my project. it only works on basic program . please let me know the proper connections.
When troubleshooting a problem like that I would double check voltages. Make sure you are getting the expected voltages between JDVCC and GND, then check the voltage between VCC and IN1. If you are connecting the relay for use with an external power supply, using JDVCC, then you shouldn't have to connect the Arduino GND. In this type of set up the IN1 pin acts as the GND for the VCC from the Arduino. The idea is when IN1 pin is high, the voltage potential is the same as VCC, so the relay is not activated. When IN1 pin is low, the voltage potential between the pin and VCC is 5 volts which activates the opto-isolator and ultimately the relay.
@@bradfordhenson huge respect for yur reply bro. Now the issue is like relay is working and I am finally done with my project but the relay was wired . When I set low it went high and vice versa. Why so?
@@vp.8181 When the Arduino pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow logically from VCC to IN0. In this case IN0 is the lower "negative" side of the circuit. It is safe to source current like this up to 40 mA on an Arduino pin. The effect is that the Arduino pin has to be low for current to flow and activate the opto-isolator. If the Arduino pin connected to IN0 is High, then the voltage potential between VCC and IN0 is the same, which does not allow the opto-isolator to turn on. This is why when the Arduino pin is High the relay is off and when the Arduino pin is low the relay is on.
Is there a max distance between Your arduino and the Relay module
There technically is a max distance, but it would depend on what kind of wire you are using to hook the Arduino up to the relay. The longer the wire, the more resistance there is. You have to account for the voltage drop of the wire, due to resistance, when you start getting to really long wire lengths.
HI everybody, I need to do a stroboscop with LED bands so I copy exactly all the connections (2nde exemple shown) , I just used a 12V battery to aliment the LEDs but they stay switch on instead of alternate between on/off, the led on the relay do the on/off delay I've code however, I don't understand...
Somebody to help me ? ( sorry for my frenchy english )
Nice video ! The only one I've totally understood
I'm confused with ext supply no common ground for arduino board, or does the pin output going low obviate the need.
Anyone know??
When the pin goes low, the voltage difference between VCC and IN0 allows a little bit of current to flow. That is what activates the opto-isolator and ultimately there is enough voltage present on the transistor's gate to turn the transistor on. In this case we are using the output pin to sink current (it is safe to do this up about 40 mA). Anymore current then 40 mA and you run a serious risk of damaging the pin on the Atmega chip.
Just Awesome!
Thank you so much.
Very Descriptive and Academic.
I have a request please.
Would you be kind and make a tutorial video on how to connect an AC well water pump to a relay?
If you could also advise on the correct pump start relay spec to purchase please.
I plan to control my pump for the house from my cell phone using my Arduino UNO and a WiFi sheild.
AC Well Pump Specs (India):
-> 240 V
-> 50 Hz
-> 1.5 HP
-> 6.6 A
-> 2800 rev/min
-> HEAD: 30 Feet
If there is anything else you would need to know, kindly let me know.
Eagerly awaiting your reply.
Thanks & Best regards,
Philip
Unfortunately, I wont be able to make a specific video on how to do this. However, there are a lot of videos out there that explain how to configure an arduino for that type of operation, and as far as the pump in concerned you only have to splice in a relay on one leg of the input power. Good luck with your project.
Thanks Brad.
Any information I can get is worth it.
Yes, I need to complete this and many such mini projects for my home.
nice video
Genius
Take my sub!
The thing that i dont understand is how the light is connected..
The light is connected to a standard two prong power cable which is plugged into a wall outlet. The relay is effectively spliced into the "hot" wire connection.