Having a cable connecting things is so last century... then, I want to send sketches via bluetooth.
Actually, I am trying to use the HC-06 module, because it is cheap.
I was able to find some solutions, for HC-05, you just have to solder a wire:
I have also find solutions where no soldering is needed, just some software tweak:
That Bluefruit EZ-Link is the easiest and best $22.50 USD way.
HC-05 is the next best option and HC-05 costs $1.75 to $4.50. The HC-05 has an AT+POLAR command you can use to turn the State pin into a DTR, then it behaves like an FTDI. I would recommend the one mounted on a ZS-040 backboard with the key button mounted on the front. I recommending using it with a Pro Mini.
If you use it with an Uno you may need cut the reset-en trace or add a 10K pull down resistor on the reset pin. If you use it with a Nano you may need to remove the DTR-to-reset capacitor or add a 1K pull down resistor on the reset pin. You can also use it with a Pro Micro, Micro, or Leonardo if you use the Optiboot bootloader on the Arduino.
Martin-X, I know I can buy something else and solve the problem, but money is an issue. The HC-06 boards are very cheap, so is better to find a easy solution to use them, would be better for everybody. It seems it is possible to use them by doing some software tweaks, this solution seems to be around for some time, but is not well documented and not easy to follow, I know because I am trying. I have tried Google before posting this here, but I could not find a simple and straightforward solution, that is why I am asking this here.
dmjlambert, great tutorial! Do you know if it is possible to do the same with the HC-06? It seems that the hardware is the same but the firmware. I saw a guy saying that soldering a wire to the port 54 of the module and connecting it on the reset of Arduino would work, but I found this solution ugly. This solution of turn the State pin into a DTR seems great, do you have any clue if it is possible to do it for HC-06?
I'm afraid I don't know enough about the HC-06. I've been avoiding buying those because they cost about the same as the more flexible HC-05. If there is a pin of the HC-06 which is normally high (3.3V) and goes to 0V when a connection from the PC is established (such as when opening the serial monitor of the Arduino IDE), then you could use that pin as a DTR. So if you want to do some research on that and see what you can find via reading and perhaps measuring with a voltmeter to see the behavior of the HC-06 you may find one of the pins behaves that way.
One thing I forgot to mention in my post above, the Pro Mini has a DTR or GRN pin, which includes a 0.1uF capacitor to reset. To connect to other types of Arduinos you need to add a 0.1uF capacitor between the State or DTR pin of the Bluetooth module and the Reset pin of the Arduino. This will turn the DTR signal, which goes low and stays low during the upload, into a momentary pulse low.
It is just because I have some HC-06 already. But you are right, and I bought some HC-05, the problem is that things takes half forever to arrive here in Brazil. I also have a "XBEE" using a HC-05, but I don't know where the state pin is, and saw instructions that I would have to solder a wire, but I don't wanna mess the board. But I know how to send at codes to it. Do you know if it is possible to program the key pin to be RST? I am using a duemilanove, by the way.
I don't think the key pin can be used as RST, and I don't think there is a very robust AT command set on HC-06 which will allow you to change its behavior. You would have to do more research than it's worth just to find out if it is practical to use HC-06 for this application.
oangelo:
Having a cable connecting things is so last century...
I couldn't agree more, and I did look into getting my BT uploading sorted. I'm back to USB because you still need a power source. A cordless mains adapter is what I want
Martin-X:
...you still need a power source. A cordless mains adapter is what I want
That is funny because now you have to go back to the century before last, ~1891, and get your electricity provided for free over-the-air courtesy of Nikola Tesla! Oh well, I guess I'll just use a battery...