TALKING ROBOT

COMPONENTS REQUIRED:

  • Arduino UNO
  • Bluetooth Module
  • Jumper wires
  • Sd card
  • SD card module
  • Speaker

Circuit Diagram:

Procedure:

  • Give the connections as shown in figure above.
  • Format the SD card.
  • Go to browser and search
  • https://audio.online-convert.com/convert-to-wav
  • Record your audio and convert you audio into wav format with this website.
  • Download the converted audio and paste it into the formatted SD card .
  • Upload arduino code to Arduino uno & connect RX and TX pins of Bluetooth module to arduino.
  • Insert the SD  to SD card module .
  • Download the AMR Voice application or Bluetooth voice control APP.
  • Download the library file of TMRpcm.

Arduino source code:

#include <SD.h>
#include <TMRpcm.h>
String voice;
#define SD_ChipSelectPin 4
TMRpcm FBSSS;             

void setup(){
FBSSS.speakerPin = 9; 
Serial.begin(9600);
if (!SD.begin(SD_ChipSelectPin)) { 
return;                            
  }
FBSSS.setVolume(7);      
}

void loop(){
while(Serial.available()){
delay(10);
char c = Serial.read();
if (c == ‘#’){
break;
}
voice += c;
}
if (voice.length() >0){
if(voice == “*hi robot”)
{
FBSSS.play(“Pleadge.wav”);
}
voice=” “;
 }
}

THE ARDUINO IS READY TO TALK

Leave a Reply

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