Coder Social home page Coder Social logo

ovisarkar62 / cost_effective_smart_home_automation_system_using_mobile_app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 49 KB

This project presents a cost effective smart home automation system. The whole system has been developed by using Bluetooth technology and smartphone application with indispensable hardware connections like Arduino, relay switching circuits etc.

C++ 100.00%
arduino bluetooth home-automation

cost_effective_smart_home_automation_system_using_mobile_app's Introduction

Cost_Effective_Smart_Home_Automation_System_Using_Mobile_App

This project presents a cost effective smart home automation system. The earlier version of home automation system used in the developed countries is very costly and complex for the users. Now a days, with the rapid growth of technologies in the developing countries, a smart home automation system is being adopted in many places. The developed system is very easy to operate by using smartphone and it is especially recommended for its low installation and maintenance cost. The whole system has been developed by using Bluetooth technology and smartphone application with indispensable hardware connections like Arduino, relay switching circuits etc.

Apparatus:

  • Arduino UNO
  • Relay module
  • HC 05 Wireless Bluetooth Module
  • Bulb
  • Resistors(2.2k ohm, 1k ohm)
  • Jumper wires

Connection of the Bluetooth HC-05 to the Arduino:

  1. Connected the Arduino’s +5V and GND pins to the bus strips.

  2. Powered the HC-05 module by connecting the 5V and GND pins to the bus strips.

  3. Connected the TXD pin on the HC-05 module with the RXD pin (Pin 0) on the Arduino. This connection allows the HC-05 to send data to the Arduino. The reason why we pair up TXD on the Bluetooth module with RXD on the Arduino is because the TXD pin is used to transmit data from the Bluetooth transceiver, while the RXD pin is used to receive data on the Arduino.

  4. Then connected the TXD pin on the Arduino to the RXD pin on the HC-05. This connection formed the second half of the two-way communication and is how the Arduino sends information to the HC-05.

Then connected the HC-05 module to the Arduino which can power the Arduino with a 12V DC supply or USB cable. If the red and blue LEDs on the HC-05 are blinking, then you have successfully connected the Bluetooth module with the Arduino. We don’t use the STATE and EN pins on the HC-05 module, since they are not required for this setup.

Relay Circuit Setup:

After that we have connected the relay module in series with our electrical load, so that we can break the connection when we want to turn the device off and complete the circuit when we want to turn it on. We have used a relay module which includes the relay drive circuit allowing it to connect directly to a microcontroller GPIO pin. The relay module we’ve used can handle up to 10 amps of current at up to 240V AC.

Connection of the Relay Module to the Arduino:

  1. First, connected the 5V and GND pins of the relay module to the bus terminals.

  2. Next, connected the IN1 pin on the relay module with PIN 4 on the Arduino.

  3. Finally, connected the AC load to the relay module.

Code Upload:

After successfully wired things up, the next step was to upload the code to the Arduino. So the Bulb_on_off.ino file was run into Arduino IDE.

Lights Control with Mobile App:

Had to download the Arduino Bluetooth Controller app on our Android device.

  1. Opened the app on our smartphone. It would ask for Bluetooth permissions. Have to Click ‘Allow’.
  2. Next, it would list all the available devices. We have to select HC-05.
  3. Once we select the device, we would be connected to the HC-05 transceiver. The app then prompt us to enter the mode that we wish to use. We would Select ”Switch” mode.
  4. We should be redirected to the following screen. Need to Click on the “Settings” icon in the top-right corner of the screen.
  5. It would ask us to set values for ON and OFF. Entering ‘1’ in the ON textbox and ‘0’ in the OFF textbox. Need to Click Submit.

Using the above setup, we can use a smart device that can controll loads on our home.


Author's Info


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.