Arduino Mega 2560 and the HC-06

Hello,

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.

albert_dima_sinan: 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:

We have no idea, what we are doing wrong.

Well, it could be that what you are doing wrong is that you are trying to send new code to Arduino via bluetooth. If you programme Arduino via the USB cable in the normal manner, and then send data to it via bluetooth, it might work.

Nick_Pyner: Well, it could be that what you are doing wrong is that you are trying to send new code to Arduino via bluetooth. If you programme Arduino via the USB cable in the normal manner, and then send data to it via bluetooth, it might work.

Thank you for your response. We are not sure what you mean. We want to upload a new Sketch via Bluetooth to the Arduino. Yes we can use the cable, but in our construction, we will not be able to reach the USB Port. So we are desperate to achieve this with Bluetooth. We do not want to send just Data via Bluetooth.