Arduino Uno with Bluetooth 2.0 RX/TX

I have my Bluetooth 2.0 HC-06 plugged into the pin 0(RX) and 1(TX). When I try to run a sketch I get this error:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x11
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x11
I know it is the plugins to these pins because once I take them out, everything runs fine.
Why are those pins not working?


I am running this code and typing AT command but my bluetooth 2.0 isn’t responding back.
This is my sketch

#include <SoftwareSerial.h>

SoftwareSerial mySerial(5, 6); // RX, TX

void setup() {


//pinMode(9,OUTPUT); digitalWrite(9,HIGH);

Serial.println(“Enter AT commands:”);



void loop()


if (mySerial.available())


if (Serial.available())



Wrong pins, wrong baud rate, wrong code, and probably wrong anything else - including, most certainly, the wrong instructions. The first thing to consider is: do you really need to do this anyway?

You might find the following background notes useful.

But when I use the Rx->TX and TX->RX I cannot run arduino sketches I get the error I described above.

So, the background notes I provided a link to were of no use to you after all?