Home Automation System Using Smartphone and Bluetooth Part 2 With Manual Control

INTRODUCTION

Hello, friends welcome back to “DIYPROJECTSLAB”, In a previous article, we see how we can control the home appliances with the help of Smartphone & Bluetooth but there is no manual control for the system, so In this tutorial, we are going to make a Smartphone control as well as manual controlled home automation system with Complete details.

For manual control, I used a two-way switch which helps to manually control the appliances.

See the previous article on Home Automation.

If you like my project visit my youtube channel for my latest project.



Follow Me On:-
YOUTUBE INSTAGRAM FACEBOOK INSTRUCTABLES DAILYMOTION HACKSTER |

Also refer to the following video for detailed information:-

 https://youtu.be/2skF0VWt50M

MATERIAL REQUIRED

The following material is used in the project

Electronic Components:-

  1. Arduino Nano
  2. Bluetooth Module (hc-05)
  3. 8-Channel Relay Module
  4. LM 2596 DC-DC Buck Converter
  5. Red LED (5mm)
  6. Resistor (470E)
  7. Male – Female Berge Strip
  8. 2-Pin Block Connector
  9. Female-Female Berge Connector Wire
  10. Single Layer Copper Clad PCB Board
  11. Power Supply (12V, 1amp)

Hardware / Other Material:-

  1. PVC Switch Board
  2. Two-way Switch x 8
  3. 5-Pin socket x 2
  4. PCB Drill Machine
  5. Mini Hack Saw
  6. Ferric Chloride
  7. Container
  8. Iron
  9. Photo Paper
  10. Laser Printer (Tonner Filled)
  11. Screw Driver
  12. Soldering Kit

(The links above are affiliate links, If you buy from this given link then I will get some bonus)

INTRODUCTION TO IOT PLATFORM BLYNK

What is Blynk?
Blynk is a solution for building IoT applications available for  Android and iOS. Based on well-known platforms such as Arduino, Raspberry pi, ESP8266, ESP32, Intel Galileo, Particle,  Serial devices, and  Wifi among others, in a few minutes, you can create a high-quality dashboard with a large number of available widgets, Control, Display, Notification, and Video streaming

CIRCUIT DIAGRAM

Circuit Diagram 1
Capture1

Previous
Next

For making Circuit & PCB I used Easy EDA Software, I Provide the PCB layout just print and use the toner transfer method to make PCB.

Download PCB Layout

LET’S MAKE PCB



I make this PCB board to avoid complicated circuitry, so let’s make it. Follow the following steps to make PCB.

Also, Take reference from the following video, it helps you to understand how to make PCB using the toner transfer method.

Follow the following process for Making PCB Using Tonner Transfer Technic.

  • 1.Take a Single Sided Copper Clad PCB Board
  • 2.Cut the PCB as per PCB Layout
  • 3.Remove the dirt & rust from the PCB by using wire scrub or sandpaper
  • 4.Place layout print on PCB & Heat the PCB with the help of Iron for 5-10 Min
  • 5.Take water in the container & deep the PCB into the water for 5 min
  • 6.Slowly remove the paper from the PCB
  • 7.Now take 2-3 spoon of ferrite chloride powder in a container with water
  • 8.Deep PCB into the solution for 5-10 min for an etching process
  • 9.After etching completed clean the excessive tonner from the PCB
  • 10.Drill The PCB with the help of a PCB drill machine
  • 11.Now place app components on PCB & Solder It
  • 12.In this way the PCB board is completed.
Take Sigle Sided PCB
Cut as per PCB Layout
Clean with sand paper
Place PCB layout print on PCB
Heat for 5-10 min
Tonner transfer Successfully
Take PCB etching powder in container
Etch the PCB for 10 min
Ready For drilling
Drill pcb Using PCB drill machine
Place components on PCB
Solder all components on PCB

Previous
Next

BLYNK APP INSTALLATION & SETUP

Download Blynk Application
Create Account On Blynk
Screenshot_20201226-215341
Click on New Project
Screenshot_20201226-215441
Screenshot_20201226-215450
Screenshot_20201226-215510
Screenshot_20201226-215524
Screenshot_20201226-215604
Capture

Previous
Next

Let’s Setup the BLYNK app

  1. 1.Install Blynk App from the google play store.
  2. 2.Create an Account On Blynk.
  3. 3.Create New Project.
  4. 4.You will get Token on your E-Mail.
  5. 5.Give Name to Project.
  6. 6.Select Device & Connection Type & click on Create Button.
  7. 7.Select Bluetooth, then add 8 buttons.
  8. 8.Give a name to Buttons.
  9. 9.Set the Pins.
  10. 10.The app setup is completed

ARDUINO CODE

  1. 1.Add Blynk library in your Arduino IDE
  2. 2.Sketch-Include Library-Manage libraries-Type Blynk-Install
  3. 3.Copy Following code & Upload to Arduino Nano (Remove Bluetooth Module while uploading code)
/*
 * Hello Friends Welcome To Techno-E-Solution
 * Here is the Arduino Code for Home Automation by Techno-E-Solution
 */
#define BLYNK_USE_DIRECT_CONNECT
// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(0,1); // RX, TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "AuthToken"; // check your mail
void setup()
{
  // Debug console
  DebugSerial.begin(9600);
  pinMode (12, OUTPUT);
  pinMode (11, OUTPUT);
  pinMode (10, OUTPUT);
  pinMode (9, OUTPUT);
  pinMode (8, OUTPUT);
  pinMode (7, OUTPUT);
  pinMode (6, OUTPUT);
  pinMode (5, OUTPUT);
  pinMode (12, LOW); // Set All Pins Low Because At The Starting All Relays get ON, Results In All load 
  pinMode (11, LOW); // Connected Across Relay Module Get Turn On 
  pinMode (10, LOW);
  pinMode (9, LOW);
  pinMode (8, LOW);
  pinMode (7, LOW);
  pinMode (6, LOW);
  pinMode (5, LOW);
  DebugSerial.println("Waiting for connections...");
  // Blynk will work through Serial
  // 9600 is for HC-06. For HC-05 default speed is 38400
  // Do not read or write this serial manually in your sketch
  Serial.begin(9600);
  Blynk.begin(Serial, auth);
}
void loop()
{
  Blynk.run();
}

Arduino Code File (Download)

FINAL CONNECTION

Circuit
Socket
Screenshot_20210101-181107__01
Screenshot_20210101-181116__01
Screenshot_20210101-181128__01
Screenshot_20210101-181213__01

Previous
Next

  1. 1.Connect Two-way switches to PVB switchboard.
  2. 2.Now connect switches to the relay module as per the above circuit diagram.
  3. 3.Also connect socket to relay module as per above circuit diagram.
  4. 4.Connect the load to the central pin of the switch as shown in the circuit diagram.
  5. 5.Now adjust LM2596 to 5V and connect to the PCB.
  6. 6.Fix all parts inside of a board.
  7. 7.Give Power Supply.
  8. 8.Now your project is done.


DEMO & TESTING

  1. 1.Open the Blynk app.
  2. 2.Turn On Bluetooth.
  3. 3.Click on the Bluetooth button & select hc-05
  4. 4.Now smartphones get Connected to the Home Automation System.
  5. 5.Now you can control 8 Load by using your Smartphone.

For better understanding go through the following video :-

Here is a complete video tutorial, If you like this video Subscribe to our youtube channel for more interesting project Ideas.

 




Thank You

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x