HC-05 not working with some apps

Hello!
I am using a HC-05 to control my rover.I am trying to use the app created by Andi.co,this is the link Bluetooth RC Car APK for Android - Download
When I try to connect the HC-05 to this app it says unable to connect .
However if i use the bluetooth terminal app by Kai Morich, I am able to connect the hc-05 and send commands. This shows that my wirring to code shouldnt be the problem.
So what would you suggest me to do.
Do tell me if u need other information.

P.S: I am not sure if I am posting in the right category, feel free to change the category if required.

I don't chase unknown links.
Post a photo of your hand-drawn wiring diagram. Post all your code in code tags, and if there is any useful serial output, also post it in code tags.
Have you run any samples that come with the libraries?

There is only one way to wire an HC-05, and that is the correct way. No need for a diagramme. The problem is more likely to be at the other end. I see that you have to modify the car before you can use it. This rather suggests a poor choice of car, or a poor choice of application, and Bluetooth is entirely innocent.

If nobody comes up with anything better you can try this.

All you really need is the App. He explains which characters are sent by the app for each function, F for forward B for back etc.

Try clearing the app's cache and data.

I find having the user look at their wiring to read and write the pins being used or the orientation of a module lets the user "see" a pin/reverse mistake. These kit cars have an efficiently arranged block of headers for all the modules' future expansion (and past changes), but the headers are neither sequentially, nor completely populated, so being "one pin off" is easy to do on the first try... and making the user look at the wiring will let the user catch the fault when reading off the pin numbers and drawing them. Whether this or any topic needs a drawing is not relevant, every topic should have one, if not for following, for verifying. Even if only one wire. Just my two złoty.

I understood OP has HC-05 connected to Arduino, and he has already demonstrated he knows how to do that. When I said " at the other end", I was implying HC-05 was sending commands to the car. I don't know anything about cars and I now realise I'm probably wrong about that, and it actually receives them, but I guess he still knows how to wire it to Arduino.

1 Like

This is the wiring:


This is the error which shows up on the app recommended by @jim-p :

This is the code I am using:

#include <SoftwareSerial.h>


//Create software serial object to communicate with HC-05
SoftwareSerial mySerial(10, 11); 


void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  //Begin serial communication with Arduino and HC-05
  mySerial.begin(9600);

  Serial.println("Initializing...");
  Serial.println("The device started, now you can pair it with bluetooth!");

}

void loop() {
  // put your main code here, to run repeatedly:
 if(mySerial.available()) 
  {

    char x = mySerial.read();        // Read once
    Serial.write(x);            // Forward to Serial Monitor


  }
  }

This is the output i get on my serial monitor when i type F on the Serial Bluetooth Terminal by Kai Morich:

Initializing...
The device started, now you can pair it with bluetooth!
F

Did you pair the devices first?

The HC-05 will only use version 1 of Bluetooth. Some apps use Bluetooth BLE see this link:-
Bluetooth Low Energy

The confusion In think is in the fact that they are both called Bluetooth.

I paired them.

So , what can i do to fix the issue

That is strange since the error message says not connected.
Did you click on "Bluetooth List" button and select the HC-05?

Do you see "BLUETOOTH CONNECTED" like in the above image?

I did exactly that but it shows the same error. It doesnt connect

Try pairing with the HC-05 without using the App.
Then try the App again

Is your andi-generated app 'BLE'? (If it is then HC-05/06 won't work with it.)

Again...

Your drawing shows you have connected Bluetooth VCC to 3.3v. While this might work, it is clearly a bad idea, and could be the cause of your problem. Even if it isn't, you need to connect to 5v in the approved manner in order to avoid confusion. Further, while what you have is not likely to be fatal, it is good practice to have a 1k/2k divider in the Arduino Tx line, thereby having a 3.3v signal at Bluetooth Rx


AND, while I'm on the wiring bike... What sort of power supply are you using... I ask this particularly as it might be different from what you had while testing with a terminal.

I am using 2 li-ion to power an l298 driver, from that a wire is connected to the vin of the arduino. Since I am using an L298 driver, the 5V pin is already in use.
What can i do

I will try that. Thanks!

So were you able to pair the phone and HC-05

I downloaded the app and was able to connect to my ESP32 devkit using the bluetooth serial to Serial example code and it worked as advertised.
The characters I receive: Forward, Back, Left, Right, high speed. The 'S" is for Stop

F
S
B
S
L
S
R
S
q

So if your bluethhoth terminal app works, this app should also work.