I'm making a Bluetooth RC Car, the code is fine, everything is fine but the only issue here is the HC-05, when i press forward or backward, left, right on my phone, the LED on the motor shield doesn't blink, I think it doesn't send any data to my Arduino.
I can get it to AT mode but the command doesn't respond anything (it didn't said OK)
Is my module broken? Do I have to buy a new one? Is there any way to fix it?
You should at least give your wiring diagram and your code.
It is very difficult to say anything without this information.
Here is simple Bluetooth test code using software serial and HC05 connected HC05 TX to Uno pin 7 and HC05 RX connected to Uno pin 8 through voltage divider.
#include <SoftwareSerial.h>
SoftwareSerial BTserial(7, 8); // RX | TX
void setup()
{
Serial.begin(9600);
BTserial.begin(9600);
Serial.println("Bluetooth send and receive test.");
}
void loop()
{
if (Serial.available())
{
BTserial.write(Serial.read());
}
if (BTserial.available())
{
Serial.print(char(BTserial.read()));
}
}
On the Android side try Bluetooth Terminal app to send cmds
HC-05 is a Classic bluetooth module not BLE
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.