Speech Controlled Arduino-based Systems Using C# by Yury Magda

Speech Controlled Arduino-based Systems Using C# by Yury Magda

Author:Yury Magda [Magda, Yury]
Language: eng
Format: epub
Published: 2018-07-30T23:00:00+00:00


In this project, don’t forget to add the reference to the System.Speech assembly (Fig.10).

Fig.10

The Arduino source code is shown below (Listing 5).

Listing 5.

#include <SoftwareSerial.h>

#define rxPin 2

#define txPin 3

String strRX = "";

String cmd[3] = { "PIN 13 IS HIGH",

"PIN 13 IS LOW",

"PIN 13 TOGGLES" };

SoftwareSerial serial1(rxPin, txPin);

void setup(){

pinMode(rxPin, INPUT);

pinMode(txPin, OUTPUT);

serial1.begin(19200);

pinMode(13, OUTPUT);

digitalWrite(13, LOW);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.