Arduino Micro + HC-05 --> Rx not working

Hi everyone,

I am struggling to get the connection HC-05 Tx --> Arduino Micro Rx working properly, while the other direction (Arduino Micro Tx --> HC-05 Rx) works without any problem. Both devices are new.

I already found this thread, which addresses exactly my configuration and I followed its examples, but it just doesn't work for me:

This is how I connected them (the working/white connection has a 5V-to-3.3V voltage divider, the non-working/brown connection doesn't):

This is the sketch I am using:

void setup() 
{   
  Serial.begin(9600);
  while (!Serial);
  Serial.println("welcome");

  Serial1.begin(9600);
  while (!Serial1);
  Serial1.println("welcome");
}

void loop()
{
  while(Serial1.available()){
    char receivedChar = Serial1.read();
    Serial.write(receivedChar);
  }

  while(Serial.available()){
    char receivedChar = Serial.read();
    Serial1.write(receivedChar);
  }

  delay(1000);
}

The Arduino is connected via USB to my Linux computer running the Arduino IDE 1.8.19. I am using a Bluetooth Terminal app on my phone, which is successfully connected to the HC-05 via Bluetooth. On the computer I use the Serial Monitor.

When I enter something in the Serial Monitor it successfully appears in the phone's Bluetooth Terminal app. However, when I enter something in the Bluetooth Terminal app, it doesn't appear in the Serial Monitor. The "welcome" messages appear on both ends.

Do you have any idea why I can't receive anything?

Never mind, I think some pin of the Arduino didn't connect properly to the breadboard. After re-plugging it, it worked... :face_with_hand_over_mouth: :face_with_peeking_eye:

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