Developed to manage your Arduino applications via voice commands via bluetooth module. Complete the circuit, run the app, turn on the bluetooth connection, connect to the bluetooth device and start managing your Arduino app! Visit our site for sample codes and Arduino circuits
Example Code:
#define ledKirmizi 3 // We have defined our led
String value = "";
void setup () {
pinMode (ledRed, OUTPUT);
Serial.beg the (9600);
}
void loop () {
// if it receives incoming data, we receive it.
while (Serial.available ()) {
char c = (char) Serial.read ();
value + = c;
}
if (value.length ()> 0) {
if (value == "open")
{
digitalwrit A (ledkirmiz is HIGH);
}
if (value == "close") {
digitalwrit A (ledkirmiz is LOW);
}
value = "";
}
delay (100);
}