Build it! Android – Controls everything at Home (using Arduino)

Sup everybody! Welcome to my Arduino Home
Integration tutorial using an Android based ecosystem. Alright, so basically in this tutorial
I am going to walk you through a small project I recently completed. So the purpose of this
project, what is the purpose? Well… if you are someone like me, you’d probably have a
billion remote controls that you use for your television, your satellite box, your audio
system, your AC, Blah blah blah blah… you get that and every time you to turn ON the
fan or light or Television, it actually involves you excreting yourself from inertia, basically,
take a walk. In the age of smartphones, don’t you think this is highly unacceptable?! So
in this tutorial, I will show you how I controlled everything with my Nexus 7. Oh yea, and before
I forget, I also used an app called Blue-term from the Android market to actually pair with
the BTBee module, Alright, so lets move on… The Micro-controller board is the InduinoX
Board which is a clone of the Arduino UNO with a lot of extra features. Take note of
the pins that will be used in this project, mainly pin 16, 17 and 18. Also note the TSOP
receiver as well as the IR transmitter right there. Alright, to enable Bluetooth Serial
communication, I used the BTBee module on a XigBee Shield. So that is the BTBee Module
and that is the XigBee Shield. That is the relay which I used to control the lights,
fans as well as the TV. In order to gain complete control of the TV, Air conditioning, sound
system and set-top box. I need to observe and reproduce IR signals from their respective
remote controls. So that I can control them remotely through this micro-controller board.
That’s why I needed the use of this IR LED. Finally it was placed in a wooden box which
was a good enclosure and it provided a good means to cover this up since I wouldn’t want
these LED s in my face during the night. The green lines basically lead to the loads and
the blue lines are the phase wires which provide the phase current to the load. This photo
was taken before the completion of the wiring to the TV. The TV was wired to that particular
relay right there. Alright, lets take a look at the sketch. So initially the different
pin modes were setup to OUTPUT so we can easily understand whats happening right here. 15,
16, 17 and 18 are set as the OUTPUT parameters. Then in void loop() we can see that the loop
is initially set to accept a serial variable which arrives from the BTBee module and an
ASCII value enters such as ‘A’ which is 65. In case A does enter and this goes 0, it turns
pin 15 HIGH. In the physical terms that would just mean turning ON the light and similarly
if A isnt equal to 0, simply turn off the light. The same thing was done to the fan,
another fan as well as the Television. So before I go into explaining what modes are
(scenes), I’d like to explain that having too many ASCII values could just jumble everything
up and that’s not exactly what most people are looking for. So take an example from this
TV mode, basically what happens right here is, it initially turns ON the TV, then it
turns ON the light, it sets the audio system and then it basically selects the right AV
mode, right there and it presses OK, the center button, after which it selects the favorite
category from my remote, which has a list of all my favorite channels and then it cycles
through all 13 of my favorite channels with a delay of 3.5 seconds which is just enough
time for me to look at what program is playing, so in case I do find something great, I
would just select that manually and these are a couple of other modes that is the AC power
mode which would just toggle the AC switching it ON or OFF, well that’s about it. Lets see
all this in action then. These are the four remotes I programmed into the Induino. And
this is the Nexus 7 and that’s the app, Blueterm and I am sending the ASCII value ‘A’ right
now, which controls the light as you can see. I’ve also left the sketch (Its on GitHub)
in the description box, be sure to check that out as well. ASCII values can also be sent
using Google Voice. Alright, credit needs to be given to Simple Labs who are the creators
of the Induino. Whenever I did get stuck, they always helped me out whenever I asked.
Check them out, I’ll provide links in the description down below. And I know I haven’t
talked about the IR functions too much in detail but then the video would just go on
and on… Kudos to the people at Ken Shirriff’s blog who made recording existing or Raw protocols
really easy and thank you for watching this video! Don’t forget to LIKE (SUBSCRIBE) and
COMMENT below, in case you want future tutorials! Thank you once again and… see you later!

100 thoughts on “Build it! Android – Controls everything at Home (using Arduino)

  1. I did the same thing with my setup.. But an ex electrician told me you should have plastic behind your controller and relays.. If one of those items short you will be screwed. 

  2. how did u connect d air con & tv to d arduino? relay is juz for on/off how can u change d channels on tv n i also want to change d temp of d air con… how n what to connect???

  3. Great stuff and thank you for sharing. However, when sending raw IR codes it won't allow me to send more than 8 different codes (on Uno). If I have 9 only 8 work, if I have 10 only 7 work and so on. Any ideas on how to get around this? Cheers.

  4. Hi bro, I'm very impressed with your work bro, can u please let me know how did u program remote control sensor to Arduino?

  5. Can I use aurdino in automotive ? I want to build a cercuit to get Puls wids as input and output decreased signal ? Can you help me puting me on the track ?

  6. Where did you get your relay from? I don't want to experiment with relays from eBay unless I know it's from a seller people have used because of safety. Hope you can help. 🙂

  7. This doesn't have anything to do with your awesome project, but I noticed a Guitar Pro project for a John Butler song on your desktop….Nice.

  8. Great Video, thanks for sharing. Is it possible that this device can be incorporated into a hard wired switch system for electrical lighting so that it can work as a two way switch or intermediate!!

  9. sir please can you send me the details… from where i can buy these electronics equipment in order to complete this awesome project………….please send me the  links of website from where i can buy..if possible……i shall be very thankful to you……………..

  10. Why are indian people so smart? You guys are the best in my opinion, even if your rich your not rude and dont force any launguage or religion on people.
      i work in vegas and i deal with people from every place on the globe and you guys are the only ones who never give me any problems, and some asians.
       Sorry if anyone is offended by this it was just an observation.

  11. As for my related comment this is fantastic this is exactly what im looking to do, Im just starting so may i please ask, What is the maximum voltage an Arduino can handle input/output. Also what is the best way to provide force feedback using servos/motors for i flight stick i wish to build ( im trying to build a sim box using Hygroulics for use with the Oculus Rift but i dont know about the restictions of the Arduino ), Thank you.

  12. i m a programmer and I want to learn Home Automation  it from basics.. want to learn your project. please kindly suggest. 

  13. Hi Adarsh, This is a great project and video. Well done. Have you updated your rig at all since you made this video?  Are you considering using one of the emerging HA standard protocols such as VSCP over WAN? I am using a SparkCore (Arduino compatible ARM processor with integrated WAN and other features) for my latest efforts. A little lower cost than Arduino + WAN module. Also offers more RAM/Flash and faster processor – and everything done wireless (including Flash updates).

  14. hhhhhhmmmmm? let me see? should I buy all this electronic shit, program it, mount it, connect it, etc, etc, so I can turn on my lights using my cellphone? OR…..,should I just reach over and use the light switch on the wall?…..hhhhhhhmmmmmmm?

  15. Hello Adarsh Mammen, 
    Can you share your android code I really need it just to understand how to connect things from smartphone to arduino. Thanks ahead.

  16. Nice video, please i wanna know if i can program a Bluetooth using anduino and use it along with 3 relays switches is it possible pls help me out.

  17. Hey Adarsh., i m working on switching ON-OFF of electric device with SMS using arduino and gsm sim900.(working perfectly).
    now i want to do it with Whatsapp instead of text message using Arduino and gsm sim900.
    any suggestions ??

  18. Please Tell me Everything I Need To Complete This Project On My Room! (PARTS LIST, ALL THE CODES, EXPLANANTION ABOUT MODULES) Please Help!

  19. Hey Great video…
    Can you plz help me control our home ceiling fan speed using raspberry pi ?


  20. You are thatandriodguy right?? saw you once in a seminar.
    i too wish to make all these stuff which i am positive i can. wish me luck.

  21. Hey Adarsh you might also be interested in the Internet of Things ….
    For this you can use Thingspeak(Free) and this app.
      Please let me know about your thoughts…

  22. Good job my friend!
    Actually i have 2 questions. Firstly, for how long can you let the arduino working because it not a plc so it is not so durable to work 24 h/day for 365 days/year. Secondly, how much did cost you the whole project?
    Thank you for your time!

  23. I buy a induino R4 from simple labs. I tried some simple examples and get succees. But i dont know how to get the codes of my remote with Induuno R4. The remote library u suggest not working because when i try to compile the IRREC DEMO sketch it show some error…. plz help

  24. I barely understood the high scientific language in the video so would it be possibly for you to just tell me what are the materials for this project and how to go ahead with it? Thank you
    [email protected]

  25. hey Adarsh , I have ardiuno Uno board + Ethernet Shield + 12 v 4Channel Board . Issue is i have attached the properly codes is done . issue is relay board relay board all 4 led is blinking i coded it the issue i cant listen the relay on and off sound

  26. nice project are you indian and your code is great not started anything but great code can we use simple arduino


  27. hey could you please give me detailed information about making this project as i am making a similar project with some changes but your project would be a great help to me.

  28. Hi Adarsh, I am doing my Project Study regarding lightings and air conditioning automation. Kindly help me on what are the materials needed to use, I am planning to use Arduino controller. Please help me and give me some background and wiring diagram on how to connect the components. and also teach  me how to program the system. Hoping that you can help me because I need to present it before December 2015. Thank you

  29. Very incredible video. Loved what you did. Keep it up and keep all of us around the world informed. This is really impressive and shows what we can do at home to make life better.

  30. ok how made for outputs analogics from 5v (arduino) to 120v (CA) becouse i dont understand about dimmers maybe with an ldr (1v~25v – 2.5v~60v)

  31. hello, do you know how do this same project through internet? how connect the arduino through intetnet to an android app? if you know, pls help me.

  32. can't you do this through wifi with a wifi module attached to your induinoX? Turning on bluetooth on your phone isn't exactly life saving. Plus to stop other people from having acces to your bluetooth module, you'd need to change the password for pairing, if I'm correct. Changing such a thing is a bit of a hassle imo.

Leave a Reply

Your email address will not be published. Required fields are marked *