technoesolution
Published © CC BY-NC-ND

Home Automation System Using Smartphone and Bluetooth Part 2

In this project we are going to make Home automation system using smartphone as well as manual control, Let's make it.....

ExpertFull instructions provided2.5 hours1,655
Home Automation System Using Smartphone and Bluetooth Part 2

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
8-channel relay module
×1
HC-05 Bluetooth module
×1
LM 2596 DC-DC Buck Convertor
×1
Red LED (5mm)
×1
Through Hole Resistor, 470 ohm
Through Hole Resistor, 470 ohm
×1
Male - Female Berge Strip
×1
2-Pin Block Connector
×1
Female-Female Berge Connector Wire
×1
Single Layer Copper Clad PCB Board
×1
Power Supply (12V, 1amp)
×1

Software apps and online services

Blynk
Blynk
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

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 Gun Kit, Instant Heat
Soldering Gun Kit, Instant Heat

Story

Read more

Schematics

Circuit Diagram

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

Code

Arduino Code

C/C++
1.Add Blynk library in your Arduino IDE
2.Sketch-Include Library-Manage libraries-Type Blynk-
3.Copy Following code & Upload to Arduino Nano (Remove Bluetooth Module)
/*
 * 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";

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();
}

Credits

technoesolution
23 projects • 15 followers
Youtuber | Electrical Engineer | Electronics Lover | Article Writer | Project Developer |
Contact

Comments

Please log in or sign up to comment.