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 :-
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
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.
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!
ReplyDeleteHome Automation delares in hyderabad and visakhapatnam
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