Hello, I have a problem with the HM-10 BLE 4.0 bluetooth module. I have a 4wd Arduino Uno kit with L293D motor shield. I connected the Bluetooth module first to the pins where the servo was located, then switched to RX and TX on A4 and A5. The indicator light on the module is flashing. I tried to communicate via Serial Monitor with the following code:
#include <SoftwareSerial.h>
#define BAUD 9600
SoftwareSerial softSerial (A4, A5); // Rx, Tx as required.
void setup()
{
Serial.begin(BAUD);
softSerial.begin(BAUD);
Serial.print("Ready @ ");
Serial.print(BAUD);
Serial.println("baud");
}
voidloop()
{
while (Serial.available() > 0)
softSerial.write(Serial.read());
while (softSerial.available() > 0)
Serial.write(softSerial.read());
}
The result was: 18:47:38.010 -> Ready @ 9600 baud
18:47:48.849 -> Ready @ 9600 baud.
I entered various commands (AT etc.), I get neither OK nor ERR. I don't know what to do anymore. Any suggestions?