Dear.
I have problems with bluetooth hc 06.
He had a scketch that worked well. But now it does not work. hc 06 connects me but does nothing. No problem if you will ide or plate, but I've had in others and either.
any ideas
#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);
int led=13;
void setup()
{
BT.begin(9600);
Serial.begin(9600);
pinMode(led,OUTPUT);
}
void loop()
{
while (BT.available())
{
int dato= BT.read();
digitalWrite(led,LOW);
switch(dato)
{
case '9':
{
digitalWrite(led,HIGH);
Serial.println("Led encendido");
break;
}
case '0':
{
digitalWrite(led,LOW);
Serial.println("Led apagado");
break;
}
}
}
}