Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Student Projects & STEM Education

Smart Home STEM Project: Voice Controlled Lights Arduino

Smart Home STEM Project: Voice Controlled Lights Arduino

March 11, 2026 /Posted byJayesh Jain / 0

Build a Voice Controlled Home Automation System with Arduino

Imagine walking into a room and saying “lights on” — and they turn on. No switches, no apps, just your voice. This smart home STEM project combines speech recognition, Arduino programming, and relay control to create a genuinely useful home automation system. Students across India are building similar projects for science fairs, college submissions, and personal use.

This guide walks you through building a voice controlled light switch using Arduino and a Bluetooth-based voice recognition app. You will learn about serial communication, relay modules, and how to interface mobile apps with microcontrollers — skills directly relevant to IoT engineering careers.

Why Voice Control for a STEM Project?

Voice controlled systems represent the convergence of several engineering disciplines: signal processing, wireless communication, embedded systems, and software development. When you build a voice controlled light, you are not just wiring a relay — you are understanding how data flows from sound wave to digital command to physical action.

For STEM competitions and college projects in India, this project stands out because it is both technically rigorous and practically demonstrable. Judges can interact with your project directly, which makes for a compelling presentation.

Components Required

  • Arduino Uno or Nano
  • HC-05 or HC-06 Bluetooth module
  • 5V single-channel relay module
  • LED (for safe demonstration) or AC lamp with proper enclosure
  • Jumper wires and breadboard
  • Android smartphone (for voice recognition app)
  • USB cable and 9V battery or USB power bank
  • Optional: BC547 transistor + 1kΩ resistor (if relay module lacks onboard driver)
Recommended: Arduino Uno R3 Development Board — Genuine ATmega328P board, perfect for voice control and home automation STEM projects.

How the System Works

The architecture is straightforward:

  1. You speak a command on your smartphone
  2. A free app (Arduino Voice Control or AMR Voice) converts speech to text
  3. The text is sent over Bluetooth to the HC-05 module
  4. Arduino reads the text via Serial and parses the command
  5. Arduino triggers the relay ON or OFF accordingly
  6. The relay switches the connected lamp or LED

This approach avoids cloud dependencies — everything happens locally between your phone and Arduino, so it works without internet connectivity.

Circuit Connections

HC-05 Bluetooth Module to Arduino

HC-05 Pin Arduino Pin
VCC 5V
GND GND
TX D2 (SoftwareSerial RX)
RX D3 (via voltage divider to 3.3V)

Important: HC-05 RX pin is 3.3V logic. Use a voltage divider (1kΩ and 2kΩ) between Arduino D3 and HC-05 RX to avoid damaging the module.

Relay Module to Arduino

  • VCC → 5V
  • GND → GND
  • IN → D7

Connect your LED (with 220Ω series resistor) between the relay’s Normally Open (NO) and Common (COM) terminals for safe testing.

Arduino Code

#include <SoftwareSerial.h>

SoftwareSerial BT(2, 3); // RX=D2, TX=D3

const int RELAY_PIN = 7;
String command = "";
bool lightState = false;

void setup() {
  Serial.begin(9600);
  BT.begin(9600);
  pinMode(RELAY_PIN, OUTPUT);
  digitalWrite(RELAY_PIN, HIGH); // Relay OFF (active low)
  Serial.println("Voice Light Control Ready");
}

void loop() {
  while (BT.available()) {
    char c = BT.read();
    if (c == 'n' || c == 'r') {
      processCommand(command);
      command = "";
    } else {
      command += c;
    }
  }
}

void processCommand(String cmd) {
  cmd.trim();
  cmd.toLowerCase();
  Serial.print("Received: ");
  Serial.println(cmd);

  if (cmd == "lights on" || cmd == "turn on" || cmd == "on") {
    digitalWrite(RELAY_PIN, LOW); // Relay ON
    lightState = true;
    BT.println("Lights turned ON");
    Serial.println("Light ON");
  } 
  else if (cmd == "lights off" || cmd == "turn off" || cmd == "off") {
    digitalWrite(RELAY_PIN, HIGH); // Relay OFF
    lightState = false;
    BT.println("Lights turned OFF");
    Serial.println("Light OFF");
  }
  else if (cmd == "status") {
    String state = lightState ? "ON" : "OFF";
    BT.println("Light is " + state);
  }
  else {
    BT.println("Unknown command: " + cmd);
  }
}

Setting Up the Android App

Several free apps work well for this project:

  • Arduino Bluetooth Controller (Google Play) — Has a dedicated voice mode that sends recognised text over Bluetooth
  • AMR Voice — Continuously listens and sends recognised speech
  • BT Voice Control for Arduino — Purpose-built for exactly this use case

Steps to connect:

  1. Power your Arduino circuit
  2. Pair HC-05 in Android Bluetooth settings (default PIN: 1234 or 0000)
  3. Open the voice control app and connect to HC-05
  4. Enable voice mode and speak commands
Recommended: HC-05 Bluetooth Module — Classic Bluetooth 2.0 module ideal for Arduino serial communication projects.

Extending the Project

Control Multiple Lights

Use a 4-channel relay module and assign different voice commands to each channel:

const int RELAY_PINS[] = {5, 6, 7, 8};

if (cmd == "bedroom on") { digitalWrite(RELAY_PINS[0], LOW); }
if (cmd == "kitchen on") { digitalWrite(RELAY_PINS[1], LOW); }
if (cmd == "all on") {
  for (int i = 0; i < 4; i++) digitalWrite(RELAY_PINS[i], LOW);
}

Add ESP8266 for WiFi Voice Control

Replace the HC-05 with an ESP8266 (NodeMCU) and use Google Assistant via IFTTT webhooks. This enables true internet-based voice control without needing your phone nearby. The ESP8266 receives HTTP requests from IFTTT and triggers the relay accordingly.

Add Feedback with LCD

A 16×2 LCD display connected over I2C can show the current state of each light, last command received, and system status. This improves your project presentation significantly.

Safety Considerations for AC Mains

If you choose to control real AC lights (beyond safe LED demonstrations):

  • Use a relay module rated for your mains voltage (230V AC in India)
  • Enclose all high-voltage wiring in a proper electrical box
  • Use properly rated wire and connectors
  • Never work on live circuits — always power off before modifying connections
  • Have an experienced adult supervise all mains wiring work
  • For competition demonstrations, always use LED loads — safer and sufficient to prove concept

Most STEM competition judges will actually prefer an LED-based demo as it shows awareness of electrical safety practices.

Project Enhancements for Competition

Enhancement Complexity Impact
Multiple light zones Low High
LCD status display Low Medium
Timer/schedule feature Medium High
Motion sensor override Medium High
WiFi + remote control High Very High
Energy monitoring High Very High

Frequently Asked Questions

Can I use ESP32 instead of Arduino for this project?

Yes, and ESP32 is actually better for this application. It has built-in Bluetooth (both classic and BLE) and WiFi, eliminating the need for the HC-05 module. The code structure remains similar but uses ESP32’s built-in BluetoothSerial library.

Does this project require internet connectivity?

The basic Bluetooth version works entirely offline. The ESP8266/IFTTT extension requires internet. For competitions with no WiFi access, the Bluetooth version is more reliable.

What is the range of the HC-05 Bluetooth module?

The HC-05 has a range of approximately 10 metres in open space. Walls reduce this to 5-7 metres. This is sufficient for controlling lights in a single room.

Can this control fans or air conditioners too?

Relay modules can switch any AC load within their rated current. A standard 10A relay module can control fans, air conditioners, and water heaters. Use appropriate wire gauges for higher current loads.

How do I handle command recognition errors?

Google’s speech recognition is generally accurate for short commands. Use short, distinct commands (“on”, “off”, “bedroom”) rather than long phrases. Avoid commands that sound similar to each other.

Recommended: 5V Single Channel Relay Module — Optocoupler-isolated relay for safe Arduino-to-mains switching in home automation projects.

Conclusion

This voice controlled lights project is one of the most impactful STEM builds a student can create — it is practical, demonstrable, and teaches core IoT concepts. Starting with a Bluetooth-based Arduino implementation and then extending to WiFi and multi-room control gives you a natural progression that works for both first-time builders and experienced students looking for competition-worthy complexity.

The skills you develop — serial communication, relay control, mobile app integration — directly apply to professional IoT development roles. Indian technology companies are actively hiring engineers with hands-on embedded systems experience, and a well-documented project like this one is excellent evidence of that capability.

Shop Arduino & STEM Kits at Zbotic →

Tags: Arduino voice control, HC-05 Bluetooth, home automation arduino, IoT project students, relay module, smart home project, STEM project, voice controlled lights
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
Flex PCB Design: Flexible Circ...
blog flex pcb design flexible circuit board guide for india 599253
blog audio amplifier ic comparison tda2030 vs lm386 vs tpa3116 599267
Audio Amplifier IC Comparison:...

Related posts

Svg%3E
Read more

CubeSat Kit: Satellite Building for Education

April 1, 2026 0
The cubesat kit is one of the most exciting STEM projects you can take on in India today. Whether you... Continue reading
Svg%3E
Read more

Weather Balloon: High-Altitude Data Collection

April 1, 2026 0
The weather balloon is one of the most exciting STEM projects you can take on in India today. Whether you... Continue reading
Svg%3E
Read more

Automatic Irrigation: Multi-Zone Watering Controller

April 1, 2026 0
The automatic irrigation is one of the most exciting STEM projects you can take on in India today. Whether you... Continue reading
Svg%3E
Read more

Smart Weighbridge: Load Cell Industrial Scale

April 1, 2026 0
The smart weighbridge is one of the most exciting STEM projects you can take on in India today. Whether you... Continue reading
Svg%3E
Read more

Vending Machine: Arduino Coin and Product Dispenser

April 1, 2026 0
The vending machine is one of the most exciting STEM projects you can take on in India today. Whether you... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now