Arduino Voice Controlled Home Automation Using Bluetooth

https://images.openai.com/static-rsc-4/-M7PBXCfHksgLwwM7LlwzQdX6GtR4J0xWawRq3TeAKbskrOtaLrxlzhTBvF89esjt_XD7h_BVJ7LHD2Jt0NbwHy6O2wsKVkFVQNcfmDrvNh3kUK9-HoZ3ZpjrzFkgw5ffNTiRYx1dmIZk7ePlvXFqMPhOXj5m5b5o6lIlJvmocZRb0giLFs-oczh6GUvNV3M?purpose=fullsize

 1.Introduction

Voice control is one of the most exciting features in modern smart homes. In this project, we use an Arduino with HC-05 Bluetooth module to control home appliances using voice commands from a smartphone.

A mobile app converts voice into text commands and sends them via Bluetooth to Arduino, which then controls appliances through a relay module.

This project is ideal for:

  • Smart home beginners
  • Arduino learners
  • Assistive technology applications

2. Components

  • Arduino UNO
  • HC-05 Bluetooth Module
  • Relay Module (1 or 2 channel)
  • Bulb / Fan
  • Jumper Wires
  • Breadboard
  • Smartphone with Bluetooth app (e.g., voice control app)

3. Circuit and Connections


Pin Diagram Arduino Uno R3

HC-05 Bluetooth Module Pinout Diagram
HC-05 Bluetooth Module Pinout Diagram

Pinout Diagram of Single Channel Relay Module
Pinout Diagram of Single Channel Relay Module

🔌 Connections:

HC-05 → Arduino

  • VCC → 5V
  • GND → GND
  • TX → Arduino Pin 10
  • RX → Arduino Pin 11 (via voltage divider recommended)

Relay Module → Arduino

  • VCC → 5V
  • GND → GND
  • IN → Pin 8

⚠️ Appliance Connection

  • Live → Relay COM
  • NO → Appliance
  • Neutral → Direct

4. Detailed Step-by-Step Circuit Working

  1. User speaks a command (e.g., “Turn ON light”) into mobile app.
  2. App converts voice to text.
  3. Text command is sent via Bluetooth (HC-05).
  4. Arduino receives command through serial communication.
  5. Arduino checks command string.
  6. If matched:
    • Relay turns ON/OFF
    • Appliance is controlled

5. Code

#include <SoftwareSerial.h>

SoftwareSerial bluetooth(10, 11); // RX, TX

int relayPin = 8;
String command = "";

void setup() {
pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, LOW);

Serial.begin(9600);
bluetooth.begin(9600);
}

void loop() {
while (bluetooth.available()) {
char c = bluetooth.read();
command += c;
}

if (command.length() > 0) {
Serial.println(command);

if (command.indexOf("ON") != -1) {
digitalWrite(relayPin, HIGH);
}
else if (command.indexOf("OFF") != -1) {
digitalWrite(relayPin, LOW);
}

command = "";
}
}

6. Detailed Step-by-Step Code Working

  • SoftwareSerial creates communication with HC-05
  • bluetooth.read() reads incoming data
  • Command string is built character by character
  • indexOf() checks for keywords like “ON” or “OFF”
  • Relay is controlled accordingly

7. Tips

  • Use apps like Arduino Bluetooth Controller or AMR Voice
  • Ensure Bluetooth pairing (default password: 1234/0000)
  • Avoid long sentences—use simple commands
  • Add multiple relays for more appliances
  • Use proper isolation for AC wiring ⚠️

8. Uses

  • Voice-controlled home automation
  • Assistive systems for elderly/disabled
  • Smart classroom control
  • DIY IoT systems

9. Conclusion

This project demonstrates how voice commands can be used to control real-world appliances using Arduino and Bluetooth. It is a simple yet powerful step toward smart home automation and human-machine interaction.



Note: For More Detailed Interface Please Check Below LInk

https://simplebasicelectronics.blogspot.com/2026/02/bluetooth-controlled-led-using-arduino.html

https://simplebasicelectronics.blogspot.com/2026/03/diy-bluetooth-smartphone-controlled-toy-car-arduino.html

https://simplebasicelectronics.blogspot.com/2026/03/arduino-automatic-bathroom-light-exhaust-pir.html

à´¤ുà´Ÿà´•്à´•à´•്à´•ാർക്à´•ാà´¯ി ഇലക്à´Ÿ്à´°ോà´£ിà´•്à´¸് ലളിതമാà´¯ി പഠിà´•്à´•ാം.

Empowering students in Kerala with hands-on technical skills.