I know a lot of people have problems when uploading a sketch from Arduino when the RX and TX are connected to the bluetooth HC-06 RX and TX.
Some people recommend to disconnect the wires prior to uploading code, which works, however I find it very frustrating and also pretty poor standard to constantly have to disconnect the RX and TX wires just to do a upload... anyone fixed this problem or do I have to buy a different bluetooth module? If so, any recommendations on a module that doesnt have this bug?
Yes. Buy one that you can use on some other microprocessor. On the Arduino the pins you are connecting it to are the same ones that are connected to the PC where the sketch to be uploaded comes from. ANYTHING connected to pins 0 and 1 WILL cause problems uploading sketches, except on the Leonardo, Micro, and Due.
You're in luck friend! I just finished an article on this very topic! Here's the link. Let me know if you have any issues by posting it there. Good Luck!
Arduino Forum > Using Arduino > Networking, Protocols, and Devices > Making HC-06 Bluetooth TX/RX Module work with Arduino Uno
condoace:
I know a lot of people have problems when uploading a sketch from Arduino when the RX and TX are connected to the bluetooth HC-06 RX and TX.
The only people who have problems are those that don't understand what is going on.
Some people recommend to disconnect the wires prior to uploading code,
It is not a case of recommending, if you have any serial device on hardware serial, it must be disconnected if you want to use the IDE.
anyone fixed this problem or do I have to buy a different bluetooth module? If so, any recommendations on a module that doesnt have this bug?
It is unfixable, buying another bluetooth will not change anything, and it is not a bug. It is an inconvenience, but one you can live with. Yes, if you want to upload a programme, bluetooth must be disconnected, but if you want to then test the code you often don't really need to reconnect you can just use the serial monitor instead. Arduino doesn't know the difference, it's just another serial device, and you can prove up your bluetooth code without even owning a bluetooth.
Another option is to use software serial instead. This brings its own limitations and frustrations, and I submit is best seen as the option of last resort.
The inconvenience is also solved by the Mega, which has four hardware serial ports.
Hi
I am doing project of bluetooth control car with Arduino UNO unfortunately I have forgotten to unplug the bluetooth and the IDE shows the error after I unplugged the bluetooth I did the same the IDE shows errors
And I did it multiple times I don't know what to do..
If bluetooth is connected to hardware serial, pins 0,1, you cannot upload your programme.
Disconnect Bluetooth and then upload your programme. You may then reconnect Bluetooth and use it.
If that does not work, something else is going on.
With a GPS connected to the hardware serial port on a Nano, I find it is only necessary to disconnect the GPS TX from the Arduino RX. Uploading a sketch can then proceed. I haven't tried this with a HC-05 but suspect it would work. Nick?
In one device I soldered in a small slide switch. Not too inconvenient.
HillmanImp:
I haven't tried this with a HC-05 but suspect it would work. Nick?
I'm sure you are right. It is usually more convenient to remove all the connectors, or it from a breadboard etc. It also saves you from having to remember which one you need to disconnect.