electrify_circuit
Published © GPL3+

Bluetooth Control Home Automation Using Esp 32

Hello, Friends Welcome to my Channel "Electrify Circuit". This video is Bluetooth Control Home Automation Using Esp 32 (BLE).

BeginnerFull instructions provided1,355
Bluetooth Control Home Automation Using Esp 32

Things used in this project

Hardware components

FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth)
DFRobot FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth)
×1
Relay Module (Generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Wire, Wrapping Wire
Wire, Wrapping Wire
×1

Software apps and online services

Arduino IDE
Arduino IDE
MIT App Inventor
MIT App Inventor
For making app

Story

Read more

Schematics

Circuit Diagram

Code

Code

Arduino
//This Video Making by Electrify Circuit Subscribe this Channel
//https://www.youtube.com/channel/UCIr4PGxiEQWmYswJPueRlMQ
// Like this facebook Page: https://www.facebook.com/Electrify-Circuit-108154251467438
// Follow In Instagram: https://www.instagram.com/electric_circuit_099/
// View Blog: https://electriccircuitarduino.blogspot.com/
//--------------------Electrify Circuit--------------------------------
#include "BluetoothSerial.h" 

BluetoothSerial ESP_BT; 

int Room_Ligth_1 = 13;
int Room_Ligth_2 = 12;
int Room_Ligth_3 = 14; 
int TV = 27;
int Fan = 26;    

int incoming;

void setup() {
  Serial.begin(19200);
  ESP_BT.begin("Electrify Circuit"); 

  pinMode (Room_Ligth_1, OUTPUT);
  pinMode (Room_Ligth_2, OUTPUT);
  pinMode (Room_Ligth_3, OUTPUT);
  pinMode (TV, OUTPUT);
  pinMode (Fan, OUTPUT);
}

void loop() {
  
  
  if (ESP_BT.available()) 
  {
    incoming = ESP_BT.read(); 

    
    int button = floor(incoming / 10);
    int value = incoming % 10;
    
    switch (button) {
      case 1:  
        Serial.print("Button 1:"); Serial.println(value);
        digitalWrite(Room_Ligth_1, value);
        break;
      case 2:  
        Serial.print("Button 2:"); Serial.println(value);
        digitalWrite(Room_Ligth_2, value);
        break;
      case 3:  
        Serial.print("Button 3:"); Serial.println(value);
        digitalWrite(Room_Ligth_3, value);
        break;
      case 4:  
        Serial.print("Button 4:"); Serial.println(value);
        digitalWrite(TV, value);
        break;
      case 5:  
        Serial.print("Button 5:"); Serial.println(value);
        digitalWrite(Fan, value);
        break;
    }
  }
}

Credits

electrify_circuit

electrify_circuit

1 project • 0 followers

Comments