Skip to main content

Home Automation Using Arduino (Relay Module)


Inroduction to Home Automation

Home automation or domotics is building automation for a home, called a smart home or smart house. It involves the control and automation of lighting, heating (such as smart thermostats), ventilation, air conditioning (HVAC), and security, as well as home appliances such as washer/dryers, ovens or refrigerators/freezers. Wi-Fi is often used for remote monitoring and control. Home devices, when remotely monitored and controlled via the Internet, are an important constituent of the Internet of Things. Modern systems generally consist of switches and sensors connected to a central hub sometimes called a "gateway" from which the system is controlled with a user interfacethat is interacted either with a wall-mounted terminal, mobile phone software, tablet computer or a web interface, often but not always via Internet cloud services.

                           

Connection for Relay and arduino uno :-


Wire the setup as shown in figure :-






Arduino                                                                                     Single Channel Module

5V                                            Vcc
Gnd                                           Gnd
Digital 13 Pin                                IN


Connection for HC-05 and arduino uno :-

Image result for arduino bluetooth robot
Arduino                                                                                     HC-05 Bluetooth Module

3.3V                                          Vcc
Gnd                                           Gnd
 Tx                                           Rx
 Rx                                           Tx


Code for Project :-




Android app for the project :


Download the following app 

https://play.google.com/store/apps/detailsid=eu.jahnestacado.arduinorc&hl=en


  Arduino Bluetooth  Controller- screenshot thumbnail                        Arduino Bluetooth  Controller- screenshot

   Arduino Bluetooth  Controller- screenshot


This android application can establish a connection with any Arduino/microcontroller project that involves a bluetooth module! It allows the user to set a UUID of his own bluetooth module in order to connect the android application with his projects!!! The default UUID that comes with this application is for the HC-06 Wireless Serial 4 Pin Bluetooth RF Transceiver Module RS232. (If you use default UUID in order to pair the BT module with your smartphone for the first time, you will have to give a 4-digit password. This password is '1234'.)

The application is comprised of 4 Command Modes:

1. Vehicle Mode : By pressing the "joystick" button the user can remote control a vehicle with specific gestures. For the interpretation of gestures to commands, the application uses the built-in accelerometer sensor of the smart device. There are 8 different gestures available (FRONT, BACK, LEFT, RIGHT, FRONT_LEFT, FRONT_RIGHT, BACK_LEFT, BACK_RIGHT).

You can set these gestures with your own custom commands through the the menu button "Set Commands".
Additionally, there is a STOP and an ANDROID button that can be assigned with custom commands as well.

***IMPORTANT*** The mode provides via the menu options the option to change the orientation of accelerometer axises (X->Y, Y->X) in order to operate properly in Android phones with different default orientation. 

Moreover, menu options provide a sensitivity change button to modify the point where the app catches the gesture events for this mode. As the title suggests, this mode is specifically designed to remote control a vehicle which uses a bluetooth module and a microcontroller.


2. Fader Mode : This mode provides the user with a fader-seekbar that can send commands from 0-9 and allow the user to experiment with servos, leds, motors and many more.

3. Controller Mode : This mode provides a standard controller layout with 10 buttons in total that can be assigned with custom commands. The arrow buttons are specifically designed to send commands continuously while pressed, in order to simulate an actual controller.

4. Terminal Mode : This mode provides a terminal-like interface in which the user can type and send an individual or multiple commands which will execute sequentially. Since Arduino serial port receives one byte at a time, if the user types a string in the input text field, the application divides that string into characters and sends them one by one to Arduino. It should be noted that spaces or empty strings are skipped.


All application settings and commands are permanently stored and can be accessed and modified any time according to your needs .



Final Execution of the project :-


Connect relay and hc-05 module as shown in the figure and connect the hc-05 module using the app described above and use the terminal mode and send character x and y to turn on and off the relay module using the terminal.




Comments

  1. Nice blog.Thanks for sharing such associate honest making a trial information with us.I hope you will share some associate honest making a trial deal of information with Home Automation.Please keep sharing!
    Home Automation delares in hyderabad and visakhapatnam

    ReplyDelete
  2. Okas integrates lighting, music, video, climate control, security, and more into one simple system—a system you can access and control from anywhere in the world. You determine when, where and how things happen. You decide what actions and events take place. Because only you know what is best for your lifestyle.​

    ReplyDelete

Post a Comment

Popular posts from this blog

Lock using 4 Push button switch with arduino

Introduction : A  combination lock  is a type of locking device in which a  sequence  of symbols, usually numbers, is used to open the lock. The sequence may be entered using a single rotating dial which interacts with several discs or  cams , by using a set of several rotating discs with inscribed symbols which directly interact with the locking mechanism, or through an electronic or mechanical keypad. Here we will be using arduino uno along with em lock to make door lock with password.  Code of the project :- const int buttonPin1 = 1; const int buttonPin4 = 4; const int buttonPin3 = 3; const int buttonPin2 = 2; // the pin that the pushbutton is attached to const int correctLedPin = 7;       // the pin that the LED is attached to const int wrongLedPin = 6;  const int motorPin = 11;// the pin that the LED is attached to // variables that are changed by the program int buttonPushCounter = 0;   // co...

Voice Recording Module ISD1820 with Arduino

1 Introduction  Voice Record Module is base on ISD1820, which a multiple‐message record/playback device. It can offers true single‐chip voice recording, no‐volatile storage, and playback capability for 8 to 20 seconds. The sample is 3.2k and the total 20s for the Recorder. This module use is very easy which you could direct control by push button on board or by Microcontroller such as Arduino, STM32, ChipKit etc. Frome these, you can easy control record , playback and repeat and so on. 2 Feature  - Push‐button interface, playback can be edge or level activated - Automatic power‐dwon mode - On‐chip 8Ω speaker driver - Signal 3V Power Supply - Can be controlled both manually or by MCU - Sample rate and duration changable by replacing a single resistor - Record up to 20 seconds of audio - Dimensions: 37 x 54 mm If you want change record duration, an external resistor is necessary to select the record duration and sampling frequency, which can range from ...