Hm-10 factory reset

Hello!!
Recently I got my HM 10 module and I started exploring it's AT commands.
But accidentally I set the baud rate to 38400 using AT+BAUD2.
Now I am unable to use any AT commands.
some random characters get displayed.

Below is the code I used.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {

Serial.begin(19200);

Serial.println("Enter AT commands:");

mySerial.begin(9600);

}

void loop()

{

if (mySerial.available())

Serial.write(mySerial.read());

if (Serial.available())

mySerial.write(Serial.read());

}

I also tried to factory reset it by setting reset b pin to gnd but that too didn't work.
Need help here!!!!!

Why not change the baud rate in the sketch to 38400 ?

Tried that too but same random characters on serial monitor.
I have checked every combination on serial monitor.

These indicate (to me) that comms is trying, but with baud mismatch. What is the factory default? 9600? 115200? 300?

9600 is default for hm10

when you tried the HM-10 at 38400baud did you change the Serial Monitor baudrate?
I suggest changing it to 115200baud
you may have problems with SoftwareSerial at 38400baud
try AltSoftSerial or move to a board with hardware serial ports, e.g. Mega

Yess I synced the serial monitor with the baud rate.
Currently I am using arduino nano

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