LOGIN
Ekhtiak Efat
4
Collaborator
Student
聽路聽Pabna,聽Bangladesh
Share
Report
Get Link
TUTORIAL

Making Arduino Voice Controlled LED Lights using Bluetooth Module and Android App

Required Elements:

  1. Arduino
  2. Bluetooth Module
  3. LED Lights (4 pieces)
  4. 1k/220ohm resistors (4 pieces)
  5. BT Voice Control for Android (android app)
    https://play.google.com/store/apps/details?id=robotspace.simplelabs.amr_voice&hl=en#
  6. Some Connecting Wires
    Video:

#arduino

Circuit Diagram:
https://drive.google.com/open?id=0ByHnclGEVDqbQTZJMkZ2blVGQ0U

Arduino Coding: (or see ending)
https://drive.google.com/open?id=0ByHnclGEVDqbeHFIMHQwQ2FVYlU

Making Process:
Assemble the circuits according to the circuit design
upload the arduino coding (in the time of uploading remove the bluetooth module)
install the android app
connect the Bluetooth in the android app
now make voice command like, (should have the internet connection on)
on all
off all
on 13
off 12
blink all
thank you, if you liked the tutorial, please like and subscribe my youtube channel 馃槂

String readString;

void setup() {
 Serial.begin(9600);
 Serial.println("serial started"); // so I can keep track of what is loaded
 pinMode(13,OUTPUT);
 pinMode(12,OUTPUT);
 pinMode(11,OUTPUT);
 pinMode(10,OUTPUT);
}

void loop() {

 
 while (Serial.available()) {
   delay(10);  //small delay to allow input buffer to fill

   char c = Serial.read();  //gets one byte from serial buffer
   if (c == ',') {
     break;
   }  //breaks out of capture loop to print readstring
   readString += c; 
 } //makes the string readString  

 if (readString.length() >0) {
   Serial.println(readString); //prints string to serial port out
if(readString=="*on 13#" || readString=="*on thirteen#") 
digitalWrite(13,HIGH);
else if(readString=="*on 12#" || readString=="*on twelve#") 
digitalWrite(12,HIGH);
else if(readString=="*on 11#" || readString=="*on eleven#") 
digitalWrite(11,HIGH);
else if(readString=="*on 10#" || readString=="*on ten#") 
digitalWrite(10,HIGH);
else if(readString=="*of 12#"  || readString=="*off 12#") 
digitalWrite(12,LOW);
else if(readString=="*of 11#"   || readString=="*off 11#") 
digitalWrite(11,LOW);
else if(readString=="*of 10#"  || readString=="*off 10#") 
digitalWrite(10,LOW);
else if(readString=="*of 13#"  || readString=="*off 13#") 
digitalWrite(13,LOW);
else if(readString=="*of all#"  || readString=="*off all#") { 
 digitalWrite(13,LOW);
 digitalWrite(12,LOW);
 digitalWrite(11,LOW);
 digitalWrite(10,LOW);}
 else if(readString=="*on all#") { 
 digitalWrite(13,HIGH);
 digitalWrite(12,HIGH);
 digitalWrite(11,HIGH);
 digitalWrite(10,HIGH);}
  else if(readString=="*blink all#" || readString=="*bling all#") {
   int i=1;
   for (i=1;i<6;i++){
 digitalWrite(13,HIGH);
 digitalWrite(12,HIGH);
 digitalWrite(11,HIGH);
 digitalWrite(10,HIGH);
 delay(200);
  digitalWrite(13,LOW);
 digitalWrite(12,LOW);
 digitalWrite(11,LOW);
 digitalWrite(10,LOW);
  delay(200);}
 }
   readString=""; //clears variable for new input
 }
}


5likes
Like
Award Contribution
Steven Reubenstone
34
Community Expert
Mechanical Engineer & Tinkerer of Things.
聽路聽New York,聽U.S.
Share
Report
Get Link

nice work

Like
1like
Award Contribution
Ekhtiak Efat
4
Collaborator
Student
聽路聽Pabna,聽Bangladesh
Share
Report
Get Link
Like
0like
Award Contribution
Ekhtiak Efat
4
Collaborator
Student
聽路聽Pabna,聽Bangladesh
Share
Report
Get Link

now i got, how to add the coding in the post. 馃槂

Like
0like
Award Contribution
Steven Reubenstone
34
Community Expert
Mechanical Engineer & Tinkerer of Things.
聽路聽New York,聽U.S.
Share
Report
Get Link

im glad you figured that out

Like
1like
Award Contribution
Leave a reply...
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED
New Post
Facebook Share
Share Link
Help