Lots of trouble with HC-06 Bluetooth module

Hello everyone,

I’ve been trying to build an Arduino project with bluetooth capability, but it seems that the HC-06 receiver I ordered is about as useless as a brick. I can do some things on it with AT commands such as change the name and PIN number, but that’s absolutely it. I get an “Error(0)” response when trying to change the baud rate, I can’t connect to it from my phone, and I certainly haven’t been able to get it to interact with my Arduino board, getting a long set of error messages every time I try uploading my code (which otherwise compiles and uploads just fine when the bluetooth module isn’t connected)(And yes, I have made sure the rx and tx wires are hooked up properly). Could anyone offer a suggestion as to what the problem might be, or if I should just buy a new sensor?

Apologies if this isn’t the best board to be posting about bluetooth in, I’m brand new here and couldn’t tell what other categories would be most relevant to this topic. Thanks so much for any help you can offer.

If you can change the PIN, there can't be anything seriously wrong. The "Error(0)" might be just something stupid, like using an HC-05 command on an HC-06. The uploading problem may be due to you using Bluetooth on hardware serial, in which case disconnect it when uploading. Using Bluetooth on hardware serial is fine, and has advantages, but you just need to be aware of this.

You might find the following background notes useful.