I bought a HM10 bluetooth module and am trying to send AT commands to it using an Arduino Uno. I have tried many many codes to send and receive AT commands, but I never get a reply.
I have the code:
int bluetoothTx = 2; // TX-O pin of bluetooth mate, Arduino D2
int bluetoothRx = 3; // RX-I pin of bluetooth mate, Arduino D3
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
Serial.begin(9600); // Begin the serial monitor at 9600bps
bluetooth.begin(9600); // Start bluetooth serial at 9600
if(bluetooth.available()) // If the bluetooth sent any characters
// Send any characters the bluetooth prints to the serial monitor
if(Serial.available()) // If stuff was typed in the serial monitor
// Send any characters the Serial monitor prints to the bluetooth
// and loop forever and ever!
The HM10 led is flashing, so I know it is not connected to anything. And then I type AT in the serial monitor and click send, but I never get a reply of any kind. Any suggestions?