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
| 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
- User speaks a command (e.g., “Turn ON light”) into mobile app.
- App converts voice to text.
- Text command is sent via Bluetooth (HC-05).
- Arduino receives command through serial communication.
- Arduino checks command string.
- 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
SoftwareSerialcreates communication with HC-05bluetooth.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