Instructables
Picture of Wireless Outlet Control
IMG_2572[1].JPG
IMG_2573[1].JPG
IMG_2574[1].JPG
IMG_2575[1].JPG
AppBlocks.png
AppForm.png
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:
RELAY
BLUETOOTH 

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



marcoboers7 months ago
Hello,
Nice project!!
Could you add more information on how you realized this?
What materials? Maybe arduino/appinventor source?
Hall878 (author)  marcoboers7 months ago
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!
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?
Hall878 (author)  marcoboers7 months ago
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.
Thank you, that would be helpfull for me!
BMR111001 year ago
Awsomw