Why dose my Arduino Nano Every not work with my HC-06?

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);
  }
}

Perhaps you have wired the Nano Every incorrectly.

I quadrupled checked the wiring

What wiring?

for the BT moudule

Could it be that the HC06 is connected to Serial1?

This page may have information of interest.

How many wires, and from what pins to what pins? Did you wire Power and Ground?

RX on BT to TX on nano every
TX on BT to RX on nano every
GND to GND
VCC to 5V

Which TX on the Every?

TX on BT to RX on nano every

Which RX on the Every?

TX = pin 0
RX = pin 1

From the page that I linked:

Serial1 -> D0 (RX) / D1 (TX)

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..

I did not use any step down resistors to get the voltage to 3.3 but I did not with my uno which worked perfectly

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.