technoesolution
Published © CC BY-NC-ND

Home Automation System Using Smartphone and Bluetooth

In this project we are going to develop home automation system using Smartphone & Blynk app using Bluetooth. Let's make it...

AdvancedFull instructions provided2 hours3,196
Home Automation System Using Smartphone and Bluetooth

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
8-Channel Relay Module
×1
LM2596 DC-DC Buck Convertor
×1
5 mm LED: Red
5 mm LED: Red
×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) Adapter
×1

Software apps and online services

Blynk
Blynk
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

PCB Drill Machine
Mini Hack Saw
Ferric Chloride
Container
Soldering Gun Kit, Instant Heat
Soldering Gun Kit, Instant Heat
Iron
Photo Paper
Laser Printer (Tonner Filled)

Story

Read more

Schematics

Circuit Diagram

I make this Circuit in "Easy EDA" and I also make a PCB Layout of this project. So you can easily make the circuit & PCB.

Code

Arduino Code

C/C++
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)
/*
 * 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 Beacause 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

technoesolution

2 projects • 12 followers
Youtuber | Electrical Engineer | Electronics Lover | Article Writer | Project Developer |

Comments

Add projectSign up / Login