Wireless Outlet Control




I made a tablet app, using MIT's AppInventor, that connects to an arduino via bluetooth. Using Relays, I can control outlets from a distance. I use this setup at parties for an quick and easy DIY light show! The end product is quite impressive!
See it working in action HERE 

EDIT: 1/12/14
I have updated a few images from the form and the blocks editor from the AppInventor. Clearly, the app has changed a lot since I first started developing it, and a few new features have been added. For starters, I have three cycling functions. One of them slowly goes through from left to right, and then back left. The next cycle goes quickly through the relays from left to right, and back to left. The last cycle button just goes quickly from left to right.  I created a Flash button, which, like the name sounds, flashes all of the relays on and off. They all looked really cool on my house this winter with lights strung all over the place.
The random function is not working, and I would be open to any suggestions. I would like it to pick a random byte (number 0-14) and random delay (0-5 seconds). 
As far as hardware is concerned, nothing has been changed. I am using an 8 Channel relay module, and a small bluetooth receiver. 
they can be found here respectively:

Thanks again! Let me know if anything needs to be updated.



    • Classroom Science Contest

      Classroom Science Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    8 Discussions


    2 years ago

    I am attempting to make almost the exact same project. Any possibility you would post the components/instructions on all the actual materials used / wiring setup?!? Thanks so much!!

    1 reply

    Reply 2 years ago

    Matt, it has been a long time since I've done this project, and I've already taken apart the enclosure and used the parts elsewhere, but I would be happy to help!
    I'll make a wiring diagram and post it here very soon!

    Or you can email me at christian.n.hall@ndsu.edu

    Thank you!


    5 years ago on Introduction

    Nice project!!
    Could you add more information on how you realized this?
    What materials? Maybe arduino/appinventor source?

    4 replies

    Reply 5 years ago on Introduction

    What would you like me to add more about? And yes, I will update with a few screenshots of my App Inventor form and code, as well as the arduino source code. Everything works well in the source code, but I am still having trouble with a "random" function. If you have any ideas in how to write a working random function that sends a random byte at a random interval, that would be spectacular!


    Reply 5 years ago on Introduction

    I'm specially interested in how you realized the bluetooth part in combination with the appinventor app.
    Arduino has a random and randomseed function, so I don't know at which part of the random function you are stuck?


    Reply 5 years ago on Introduction

    I really didn't quite know if it would work. When I ordered my Bluetooth receiver, I had no idea how to make it connect to anything. I had seen a few other instructables that use the same sort of connection, but it was still a challenge. I spent a few night working with it for hours with no luck. Finally, one day, I just programmed the app to connect to the Bluetooth address (seems very easy, I know) and I pushed the connect button on my tablet, and it just worked. I honestly couldn't connect to the receiver with anything else. I tried my computer, phone, and even my car. Nothing worked except programming the app to just connect.
    I'm very busy this week, but I may be able to upload the AppInventor screenshots and arduino code by the end of this weekend.
    Thansk again for the comment. It nice to know that there are people still interested in what I did.