How To Add Relays to Your Projects- The BASICS
MKme Lab
How to use relays with Arduino and more projects. See more of my Electronics and Arduino videos here: https://www.youtube.com/playlist?list=PLxyM2a_cfnzh9sbbEMFvFAGvNKfSElkvC Where I buy relays: https://amzn.to/2MSJEd0 Remember to subscribe for more videos! https://goo.gl/2qaJ2U
This is a simple tutorial showing how I use relays with my Arduino and Raspberry Pi projects to control any device. A relay simply uses a low current supply (like Arduino, PIC etc) to control a high current device such as lights, fans, pumps etc.
You can simply use the blink example sketch to get started. All you need to do is send a digital on/off to the pin controlling the relay and you are all set.
Be very careful with mains power (110/230 Volt) as it quite simply will kill you. The end... If you don't know what you are doing, stick to low voltage DC circuits please.
+1000 OCD points to those who notice the flaw in the Eric CAD wiring diagram :) That actually wasn't intentional but after 6 takes of the bench footage- I wasn't about to consider doing it again...
As well the relay was ground side switched (I had to switch modules during filming arrrgh) so the state is inverted compared to the OLED. Function is the same and I didn't want to have to re-take the video. This actually illustrates quite well that some relays will indeed be ground side switched on the trigger pin. Bonus :)
Hope you enjoy. You guys are truly amazing!
Here is the extremely messy OLED code- I wouldn't suggest even looking at it as there is a bunch of old code I never got around to removing which you do not need. Check out my OLED video for better code :) http://mkme.org/forum/viewtopic.php?f=2&t=705
Get Social with Me!
Google Plus ➢ https://goo.gl/4o2wMu Twitter ➢ http://twitter.com/MKmeOrg Instagram ➢ https://instagram.com/mkmeorg/ SnapChat ➢mkmeorg Facebook ➢http://www.facebook.com/EricWilliam13
Shop at Amazon and support my channel:
Shop Amazon US ➢http://www.amazon.com/?rw_useCurrentP... Shop Amazon CAN ➢http://www.amazon.ca/?rw_useCurrentPr... Shop the MKme.org Store ➢http://store.mkme.org
My Website and Related:
Main Site ➢ http://mkme.org Blog ➢ http://blog.mkme.org Patreon ➢ http://www.patreon.com/EricWilliam G+ Community ➢ http://goo.gl/6rMPsi MKme Facebook Page ➢ http://goo.gl/aXg29
Thanks for Subscribing! ... https://www.youtube.com/watch?v=Vs86QPCGfs4
55874344 Bytes