Good evening. I was working on a project with my brand new nano every. I was tinkering around when I had the idea to implement Bluetooth (HC-06) into it. But when I tried, It would ignore every command. I wanted to make shore that my code was working, so I got my arduino uno and it work perfectly. dose anyone know why this is happening?
Thank You
Also here is my sketch:
int pin12 = 12;
void setup()
{
Serial.begin(9600);
pinMode(pin12, OUTPUT);
}
void loop(){
if (Serial.available())
{
int value = Serial.read();
if (value =='1') digitalWrite(pin12, HIGH);
else if (value =='0') digitalWrite(pin12, LOW);
}
}
Did you use a level shifter on the RX pin of the BT module.
The Every is 5volt logic. The HC-06 needs 5volt power, but it's I/O is 3.3volt.
Failing to use a 2-resistor level shifter could sooner or later damage the HC-06.
Leo..