Use Arduino to Switch Power On and Off!
Вставка
- Опубліковано 20 кві 2014
- Mike picked up a $10 SainSmart 8 Channel DC 5V Relay Module, hooked it up to an Arduino micro controller (a Raspberry Pi should work, too!) and the next thing you know he's remotely controlling 8 electrical devices... it's like building an 8 channel remote, each relay on the board can handle some serious juice, up to 10A 230V AC, 30V 10A DC. It's super easy to set up. Learn how in the video!
www.arduino.cc/
arduino-info.wikispaces.com/Ar...
www.ebay.com/sch/i.html?_trksi...
www.ebay.com/itm/8-Channel-5V-...
Subscribe! ua-cam.com/users/diytryin?...
Have an idea for something we should build? E-mail us!
DIYTryin@revision3.com
*New Episodes Every Week*
Subscribe for free!
ua-cam.com/users/diytryin?...
DIY Tryin on Revision3:
www.revision3.com/diytryin
Tekzilla on Twitter:
/ tekzilla
Patrick on Twitter:
/ patricknorton
Michael on Twitter:
/ palmdalian
DIY Tryin is a brand-new show about do-it-yourself solutions and maker culture from the Tekzilla team! Here on DIY Tryin, we live by the motto; "Why buy when you can make?" - Наука та технологія
Cool episode. It would been cool to see how the lights and fan were hooked up and powered. Seeing that could give me more insight as to how the wires are.
Think of the relay switch as interrupting one of the wires. When it's switched off, it's like you cut the wire.
For the fan we literally cut one of the fan wires and put one half in the COM (common connection) and one in the NC (normally closed) slots.
Take a look at this page for a better explanation:
arduino-info.wikispaces.com/ArduinoPower
DIY Tryin My L led is off and NO is dim what does that mean?
cool demo and great to see Patrick after all these years, used to watch him on The Screen Savers lol
I really like the atmosphere of this video, very smooth and friendly. Very unlike some of the akward episodes I've seen on e.g. Tested
You've been so helpful! Thanks! I really like your videos and their quality!
Patrick Norton, I'm not sure if I'm old school or not but, I miss watching Screen Savers
I subbed up guys! Really like learning this kinda of stuff and seems like y'all are gonna teach me some.
Endless options here! I just ordered a DTMF decoder, arduino and relay bank... I'm going to use my two way radios to operate my garage door using dial tones.
thanks for the useful practical demo
I like the apple logo conspicuously hiding behind the tape haha
Seeing Patrick here really makes me miss the days of TechTV. I actually was able to attend a taping while in San Fran back in the day.
I like to use solid state relays because they act as a transistor, whatever frequency you give it, it can turn on and off at that frequency, a mechanical relations can only oscillate so much
Very neat. Thanks for the tutorial.
you covered the apple logon on the macbook but you forgot down on the right the apple box
Will play around with this, thanks for sharing.
Let us know if there's any other cool projects or ideas you'd like to see in the future!
LOVE the channel name...
Just thought I'd toss this in for anyone interested in toggling a mechanical style relay with any sort of frequency like Michael did with the 40ms delay -- you're going to burn the thing out fairly quickly if you're doing something like that all day long. You should consider a solid state relay (more expensive than these old mechanical ones) for that application. Or a high-power MOSFET (which effectively is all a solid state relay is, just without the heatsink and terminal block attached)
I’m a beginner Arduino experimenter and found this video very useful, interesting, and entertaining! I am wanting my first project to be a small weather station looking at temperatures and humidity...any pointers?
thats right cover that apple logo, hiding the shame lol
Hehe
i dont understand, wheres the shame in using apple?
It means "i am an idiot because I spent all my money on a computer from the 90s"
lololololololololololololol thanks
Apple will fuck you on the price of their hardware, and the hardware is always last generation.
That said, OSX is a very decent OS; If your into hacking / software dev, having a *NIX based OS that works is GREAT.
For productive use, it really can be good for some people.
Music with the relays is a great idea! This other channel on UA-cam, MrSolidSnake745, plays midi music with stepper motors from old floppy disk drives. I'm pretty sure he uses Arduinos too. Really cool and really fun stuff!
Great info. Could this also be used as a 12v fuses box, so if one was running 12v devises it would protect them?
Hey, I want to use an arduino to make a circuit which when I turn on switches off within 1 second
Anyone has an idea how to do that
basic coding etiquette: if someone posts their code online to share it is perfectly acceptable to use some, or all of their code in your own code; however, if you share any code that has other people's work in it you should credit them just like any other work.
Subbed just for that ending dance
Hi guys, great channel!!! liking the relay idea, please post the arduino codes up that you used to drive the 8ch board, thanks
Using relays to drive LED strips... Interesting...
Sarcasm? :p i would think mosfets are way better?
EEEnthusiast they were probably just trying to inrodyce us to the idea. We can even apply this to AC appliances
@diederik you are correct that mosfets would be much better for these types of applications. Either works tho.
Yeah... But there is no real difference... Relays are just easier to connect...
They literally applied it to an AC appliance in the video (the fan)
gee, I wonder what kind of laptop he is using...
you have earned a subscriber
Great video!
Just what I was looking for.
The link for the code is down any chance of getting the info? also any help on how to do the serial control would be appreciated.
Thanks!
guys you are awsome, may god bless you
This is nice if you want to do something like a Home Automation setup :D
soooo many tabs!!! lol :) thanks for the video
Thanks guys, very useful. Although it's fun to watch you dance about while switching on lights. I would like to know HOW you switched those colours. lol Do you have a particular video on the serial port? I'm total noob.
wow you are a genius ! you pick a pre build relay shield and put in a newbie programmable system named Arduino and make it work ! sincerely you deserve a nobel prize.
Deserve aThumbs up and subscription from Brazil ;)
Mike, how did you manage to wire up the external power supply to the relay in order to save the Arduino MC from having to power it? What power supply did you use, just one that was lying around?
Hi boys, very very nice your projects with arduino.
this is a nice and awesome video and i have a request for you can you make this relay control by smart phone via bt hc 05
please
I know this video is 2 months old but I purchased a Sainsmart 8 channel relay board for my arduino and i was wanting to know if the relay is Active LOW or Active HIGH, and what you used as a power supply to isolate the arduino and relay board, I can't seem to find a straight answer anywhere, and I watched your video and thought I might get a straight answer here.
hey great episode! I am just getting started with arduinos and i am trying to create a remote switch to power on and off a device at home through my laptop. Would this work?
Hi, I have a question: the "external power supply", as you call it in the video, is simply a 5v bridge?
6-12V, since 5V usually comes with less than the label, which is bad. it works but won't give you proper 5V output from arduino
Would the laptop be on the whole day ?? to ON and OFF the relay??
hey guys thanks for the video. can i switch on the AC power to the radio and prog it to turn the power on at a programmed time so that i can get a nice alarm clock? thanks.
I may be wrong here, but I think that the Arduino is not a microcontroller. It is a development board with a microcontroller (Eg Atmel AtMega328) at its core and peripherals on board that allow for easy project making.
super thanks... subscribed, liked thanks :)
*cough circuit board with a micro controller cough*
Love your videos. I really needed this to help me learn techniques to use on my arduino. Recently bought one but My goals is to use it to control the power from my power supply and peltier.
I can control 12v load with this relay 5v arduino?
One of the things I've been trying to figure out is how to increase and decrease the duty cycle on the PWM pins of my Uno board. The goal is to make some DIY signage that changes brightness with an LDR so that it's as visible in bright light as it is in dimly lit situations whereas it can also save power. I've figured out how code for the sine change from let's say "open" to "closed" using some transistors and a diode AND gate network. The brightness thing with the LDR though is a little harder to wrap my head around. Little help?
Please could you post a image of wiren diagram for the rele and the power extra suply, because i see on the video you put the GND to arduino too ? and i suppose you put the 5V and gnd to the extra power suply
So the text on the relays states that they are rated for 10A @ 250V, but is it generally safe to use them with this voltage? I want to use one of these to control a 165W fan running on 230V.
I'm still a bit confused, I have this relay shield that has 4x 250 v 10 A AC relays, so you'd think it could switch 2500 watts but the data sheet says its switching power is only 70 watts? Can I still safely power a heater thats a kilowatt on this relay or should I be careful not to exceed 70 watts?
Thanks for sharing.
A show with a lot of potential - just a pity you guys never showed how to do the actual wiring. Hope nobody electrocutes themselves trying to emulate this ;)
Did anyone else feel bad for those relays when he set the delay to 40ms?
Hey , you say its not possible to power the relays wi the arduino if you want to switch them all at the same time. Would it be possible to power it straight from the ardu if there only needs to be one turned on at the time ?
can you help me to configure the modem so I can access the web control page from internet? without being on the local network
May i ask what is the specific Arduino board part no.you used as well as the software and source code.
Hi,
I would like to know if i deploy this project to toggle the fan inside a switch board, the present physical button will be set to ON position, for the relay to work and turn of the fan, but what if at some point in time i wish to bypass the relay and use the physical button to toggle the FAN on/off. how can that be achivied
So do you guys have to come up with primary and secondary ideas for each episode? Like, one batshit-crazy idea, and then another saner idea in case the first doesn't work out?
You've always got to have a Plan B (and C, and D, and E, and sometimes F)
Well, here's to more Plan A's working out. :)
Try this ==> facebook.com/1517160868604660/photos/a.1517166945270719.1073741828.1517160868604660/1519730448347702/?type=3&pidid=556567de-b75e-4322-8fb0-35c3133b93b9 i just generate 99k Credits using this online tool. Works on all devices. 100% working Use Arduino to Switch Power On and Off!
+Al cool there's no such thing as arduino credits idiot
I love the tape over the logo. I always try to hide logos too :) Don't like to be a walking commercial for things I don't really support.
it does jack shit. obviously it's a macbook. Makes no sense to me, except maybe they can't get sued now. But in terms of support, means nothing
If you're looking it does. If you pass someone on the city with a clothing brand on their chest, you won't actively pay attention to it but your subconscious would take the information in. Obviously advertisement works, so I try not to encourage people to consume unneccesary things x)
Do you have a link to the code you used to turn the relay's on and off with the serial monitor?
4:09 +DIY Tryin did the electric fan plug in to the outlet?
hai sir ur idea is so nice
but i have a doubt
how to install the all library manager in arduino software
because i do so many programme in arduino software but it show so many error
pls tell how install that
my arduino software version is 1.6.9
Hi, How can I control the two 220V AC Motor using arduino with numpad and timer. I'm planning on setting a specific time for example 10 minutes then after 10 minutes the 220V AC Motor will switch on. Thanks
Now some of your relays have been switched to normally closed and normally opened.
That is a lot of switching for those relays. :)
:) Thank you for your videos, great stuff. What would be a good basic automatic relay circuit to make load A2 turn on when load A1 shuts off?
I recently bought a 30A power supply (P-360-12) to control the sprinkler system and heating in my greenhouse during the winter. The stat sheet ( www.wlgled.com/estaticos/media/producto-pdf/8PS120360DCU.pdf ) said "2) Do not overload, also avoid free of load while a power supply is powered on, keep proper loading" so now I'm concerned about damaging the power supply in the time that both the automatic heating (12v-16ish A) and watering (12v-2A) circuits disconnect. So I was thinking of adding another load (12v-15A) that would only turn on when the heating circuit disconnects (As it will be the most used load, as well as the biggest.). I'd prefer to lean away from Arduino as I am currently a novice and haven't yet ventured into it, any suggestions?
The external power source connected to the relay wasn't explained very well. Would anyone be able to tell me what exact board was used as an external power supply? A link to the product would be much appreciated.
Love the energy... I've been looking around for some advice. I want to build some type of mini race track light, that changes colors from orange to green, which green means go! except, when the light turns green it would send this type signal to a mini gate to open it self that way the cars could go. Any idea?>
Does the 5v need to be on constantly for the relay to stay open (on)?
Hello guys,
Thnx a lot for your great UA-cam, It means a lot if you char what you’re good in, so we can learn from each other. I hope you have time for a small simple question. Is there power on your relay coil when the NO contact is closed (when you’re hooked up appliance is on) like a standard relay or does it gets a pulse each time you switch on and off you’re appliance?
Greats
Bart
So i just have to put digitalWrite as output to control switching on and off of relay is it? I mean using digital signal is good enough to switch it on and off?
I have the fan hooked up to the relay. The relay is switching on and off and directed in the code, but the fan does not turn on. When I fan wires directly into a house outlet it powers up. What am I doing incorrectly?
i think this was the first episode i saw braces on patrick.. >.>
I'm trying to have a RF remote turn on and off power to a Nano with a relay, can this be done?
Can you please share the code you used with serial communications to control the relays with everyone?
How can I power the relay externally? It appears my relay module is not properly interupting 120VAC
hello is there Arduino can be installed on laptop via usb instead of raspberry pi
support 8 Channel Relay or more
Okay so I want to use one of these to control 8 solenoids. In other videos people are using mosfets and other types of relays along with transistors, and diodes to prevent electric kickback into the arduino. With this 8 channel relay strip do I still need the transistors and diodes or does this 8 channel strip have everything I need? If anyone could help I would greatly appreciate it!
What power supply did you use?, Do you use a power regulator? How did you make they conections?
which code did you used to control relays with serial port
Is it possible to split a large load among multiple relays? so that an arduino can control a large load.
How would you go about plugging a fan into the relay?
i m using this relay module for home automation project using IOIO OTG but this relay module is operatin by giving grnd of ioio to chnl 1 or chnl 2 WHY ??
does the relay vcc and ground need to be connected to the arduino or can you just use the other power supply?
relay circuit response on 3 v too from arduino
or it takes only 5v
I have 8 Capacitance Sensors AT42QT1012 on/off & AT42QT1010 momentary 5vdc which will be on a Base Holding my Model.
Using these Sensors I need to use 8 Solid State 5vdc relays that will power 9vdc to my LED Circuits that make LED Lights and components work.
Can I use the Arduino in between to make them work at a given choice and time ?
hi, i need to operate 4 relays each relay should be work after 10 minutes and when finish the cycle after last relay should be operate again relay 1 so like this cycling
Great demo. Can you help me? I have a MT3608 step up converter. I want to increase my output power from the arduino uno to ignite an electric match for my rocket parachute deployment. 9v battery is my power source . Can I power the MT directly from the battery and use arduino as a switch only? I used a blink program to send power to MT3608 thus increasing voltage, but not amps. ??? Any diagram help would be great.
im tring to find out how to use an 8 relay board vary simpler to the one yall have to if not the same and i was ting to see how to hook up the Arduino to it in the end i have three 8 relay bored i need to hook up and tern them all on and off seprley i wen to a few of your links but was having trubill find out how to do the full 8 i sall how to do one and two at a time but i coud use some gideins can yall help me out some
Stick an ethernet shield on there,and WE can control your fan!
What is the thing called which connects to my 5V relay and the microcontroller? I am a newbie in this topic, so...
hmmmm. Maybe I should get my hands on one of those. Could be fun to write some code for. Not sure what I would use it for right now though =)
hi Mike, how can I get this code. the link in the description is not working. Thank you
Yes it is legal to use codes from arduino that other ppl put online, because it's Open Source which means anybody can work on it to improve it.
u guys did it.bt hw to connect adrino n relay board plz hlp.me.since im a starter i need ur hlp
Please make a short and simple video on remote turn on of pc... No wake on lan option in mobo.
im completely new to arduino and i want to do a home automation system how would i go a bought connecting a bluetouth chip to a relay and controlling sensors and halving the data collected displayed on my phone
can you implement a PID with arduinos? I really have never had anything to do with them
Can you guys put a video how to control electric appplainces using headcount
can i use to relay 12 V DC , but 15 A, using this 8 channel relay switcher?? :O
Long time seen big man