we have problems with our Arduino Mega and the Bluetooth adapter "HC-06". Our OS is OSX Yosemite. There are plenty tutorials on the Internet, where it is explained, how to connect the HC-06 with the Arduino. Non of them seems to work.
We connect it like this: HC-06 --> Arduino VCC --> 5V Ground --> Ground TXD --> RX0 (Pin 0) RXD --> TX0 (Pin 1)
Now we are connecting our Mac via Bluetooth with the HC-06. This is working pretty fine. If we are trying to send some new code to the Arduino (we are using the Arduino IDE 1.5.2) than we get an error message: "stk500v2_ReceiveMessage(): timeout" this message appears a few times and results with the error message: "stk500v2_getsync(): timeout communicating with programmer".
We have no idea, what we are doing wrong.
When we are connecting our Arduino via Bluetooth with the program "CoolTerm", we are able to read from the SerialPort for every "Serial.print()" we have. So we are thinking that the HC-06 is not broken.
We hope some of you have experience with the HC-06 connecting with the Mac and can help us.
Greetings Albert, Dima, Sinan
P.S. We have also tried it with the Arduino Uno, with the same problem. Also we have tried different versions of the Arduino IDE.