Arduino Basics - Relays

  Рет қаралды 139,991

Electro-Anarchy

Electro-Anarchy

Күн бұрын

Arduino and relay. A look at how to get them to work.

Пікірлер: 110
@alexlloyd2147
@alexlloyd2147 3 жыл бұрын
Finally someone who knows the topic and how to get it across without all the noise.
@arthurrae7904
@arthurrae7904 4 жыл бұрын
I am an L plate for Arduino. I found your tutorial easy to follow. May I suggest redoing it for two relays, as this would provide additional naming information, which would be easy to extrapolate to 4 or 8 relays. A huge thank you for considering this suggestion, Arthur
@justbanter8727
@justbanter8727 5 жыл бұрын
just what I needed thanks :) - very useful info I never knew that relays were more often, and appropriately, activated thru/via the negative wire rather than the positive.
@whitneydesignlabs8738
@whitneydesignlabs8738 4 жыл бұрын
Excellent tutorial. Plain simple and works. Thanks.
@salahnahouri417
@salahnahouri417 7 жыл бұрын
cheers mate , you helped me a lot for my project
@emceha
@emceha 5 жыл бұрын
That music is waay to dramatic lol
@avvimane3130
@avvimane3130 4 жыл бұрын
Thanks buddy. That helped me setup my solenoid valve. I can now apply same for any application
@Shibu11229
@Shibu11229 Жыл бұрын
Thank you for posting this. I would love to see a follow up video with the Arduino controlling a relay based on input to the Arduino. In other words if I press one button the relay would be activated for one second. II press a second button the relay would be activated for 10 seconds and if I press a third button the relay would stay activated unless a separate signal told Relay to shut off. I am trying to control an AC motor that will raise a platform to various heights.
@miguelraulgonzalez7744
@miguelraulgonzalez7744 3 жыл бұрын
Beautiful, would suggest to isolate the relay from Arduino. You can do that powering the relay's coil with his own power source and avoid using the 5V output from the Arduino board when dealing with AC high voltage.
@adolphin6041
@adolphin6041 5 ай бұрын
i was trying to open a door with the relay using 12v and 5v connected to arduino's pin 5v. when i opened the door many times the arduino was desconnecting himself from the computer serial port, so u are right
@fp30e
@fp30e 3 жыл бұрын
I tried this with 2 different relays and it did not work. My sketch ws perfect and uploaded. I give up trying now and will put Arduino in the back of the cupboard. Great video and so well presented. Thx U.
@jackwelch480
@jackwelch480 2 жыл бұрын
I really enjoyed that video . Thanks
@spyynz
@spyynz Жыл бұрын
awesome showcase
@duuws
@duuws 5 жыл бұрын
Helped me a lot, thank you!
@chetankadam
@chetankadam 6 жыл бұрын
As a beginner this video is very helpful to me.....
@PupuTheMonkey
@PupuTheMonkey 6 жыл бұрын
Thank you for making this so easy to understand.
@danterusso6354
@danterusso6354 6 жыл бұрын
Very vice video, sir. It may seem obscure,...but, I like the music in the background. So many tutorials either have nothing for ambient sound - or play some obnoxious drudge that makes me cringe. Well done.
@Enoch_The_Gent
@Enoch_The_Gent Жыл бұрын
Can you add an external power source to that 2 channel relay? So let's say you connect the 5v to Arduino then add an external Power source for another sensor or motor to the relay?
@mowtown75
@mowtown75 Жыл бұрын
L plater here as well, why is Low sent? I thought it required High (5v or so) to actuate the relay? Took me a while to figure out what was wrong with mine. Thanks and great Tute.
@dani-uf1eo
@dani-uf1eo 7 жыл бұрын
Lol, whats with the skyrim horse?
@aqshay
@aqshay 4 жыл бұрын
lmao
@iandawkins2182
@iandawkins2182 5 жыл бұрын
Nice, simple, informative. Learnt a lot.
@dwaynedelain4326
@dwaynedelain4326 3 жыл бұрын
Helped on my project. Thanks
@dg3083
@dg3083 4 жыл бұрын
Excelent video! very well explained! Thank you for sharing
@deedubbs4412
@deedubbs4412 6 жыл бұрын
Volume leveling. Damn man why do you blare metal 60dB over the average volume level? Relaxing then BAMABABABABABABABAM
@jessepoole106
@jessepoole106 3 жыл бұрын
I thought a similar thing about the low background music throughout the video, namely why even have it at all. I'm always amazed at how clearly intelligent and knowledgeable people can fail to grasp simple concepts at times. I mean, have you ever attended a college class where the instructor had random music playing in the background while they gave a lecture? NOPE. Why not? Because it's distracting and frickin' pointless.
@KyPalmo
@KyPalmo 4 жыл бұрын
Exactly what i needed to see thank you.
@swedemake5571
@swedemake5571 2 жыл бұрын
Thanks for a very great video.
@yusufabdalla1106
@yusufabdalla1106 3 жыл бұрын
thank you for being great!!!
@JohnBaxterWalker
@JohnBaxterWalker 4 жыл бұрын
Very helpful thank you. Made the LOW active understandable. Logic told me that I should use HIGH to switch it on and caused me a lot of confusion at first. Could do without music though - otherwise excellent.
@doctari1061
@doctari1061 6 жыл бұрын
Great. Thanks. Just what I was looking for.
@kennyn.8233
@kennyn.8233 4 жыл бұрын
Great work. Thanks for sharing
@satalaj
@satalaj 4 жыл бұрын
Yes like it and I don't see anyway to thumbs down
@rovelynmaesanchez4690
@rovelynmaesanchez4690 7 жыл бұрын
Thank you so much for this.
@msindisimtengwane9456
@msindisimtengwane9456 5 жыл бұрын
Thank you so much man. This was a really helpful video.
@oliverdeleon4417
@oliverdeleon4417 6 жыл бұрын
Can you control the relay with an IR control so you can utilized a 12 v led ? If so... would you be able to show how specially when writing the code.
@DirtNerds
@DirtNerds 5 жыл бұрын
how would you program a button to fire the code and keep the relay latched, tap button again and end code
@yecarri
@yecarri 5 жыл бұрын
Why didn't you use a diode to prevent back current produced by the coil in the relay to damage your controller?
@hanuor5790
@hanuor5790 5 жыл бұрын
Yes,this hapen to me,with starter lamp,my lcd display goes crazy,back current short my arduino,no problem use with led lamp but long term will kill my arduino..but how to add diode to relay?
@JohnBaxterWalker
@JohnBaxterWalker 4 жыл бұрын
My 4 gang board has diodes factory fitted.
@kylehofmeister6906
@kylehofmeister6906 6 жыл бұрын
Very cool! Thanks
@captainprototype187
@captainprototype187 5 жыл бұрын
I like it. So the main function of a relay is to protect the arduino against to much current. But doesnt the motor that is not connected yet need protection too? I presume you can do that with the same relay?
@cticer
@cticer 4 жыл бұрын
I think the function of a relay is more to allow switching high current applications on and off via a low voltage power source, such as an arduino. Its not to protect the arduino, directly, thought i guess you could say it does that as well.
@bih8293
@bih8293 4 жыл бұрын
Super Helpful
@thelastcitidel762
@thelastcitidel762 6 жыл бұрын
Nice thanks for explaining it. I'm new to arduino and i was wondering if you could give advice on controlling two separate motors with a duel relay board. Thanks!
@jamespruett27
@jamespruett27 4 жыл бұрын
i want 10 relays, low power, cheap. Any thoughts? Thanks for posting
@babukandula6591
@babukandula6591 6 жыл бұрын
Hello sir, really appreciate your explanation. Thanks for the video I have a question, so if I want to add a load to the relay, lets a lamp and what to turn it off and by the program how can we do this. Not sure if the power supply you gave from the system 5v is sufficient for it. If not I hope we need some external supply say 110v or so. If so how can we do that. Any video you have on how to do it using the same relay you just used. Your help is much appreciated. Thanks
@williamjr2192
@williamjr2192 6 жыл бұрын
excellent explanation
@davidcarpenter4311
@davidcarpenter4311 2 жыл бұрын
I’m working with an NE555 adjustable timer switch. I have an eight AA battery pack witn an on off switch that goes through the triple five and feeds a push pull solenoid. when I turn the power on it initiates the solenoid so it fires once and it shuts off . What I want is to put power to it and instead of having to adjust a delay take the delay completely out of it but I need to ensure that there is no power after the initial fire to the solenoid without a reset. Any help would be wonderful.
@desafa5420
@desafa5420 3 жыл бұрын
Nice video sir, but how to connect Relay 5V 2 channel to a Arduino + Ir module. To connect a bulb that will light up if the ir sensor detects an object. Please sir help me
@badeshka1
@badeshka1 4 жыл бұрын
You said that such high speeds will "burn out the relay". What speeds would be considered safe? I want to control a 12v LED and make it strobe.
@gusswilder6418
@gusswilder6418 4 жыл бұрын
The relay switch is mechanical and will wear out soon with that kind of use. Instead, use a MOSFET module.
@jfree99
@jfree99 6 жыл бұрын
nice video... so educate
@mcdjacedad7359
@mcdjacedad7359 4 жыл бұрын
hi mate i seen the green jack melt, i was think to use my arduino uno to use it to switch the light on and off, what wifi adapter do i need to opreate on my iphone please, i have seen other videos on this, but i have seen some right bouge Jobs, just want to get it right, any advise please
@guitar_noodle
@guitar_noodle 7 жыл бұрын
How would you wire Bluetooth, arduino to start up a motorcycle. The starter solenoid relay is 30A
@calebrinker9607
@calebrinker9607 6 жыл бұрын
LOW on the Arduino means turns off then HIGH means on
@teabagNBG
@teabagNBG 6 жыл бұрын
im new to this... what is the diffrence between a level shifter and a relay? isnt a level shifter also convertos the signals from 3,3 to 5v? or are realys for power only?
@Carlo-or3jx
@Carlo-or3jx 6 жыл бұрын
Thank thats help me a lot
@josejulio7104
@josejulio7104 5 жыл бұрын
How should I get a motorized valve to react on smoke detector allarm signal
@frankiefrank4853
@frankiefrank4853 6 жыл бұрын
I don't understand why 3 conductors when a relay has 2 states... on and off.. power applied and power retracted. Am I looking at this incorrect ?
@RobiBue
@RobiBue 4 жыл бұрын
Frankie , I know, years... anyway, on the “input/control” side, the board might need power for other components, like LED, or other ICs, so you need the god and (lets say) 5v power, and then the third contact, when pulled high (5v) to switch the relay. Now on the “output” side, you have the NO (normally open), the common, and the NC (normally closed) contacts to decide if you want the relay to be open when unpowered or closed. That would give you 3 conductors for “in” and 3 conductors for “out”. HTH
@JamesPerez328
@JamesPerez328 7 жыл бұрын
Question, @Electro-Anarchy, you said that the relay is turning ON then OFF, but your code was LOW then HIGH. Did you mean OFF then ON, or is the relay turned ON when it is LOW?
@dmitrys.4741
@dmitrys.4741 4 жыл бұрын
Yes, for some reason beyond my understanding these relays turned on by the LOW signal. But I guess you have figured it out by yourself by now :)
@alexlloyd2147
@alexlloyd2147 3 жыл бұрын
@@dmitrys.4741 These reelays are usually driven by transistor built onto the board. By apply a low to the transistor, you allow it to turn on and pass current to tthe relay coil energizing it allowing you motor or other load to run.
@epieepede5222
@epieepede5222 2 жыл бұрын
I like it
@matthewdejesus1761
@matthewdejesus1761 Жыл бұрын
can i put it up to 10 mins?
@markvreeken
@markvreeken 4 жыл бұрын
Sorry but switching the neutral/ground is NOT best practice. It leaves the device being switched at mains/supply potential. If you have an earth fault(disconnected) or just plain forget to isolate you risk getting a potentially lethal shock.
@sergio5440
@sergio5440 7 жыл бұрын
i only learned how to start coding yesterday but want to ask... when writing digitalWrite(relayPin, LOW) does it switch it on and when HIGH it will switch off?
@Clip7heApex
@Clip7heApex 7 жыл бұрын
Yes. The 5v relays you generally find on ebay have the trigger(IN1) function when connected to ground. For example they don't trigger by firing 5v into them from the output pin. If the output pin on Arduino is set to low it is at ground potential so allows the 5v vcc on the relay to flow to ground. When set to high it is at 5v so no potential difference and the relay is off. It confused me for a while until I realised this.
@sadraxis
@sadraxis 7 жыл бұрын
Thx :) i helped me a lot :)
@relaymatik5984
@relaymatik5984 5 жыл бұрын
Is that ok for other arduino
@epieepede5222
@epieepede5222 2 жыл бұрын
Trying to repeat the step but it’s more than me specially the code
@DeepeshSingh16
@DeepeshSingh16 7 жыл бұрын
I have one question and not getting answer any were. Suppose I have one raspberry pi 3 and I have made one room wiresless with the raspberry pi3 and realy module easily since it was in that room itself. Now I want to make my another room wireless as well but the problem I am facing That Bringing all the wires from another room to raspberry pi room that wires will cost a lot. How to handle this ?? Should I have to but another relay module and install in room and send the wires to raspberry pi . Please guide me how to solve this problem I have 4 rooms 2 flour house Thank you very much
@wallghing
@wallghing 6 жыл бұрын
Use arduinos to control the relays, have them talk wirelessly with a nrf24l01 to the raspberry pi and have the raspberry pi run the whole show
@yoramstein
@yoramstein 6 жыл бұрын
What was the third (last) Arduino board at 0:33 you show ? You wave with it in an "anarchistic" way viewer ca'nt see.
@johncherry108
@johncherry108 5 жыл бұрын
My guess is that the board he described as an "Arduino doo" was actually an Arduino Due, from the Italian word due meaning 'two' (and pronounced 'doo-ay').
@steveedwards90
@steveedwards90 5 жыл бұрын
Thanks if you wanted to use 4 relays 2 on while 2 off and vice versa how do you go about this ? Been baffling me
@steveedwards90
@steveedwards90 5 жыл бұрын
@420 Friendly ok ish but excuse my lack of knowledge how do I define the first instance eg how would that be written int for each relay or int[ ]relay 1,2,3,4 ? What I want to do is switch 4 relays 1+2 when button a pressed and 3+4 when button b pressed I just cant seem to get it to work thanks
@calimanmancali
@calimanmancali 6 жыл бұрын
can you set up timer for this relay ?
@germanudo1
@germanudo1 7 жыл бұрын
DO NOT SWITCH A NEUTRAL. ALLWAYS SWITCH THE HOT .. Not only is it safer, it is also electrical code.
@hermanhermitz9101
@hermanhermitz9101 6 жыл бұрын
@Germanudo He even called it "ground".
@dallashill23
@dallashill23 4 жыл бұрын
@@hermanhermitz9101 stfu
@Teckmesh
@Teckmesh 4 жыл бұрын
Great content dude. for beginners I suppose Tinkercad online Arduino Simulator for better experience. No cost no lost .. :)
@Esteapen
@Esteapen 5 жыл бұрын
Hello guys, can someone explain to me whats the difference between 5v, 12v and 24v relays? It's not explained in the video :( When to use those different volts of relay? Thanks in advance.
@captainprototype187
@captainprototype187 5 жыл бұрын
I think you have to match the voltage of the relay wth the voltage of the motor.And the rated amps of a relay are also important. If you have a big motor the 5v relay will probably blow because the motor draws too much current(watts). That is how I understand it.
@RobiBue
@RobiBue 4 жыл бұрын
Random Guy , I know, 9 months... anyway, the 5v, 12v, and 24v is the voltage to control the relay (to power the relay coil and make it switch) If you want to run a 24v relay with an arduino or a pi, you will need an extra logic and power supply, since neither of them provide more than 5v.
@layton7430
@layton7430 4 жыл бұрын
Add a touch screen, control a fan, a heater and humidifier for a bedroom, hot night's kill me
@mikelee1906
@mikelee1906 2 жыл бұрын
You showed half of the relay setup. The easy half that is labeled on the relay. The other half is how to hook up to what you are triggering. A light,alarm,or pump etc. Do you provide power to what you are triggering. What if any power is ran through the actually relay. When to use normally open vs normally closed. How to set up using Arduino power if you are only triggering 3-5 volt source such as a 5 volt water pump or a 3 volt LED? Actually show it being of use not just making a click sound!
@thaiphuonghoang2590
@thaiphuonghoang2590 4 жыл бұрын
Yeah, the 10 milliseconds sequence was funny. Tomorrow, this will be the first thing I will do. No, not frying the relay.
@one_shot_kills1378
@one_shot_kills1378 6 жыл бұрын
i want to activate the relay by clapping
@brahimihamid1692
@brahimihamid1692 7 жыл бұрын
très bonne vidéo
@hometv9757
@hometv9757 5 жыл бұрын
Are there silent relays available?
@dmitrys.4741
@dmitrys.4741 4 жыл бұрын
Sure. Look up "solid state relay".
@alexlloyd2147
@alexlloyd2147 3 жыл бұрын
Remember that the solid state relays USUALLY do not handle as much power as the mechanical relays but will silently operate a smaller demand.
@BushidoBrownSama
@BushidoBrownSama 3 жыл бұрын
@@alexlloyd2147 ??? i have seen 40A solid state relays
@tim_bbq1008
@tim_bbq1008 4 жыл бұрын
A view of the equipment might be more useful than a view of the back of your hand.
@interesting7215
@interesting7215 4 жыл бұрын
You are putting all of your stuff on >>> carpet
@RobiBue
@RobiBue 4 жыл бұрын
I believe that “carpet” has a grounded backing to prevent static discharge.
@pelepuric7172
@pelepuric7172 4 жыл бұрын
Hey can you code an arduino code so whn i hold push button relay is open and when i release it relay turns off. Please i think its not complicated! Keep the vids.
@wpujolsbaseballinstruction6493
@wpujolsbaseballinstruction6493 6 жыл бұрын
Hi. could help me I want to CONTRAL something that make 3 stop every single stop only for 7 second stop..messege me if u can help me..I will give details..
@bharathjairam6876
@bharathjairam6876 3 жыл бұрын
yes, looking for collaboration contact @bharathjairam@gmail.com
@amaludayanga8302
@amaludayanga8302 Жыл бұрын
please give me the code
@chemetrigzin2123
@chemetrigzin2123 5 жыл бұрын
can i put a 15 minutes i.e 900000 ms in the code???
@bharathjairam6876
@bharathjairam6876 3 жыл бұрын
yes you can put bro. looking for collaboration contact @bharathjairam@gmail.com
@daudimwanzia8478
@daudimwanzia8478 4 жыл бұрын
Right
@DouglasDeodato
@DouglasDeodato 4 жыл бұрын
what kinda relay i should buy to use with this?: www.amazon.co.uk/gp/product/B074MX923N/ref=ox_sc_saved_title_3?smid=A167QJB1GLPJYG&psc=1
@davesmmit9906
@davesmmit9906 4 жыл бұрын
Interresting ... but for f.... sake, drop the music .... im hear to learn, if I wanted to listen to music I'd pick music I liked and have it in the background. Why do people think everything needs a sound track?
@toki3204
@toki3204 4 жыл бұрын
can you speak more beginner language
Control AC Devices with Arduino SAFELY - Relays & Solid State Switches
43:46
Everything you need to know about RELAYS
22:48
Playful Technology
Рет қаралды 55 М.
#18 Add a Relay Module to your Arduino project - Hints, Tips & Traps
16:52
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Рет қаралды 238 М.
Arduino relay basics - how it works and how to use it
7:19
Taste The Code
Рет қаралды 12 М.
Simple Way To Add Sound  & Relay Control To Your Prop or Model
26:29
The Makers Cave
Рет қаралды 51 М.
How to Use Millis to Master Arduino Multi-tasking
50:17
Rachel De Barros
Рет қаралды 55 М.
Multiple stepper motors with joystick, TB6600 and the accelstepper library
33:04
How To Identify An Unmarked or Blown IC Chip
32:31
Learn Electronics Repair
Рет қаралды 64 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13