Arduino Room Automation Via Bluetooth

13,935

232

25

Posted

Introduction: Arduino Room Automation Via Bluetooth

Before I start I would like to thank the instructable user ASCAS for showing me how to use bluetooth in my project. Here is howi learned https://www.instructables.com/id/Voice-Activated-Ar... .

What I did in this project was use 4 servos to physically turn on and off the lights and fan in my room. It will only work with switches similar to mine. This is great if you dont want to open up your light switches to use a relay. To turn on the lights you can say "lights on" "turn lights on" "turn the lights on" for lights off you can say "lights off" "turn lights off" "turn the lights off" for the fan you can say "fan on" " turn fan on" and "turn the fan on" for fan off you can say "fan off" " turn fan off" and "turn the fan off". Remember to vote for me if you like my project

Step 1: Materials Needed

4 servos and servo horn showed in picture along with the smallest screw that comes with the servo. I used some small 9gram servos from http://www.dx.com/p/towerpro-sg90-9g-mini-servo-wi...

breadboard

jumper cables

bluetooth module i got mine from http://www.dx.com/p/jy-mcu-arduino-bluetooth-wirel...

arduino board with tx rx pin and can supply 5 volts and has at least 4 digital pins for each servo.

wall wart power supply

android phone with this app

https://play.google.com/store/apps/details?id=robo...

Step 2: Code

Put code on board and you will probably have to mess with the number of degrees you want the servo to turn depending on the servo horns position

Step 3: Wiring

Follow picture attached.

Step 4: Video

IF you cant see it then heres the link https://www.youtube.com/watch?v=k731rVGq1Js

Share

    Recommendations

    • Science of Cooking

      Science of Cooking
    • Microcontroller Contest

      Microcontroller Contest
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    25 Comments

    i need help.

    dear simon72post i am building bluetooth remote relay switch same as yours. i am using components as mention below

    1) arduino uno.

    2) 4 channel, 12vdc relay card.

    3) HC-05 Bluetooth module.

    4) Arduino bluetooth control device android app

    5) jumper wires etc.

    How i wired my componnents i have shown in blow pic.

    now please can you provide me a sketch so that i can operate relay via my android mobile using Arduino bluetooth control device android app.

    i think u understand what i want from you i am a bignner in this arduino world and i found your this post very much closer to my need

    and please guied me my friend

    please my friend help me you can mail me on sharmaz747@gmail.com

    MY CIRCUIT.png

    can uh plz tel me about ur crkt that how it will work

    user

    Your wall switch has screws, you could maybe use a relay to save electric energy and material costs aaand it would definitely be more silent than a servo.
    Using a relay is actually more simple, it's just like a switch, an electric one though.
    And it would also save energy and material costs if you switched from bluetooth to infrared :>

    P.S. I read that you weren't allowed to mess with the circuitry... Too bad... wish you the best though.

    This is ridiculous!!! Hahahaha!! WHY SERVOS!! Just use a simple relay and have a better control. Relays are so much cheaper than servos! Anyways nice project!

    i wasnt allowed to go inside the lights circuitry

    actually, using ways to automate without rewiring or touching high voltage circuitry isnt that fat fetched:

    http://spectrum.ieee.org/geek-life/hands-on/how-to-automate-your-home-without-rewiring

    great. i am impressed

    perfect for people who aren't allowed to solder yet and/or have access to relays. this project can be used in many different ways, thank you for sharing !!

    Thanks for the kind words. I actually made this because I wasnt allowed to open up the light switch