INTRODUCTION
Table of Contents
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:-
- Arduino Nano
- Bluetooth Module (hc-05)
- 8-Channel Relay Module
- LM 2596 DC-DC Buck Converter
- Red LED (5mm)
- Resistor (470E)
- Male – Female Berge Strip
- 2-Pin Block Connector
- Female-Female Berge Connector Wire
- Single Layer Copper Clad PCB Board
- Power Supply (12V, 1amp)
Hardware / Other Material:-
- PVC Switch Board
- Two-way Switch x 8
- 5-Pin socket x 2
- PCB Drill Machine
- Mini Hack Saw
- Ferric Chloride
- Container
- Iron
- Photo Paper
- Laser Printer (Tonner Filled)
- Screw Driver
- 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?
CIRCUIT DIAGRAM
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.
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.
Previous
Next
BLYNK APP INSTALLATION & SETUP
Previous
Next
Let’s Setup the BLYNK app
- 1.Install Blynk App from the google play store.
- 2.Create an Account On Blynk.
- 3.Create New Project.
- 4.You will get Token on your E-Mail.
- 5.Give Name to Project.
- 6.Select Device & Connection Type & click on Create Button.
- 7.Select Bluetooth, then add 8 buttons.
- 8.Give a name to Buttons.
- 9.Set the Pins.
- 10.The app setup is completed
ARDUINO CODE
- 1.Add Blynk library in your Arduino IDE
- 2.Sketch-Include Library-Manage libraries-Type Blynk-Install
- 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
Previous
Next
- 1.Connect Two-way switches to PVB switchboard.
- 2.Now connect switches to the relay module as per the above circuit diagram.
- 3.Also connect socket to relay module as per above circuit diagram.
- 4.Connect the load to the central pin of the switch as shown in the circuit diagram.
- 5.Now adjust LM2596 to 5V and connect to the PCB.
- 6.Fix all parts inside of a board.
- 7.Give Power Supply.
- 8.Now your project is done.
DEMO & TESTING
- 1.Open the Blynk app.
- 2.Turn On Bluetooth.
- 3.Click on the Bluetooth button & select hc-05
- 4.Now smartphones get Connected to the Home Automation System.
- 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