loading

This is a more sophisticated android arduino app than the first. The app is a control command center which can turn On and Off six appliances in your house and even your car ignition by simply swiping the sliders on either ends. The best feature of this app is that you can TURN OFF all of the appliances at the same time by shaking the phone just like a magic wand.

First, we gather the following hardware or materials needed for this project:

  • 1 Arduino R3 Uno
  • 5 resistors
  • 1 bluetooth HC-05
  • 5 leds
  • 1 9v battery
  • connecting wires
  • 1 breadboard
  • 1 Android smartphone

Second, we assemble them using the circuit connection below. I assume that you are already familiar with the arduino environment. For the HC05 module, see my other project on how to hook up your bluetooth. The schematic diagrams and actual project can be found on step 1 section.

<p>pin 6 ... resistor 1 ... led1 ... gnd<br>pin 7 ... resistor 2 ... led2 ... gnd
pin 8 ... resistor 3 ... led3 ... gnd
pin 9 ... resistor 4 ... led4 ... gnd
pin 10 ... resistor 5 ... led5 ... gnd</p>

Third, before we use the control center application, we need to test the sketch below. To do this, we use the serial monitor provided by arduino to test the codes. Please upload our sketch into your arduino microcontroller.

<br><p>/*<br> To test the sketch:</p><p> open the Serial monitor and type any character.</p><p> The characters - a, b, c, d, e - will turn ON LEDs.  </p><p> The character  " f "  will turn OFF the LEDs.</p><p> */
</p><p>#include <SoftwareSerial.h></p><p>SoftwareSerial BTserial(2, 3)</p><p>char data = 0; 
void setup() {
    pinMode(6, OUTPUT);
    pinMode(7, OUTPUT);
    pinMode(8, OUTPUT);
    pinMode(9, OUTPUT);
    pinMode(10, OUTPUT);
      BTserial.begin(9600);  
  }</p><p>void loop() {</p><p>  if (BTserial.available() > 0) {
      data = BTserial.read(); 
    switch (data) {
      case 'a':
        digitalWrite(6, HIGH);
        break;
      case 'b':
        digitalWrite(7, HIGH);
        break;
      case 'c':
        digitalWrite(8, HIGH);
        break;
      case 'd':
        digitalWrite(9, HIGH);
        break;
      case 'e':
        digitalWrite(10, HIGH);
        break;
      case 'f':
          digitalWrite(6, LOW);
          digitalWrite(7, LOW);
          digitalWrite(8, LOW);
          digitalWrite(9, LOW);
          digitalWrite(10, LOW);
           break;
        }
    }
  }</p>

Fourth, here are the basic features of this Home Controller App:

  • The screenshot is identical on the video.
  • The bluetooth button lists a selection of bluetooth available in your area.
  • There are 5 options to hook up your appliances
  • There are 2 options to turn off all appliances: shake or slide
  • The developers name and website are posted on the screen.
  • The app is provided "As Is" ***(please read the disclaimer).

Finally, here are some challenges you might want to pursue:

  • use the app to control a relay, a servo, a toy car, a robot
  • use the app to control a lamp or an electric fan
  • share your projects with us

NOTE: The disclaimer below may sound alarming. But it is usually a third party vendor that tries to access some of your hardware information and sometimes mess up your smartphone. However, as hackerz, we always love challenges, solve problems and fix things. ^-^

"Humans can't think of something without associating it with a physical object." ~ iHackRobot Law
  • DISCLAIMER: *** AS IS means YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE APPLICATION(APP) IS AT YOUR SOLE RISK AND IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTY OF ANY KIND. YOUR USE OF THE APP AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE SITE IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE. THE APP WAS ONLY TESTED ON SAMSUNG GALAXY S5 SM-G900A AND ANDROID SOPHIX TABLET MODEL NO: TAB 730G AS EMULATOR. THE APP MIGHT NOT WORK WITH ALL OTHER SMARTPHONES AND TABLETS.

Step 1: Schematic/Block Diagrams

<p>good </p><p>have a look on <a href="https://www.youtube.com/watch?v=CYR_jigRkgk" rel="nofollow">virtuino </a>will help you to have better app.</p>
<p>10x for the info ... i'll check it l8r ^-^</p>

About This Instructable

296views

14favorites

License:

Bio: Thinker and Tinker ;)
More by iHackRobot:10 Basic Arduino Projects Arduino Robot controlled by Android Phone App IHackRobot Control Station App for Arduino and Android 
Add instructable to: