Problems with AT commands to Bluetooth HC-06

I had the same issue with HC-06 yesterday... tried to change the baud rate. Following sketch is working good. It seems internally HC-06 only responds to 9600 anyhow. Even if you set the baud rate to 115200 you can "reprogram" the sketch again with 9600.

IMPORTANT! Upload the sketch via USB, then disconnect USB, cut power, connect power and use HC-06 only. If USB and HC-06 are connected simultaneously then USB has priority, your AT+Commands never reach the bluetooth module. But... besides of changing the module name I finally let the baud rate at 9600.. works perfectly for sending commands from Windows over bluetooth to my arduino uno r3. Cannot upload sketches over bluetooth though... but this is another issue...

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
Serial.println("AT");
delay(2000);
Serial.println("AT+NAMEArty4");
delay(2000);
//AT+BAUD6 OK38400 Sets the baud rate to 38400
//AT+BAUD5 OK19200 Sets the baud rate to 19200
Serial.println("AT+BAUD4");
delay(2000);
}

Arduino in error says that serial was not declared what should I do

what should I do

Start a new discussion concerning your issues.

AT commands only work if I send the command using TX/RX, not wireless using an Android command line application ?

The HC-06 is in AT mode when the power is on but it is not connected. Therefore you cannot configure it using Android.

hc 06 not working at all... just sits there and blink red and blue...what kind of crap is that

brikkboi973:
hc 06 not working at all... just sits there and blink red and blue...what kind of crap is that

Sounds like it is working perfectly?

Blinking Red and Blue?

Chuck.

Quite possibly not an HC-06

man I need a walkthrough on how to really use and operate the hc 06, nothings working

Before that, you need to clearly identify the HC-06 you are using, with particular reference to

blink red and blue.

Hi, I had follow this tutorial and problem fixed: 2. Tutorial Configure HC-06 Bluetooth Module using AT Command - YouTube

I am trying to interfacing hc 08 with arduino uno , AT command not give any response how i solve.

I just send AT I not receive OK
I connected the bluetooth module hc 08 through my arduino uno , so I dont know if a I have connect bluetooth module to my pc for use Terminal program,And android app was connection establish but in terminal not give any response ,i tried to change baudrate , rx-tx also.

mehul1560:
And android app was connection establish

Barely coherent, but this suggests that Bluetooth, wiring, and Arduino code are all fine.

but in terminal not give any response ,

Therefore it is a PC problem.

i tried to change baudrate , rx-tx also.

Both utterly futile. If it works with Android, you got it right the first time.