I'm trying to send messages between my PC and HC06 bluetooth device (using terra term terminal emulator).
-
The HC06 is connected to my arduino uno , 5V to VCC and GND to GND
-
Apparently I can't connect the Rx and Tx pins of the HC06 directly to pins 1 and 0 because it is used for seial communication with the computer, I've noticed I can't upload when they're connected.
-
Therefore, I created a SoftwareSerial object using the SoftwareSerial library and used pins 10 and 11 as Rx and Tx respectively using a voltage divider to connect the arduino Tx to HC06 Rx.
#include <SoftwareSerial.h>
#define Rx 10
#define Tx 11
SoftwareSerial BTserial(Rx, Tx);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
BTserial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(BTserial.isListening())
{
BTserial.print("Success");
}
}
-
After uploading this sketch, I connected my pc to the HC06 and connected to terra term using the appropriate COM port.
-
Apparently, I should be able to run some command from terra term or serial monitor when the module is on AT mode however I'm not able to run any commands, Also the module has been blinking non stop, while connected or unconnected to either the PC or terra term when apparently it should be a constant red after connecting.
-
Regarding terra term, it runs extremely slowly and pressing the enter key moves the cursor to the beginning of the text that was just entered, no changes or anything. Is this meant to happen. Its running on a windows 10 pc.
-
Any help regarding what to do from here to be able to send messages between devices would be appreciated