Arduino Code
This was the code used for arduino programming: #include <SoftwareSerial.h> SoftwareSerial BT(10, 11); // TX, RX String state; void setup() { // put your setup code here, to run once: BT.begin(9600); Serial.begin(9600); pinMode(13, OUTPUT); pinMode(12, OUTPUT); pinMode(6, OUTPUT); pinMode(2, OUTPUT); } void loop() { // put your main code here, to run repeatedly: while (BT.available()){ delay(10); char c = BT.read(); state += c; } if (state.length() > 0){ Serial.println(state); if(state == "acende vermelho") { digitalWrite(13, HIGH); } else if(state == "apaga vermelho") { digitalWrite(13, LOW); } else if(state == "acende Verde") { digitalWr...