HC-05 isn't sending any Data back

Hello everyone,
I'm having a bit of an issue with my current Arduino Nano Every and HC-05 Module.

I connected both of them over Data Port 2 & 3
Put a Voltage Devider between the RXD Port and Ground
And I'm giving the Arduino and the HC-05 5V of power
Ground is connected to Ground by both of them

I noticed that I'm not getting any Data back from the HC-05
The cables work and the Data Pins aswell, tested that with a connection Loop
But the HC-05 isn't reacting to any AT commands
I did set it into AT Mode when booting the system.

Power is drawn from a SBEC that is hooked up to a Battery
The only other thing in the System are two DataLED Strips that are separated by a decoupling capacitor at 1000uF separately, which actually work and are displaying everything correctly.

I'm a bit at a loss here and hope that someone out there can point out the obvious fault in this system ^^'

Code used to send and receive AT commands:

#include <SoftwareSerial.h>

const byte rxPin = 2;
const byte txPin = 3;
SoftwareSerial BTSerial (rxPin, txPin);

void setup() {
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  BTSerial.begin(9600);
  Serial.begin(9600);
}

char dataByte;

void loop() {
  while (BTSerial.available()){
    dataByte = BTSerial.read();
    Serial.write(dataByte);
  }

  while (Serial.available()){
    dataByte = Serial.read();
    BTSerial.write(dataByte);
  }
  
}

The baud rate for all of my HC05 modules in AT mode is 38400. See this page.

The default for communication mode is 9600.

1 Like

You are using a Nano Every, and there is no need to use SoftwareSerial as there is a hardware serial port addressed as Serial1 with the RX and TX pins labeled on the board.

With the Nano Every, Serial is the USB , and Serial1 is RX and TX. These are both available independently and concurrently.

Sadly this didn't fix the problem.
I set the BTSerial and the normal Serial Port Baud Rate to 38400 and also the Serial Viewer to it, with no luck
I think the BT Board just might be broken because even the recovery code shipped with this Board wasn't able to even recognize it
I send it back and bought a new one
Hopefully the new one will give me more luck

Ok as a follow up for anyone how has the same issue
I don't know why but after I hooked up the HC05s TXD Pin, to the Unos TX Pin and the HC05s RXD Pin, to the Unos RX Pin and uploaded a blank sketch to my Arduino Uno.
I was then able to reveice an OK from the HC05 in the Serial Monitor after I've set it to 38400 baud and "Both NL & CR"
I have no clue why and will update once I find out

I thought you were using a Nano Every.

Using the "blank sketch" method uses the USB/ttl converter of the Arduino UNO as a pass through over Tx and Rx to the HC-05.
https://forum.arduino.cc/t/hc-05-will-not-reply-on-my-at-commands/909222/14

This will work on a Uno, but should not work on a Nano Every where the Tx and Rx pin are Serial1 and not connected through the usb converter.

For Debugging I switched over to my Arduino Uno and Breadboard so it's a bit easier to test systems out but the main system will run over a Nano.
I just needed to configure the Name and Password of the HC05 and tried to do that quickly over the Nano, which sadly didn't work, so I switched to my Uno
But on the intigrated system I will only use the HC05s TXD Pin with the Nano, because I only have to reveive data from it, not send any over Bluetooth

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