Arduino Voice Control
도구 | 2.8MB
Bluetooth를 통해 Arduino에 음성 명령을 보내고 프로세스를 완료하고 Serial.Print로 다시 답변하십시오. 모바일 장치에서 음성을 받게됩니다!
#define LED 13 //
BR> void setup () {
핀 모드 (LED, 출력); DigitalWrite (LED, 낮음);
Serial.Begin (9600)
void 루프 () {
while (serial.available ()) {
char c = (char) serial.read (); readstring = c;
readstring.length ()> 0) {
{readstring == "open") {
digitalwrite (LED, 하이);
serial.Print ( "열림");}
digitalwrite (LED, 낮음);
Serial.Print ( "Closed");
else if (readstring = = "홈") {
// 학위 계산 프로세스 등
serial.Print ( "홈 이제는 21도");
} & readstring == " 한국어 ") {
Serial.Print ("안녕하세요, 안녕하세요? ")}} {
Serial.Print ("나는 당신을 이해할 수 없었습니다. ");
}
readstring = "";
지연 (100);
Arduino'nuza sesli komut gönderebildiğiniz gibi sesli yanıt alabileceksiniz! Arduino'nuza sorular sorun ve gelen cevabı sesli dinleyin!
You will receive an audio response as you can send voice commands to your Arduino! Ask your Arduino and listen to the answer!