![]() These boxes are being built for a specific purpose, and are going to be used temporarily and in a controlled environment. Although I believe I’ve done everything I reasonably can to make this safe to use, I am not a certified electrician. It is not your friend, and if you are not careful it can and will kill you. Disclaimerīefore going any further, I really need to emphasize this: MAINS POWER IS INCREDIBLY DANGEROUS. I thought it would be slick to integrate the relay into an electrical box, so I could plug it in and go straight to controlling it without having to tiptoe around exposed wiring. While I could have just spliced this relay board into an extension cord, I wanted to build something a bit more robust (and a lot safer). I purchased an inexpensive relay breakout from Amazon, and tested it using an Arduino Uno and a ‘blink’ sketch. ![]() Furthermore, the relay keeps both systems electrically isolated, greatly reducing the likelihood that any high voltage accidentally crosses-over. A relay is basically an electromagnetic switch, and it allows me to control a large amount of high voltage power (10A at 120V) using a tiny amount of low voltage power (~5 mA at 3.3V). The magic device at the center of these boxes is a relay. ![]() Rather than reverse-engineering some commercial “smart outlets” for the task, I decided to try and do this the old-fashioned way by embedding relays in electrical boxes. ![]() For one of my recent projects, I needed a way to control some lights powered by a 120V household wall socket. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |