Surilli
Published © LGPL

Voice Controlled LEDs Using Bluetooth HC-05 and Surilli GSM

Turning LEDs ON and OFF by sending voice signals from Bluetooth HC-05 and receiving them on the Arduino.

BeginnerFull instructions provided30 minutes2,065
Voice Controlled LEDs Using Bluetooth HC-05 and Surilli GSM

Things used in this project

Hardware components

Surilli GSM
Surilli GSM
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Voice Controlled LED's using Bluetooth HC-05 and Surilli GSM

Code

Voice_Controlled_LED's

C/C++
#include <SoftwareSerial.h>

String value;
int TxD = 11;
int RxD = 10;
int servoposition;
SoftwareSerial bluetooth(TxD, RxD);

void setup() {
  pinMode(13, OUTPUT);
  pinMode(5, OUTPUT);
  Serial.begin(9600);       // start serial communication at 9600bps
  bluetooth.begin(9600);
}

void loop() {
  Serial.println(value);
 if (bluetooth.available())
   {
    value = bluetooth.readString();

    if (value == "all LED turn on"){
    digitalWrite(13, HIGH);
    digitalWrite(5, HIGH);  
      }

    if (value == "all LED turn off"){
      digitalWrite(13, LOW); 
      digitalWrite(5, LOW);       
      }

    if (value == "turn on Red LED"){
    digitalWrite(13, HIGH); 
      }

    if (value == "turn on green LED"){
      digitalWrite(5, HIGH);       
      }
      
    if (value == "turn off red LED"){
    digitalWrite(13, LOW); 
      }

    if (value == "turn off green LED"){
      digitalWrite(5, LOW);       
      }

 }

}

Credits

Surilli

Surilli

196 projects • 62 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments