Voice-activated light Control using Arduino UNO -Automation project

Voice-activated light Control using Arduino UNO -Automation project

Voice activated light control system for home automation using Arduino Uno. controls the home appliance using voice commands.

in this project we control the appliances using a voice module integrated with Arduino UNO.

NAMEQUANTITYPRICE
Arduino UNO1₹ 200- ₹1000
$2.5 – $ 12
voice recognition module1
Relay1
jumper wiresAs Required
Breadboard1

How it will works

the voice recognition module will capture the voice command from the user. it will process the command and send the signal to the Arduino UNO. The Arduino UNO will process the command and send signal to the relay to control the appliances

implementation

Hardware connection

make the Hardware connection as per the instruction given below,

Voice ModuleArduino UNO
TXRX
RXTX
GNDGND
VCC5V

Relay connection

RelayArduino UNO
VCC5V
GNDGND
IN1D12

Programming Arduino UNO

C++
//ptogrammed by KAVIKUMARAN G
// Visit: Pickupmyskills.com
#include <SoftwareSerial.h>

SoftwareSerial mySerial(0, 1); // RX, TX 
const int Relay1 = 12; // Output Relay

void setup() {
  pinMode(Relay1, OUTPUT); // Set Relay1 as an output
  Serial.begin(9600);        // Start Serial for debugging
  mySerial.begin(9600);      // Start communication with voice module
  Serial.println("Voice-Controlled Light System Ready");
}

void loop() {
  if (mySerial.available() > 0) {
    int command = mySerial.read();
    
    if (command == 1) { 
      digitalWrite(lightPin, HIGH); // Turn on the light
      Serial.println("Light ON");
    } 
    else if (command == 2) { // Assuming "light off" command is mapped to '2'
      digitalWrite(lightPin, LOW); // Turn off the light
      Serial.println("Light OFF");
    }
  }
}

  1. Write the programm for the PRoject . the code is given above.
  2. connect the Arduino UNO to the conputer
  3. Select the correct Board and Port
  4. click the upload button to boot the program into the Arduino UNO

Test the project

  1. connect the Arduino to the power supply
  2. Speak “Light ON or Relay ON” to turn ON the Appliances
  3. Speak “Light OFF or Relay OFF” to turn OFF the Appliances

Leave a Comment

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

Scroll to Top