Skip to main content

Posts

Showing posts from October, 2016

voice control android

Arduino and Android Voice control Robot ( How to make a voice control robot) #include <SoftwareSerial.h> SoftwareSerial BT(10, 11); //TX, RX respetively String readvoice; void setup() {  BT.begin(9600);  Serial.begin(9600);   pinMode(3, OUTPUT);   pinMode(4, OUTPUT);   pinMode(5, OUTPUT);   pinMode(6, OUTPUT); } //-----------------------------------------------------------------------//  void loop() {   while (BT.available()){  //Check if there is an available byte to read   delay(10); //Delay added to make thing stable   char c = BT.read(); //Conduct a serial read   readvoice += c; //build the string- "forward", "reverse", "left" and "right"   }    if (readvoice.length() > 0) {     Serial.println(readvoice);   if(readvoice == "forward")   {     digitalWrite(3, HIGH);     digitalWrite (4, HIGH);     digitalWrite(5,LOW);     digitalWrite(6,LOW);     delay(100);   }   else if(readvoice == "reverse")   {     d