0% found this document useful (0 votes)
76 views

Voice Control Lighting System

This document describes how to build a voice controlled LED lighting system using an Arduino UNO, HC-06 Bluetooth module, LEDs, resistors, and an Android app. The system allows sending voice commands to the Bluetooth module to turn an LED on or off. It requires an Arduino, Bluetooth module, LEDs, resistors, breadboard, wires, and Android app to receive voice commands and control the LED based on the "light on" or "light off" commands.

Uploaded by

abhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

Voice Control Lighting System

This document describes how to build a voice controlled LED lighting system using an Arduino UNO, HC-06 Bluetooth module, LEDs, resistors, and an Android app. The system allows sending voice commands to the Bluetooth module to turn an LED on or off. It requires an Arduino, Bluetooth module, LEDs, resistors, breadboard, wires, and Android app to receive voice commands and control the LED based on the "light on" or "light off" commands.

Uploaded by

abhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Voice control lighting system

Introduction:
Controlling LEDs with voice command seems to be a difficult task, but it’s easy and
you can quickly build it. We just need an Arduino UNO to serially communicate with HC-06
Bluetooth module and a smartphone to send voice command to Bluetooth module HC-06. For
receiving voice command we are using “Arduino Bluetooth Voice Controller” android app
which you can download from play store.

Material requirement:
1. Arduino-UNO
2. HC-06 Bluetooth Module
3. LEDs (Red, and Green)
4. Resistor 220 ohm (2 nos.)
5. Breadboard
6. Connecting wires

Connection:

Code:
String readString;
int IN1=13;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(IN1,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
while(Serial.available())
{ //Check if there is an available byte to read
delay(10);
char c = Serial.read(); //Conduct a serial read
if (c == ',')
{
break;
}
readString += c;
}
Serial.println(readString);
if (readString.length() > 0)
{
Serial.println(readString);
if(readString == "light on")
{
digitalWrite(IN1, HIGH);
}
if ( readString=="light off")
{
digitalWrite(IN1, LOW);
}
readString = "";
}

You might also like