Sunday, October 16, 2011

Arduino wireless sketch uploading via Bluetooth

Few months ago I’ve showed you my Bluetooth Xbee module. Back then I was able to send some commands through it to Arduino. But I wasn’t able to upload code wirelessly. 


I’ve been trying to solve this problem and I was successful. I found out that the issue is resetting the board. Since with this setup I’m not using USB connection I can’t use DTR pin on FTDI chip. So the trick to hold a reset button press upload and when information about size pops up just wait second or two and release the reset button. Right now I’m working on some sort of method (software or hardware) to make it automatic. I also found out that the baud rate of Bluetooth module and com port on your PC must be same as the uploading speed of the board you are using. For instance I’ve been using Arduino Duemilanove for this demonstration. Its upload speed is 57600. So I had to change baud rates of Bluetooth module and com port to 57600 as well. If you’re using laptop with a Bluetooth or pc with some USB Bluetooth module you need to buy only one module for your Arduino. You don’t even need to buy Xbee shield, because this particular one works if you connect just TX,RX,3v3 and GND pins. I was trying to use it with standalone Atmega8 but for some reason it didn’t worked so I’m also working on that. If you’re trying to achieve same thing and you’re having some issues with setup or whatever just contact me. And don’t forget to watch the video.

13 comments:

  1. I've been looking for the same answer, but not skilled enough to do what you do.
    I found comments from 2009 and Sparkfun's Bluetooth Mate Silver to the effect that jumping remoteDTR and remoteRTS (pins 33 and 34 can enable uploading. I've also seen similar comments elsewhere. Maybe this can help you.
    I am very interested in how you do this, and if it works.

    ReplyDelete
  2. Yes I've seen that comment. And I've tried this method, but It wasn't working. Right now I'm trying every possible method that uses RTS and CTS. After some digging all over the internet (lot of hours) I've found that there must be "RTS on close" setting turned on in device manager, but unfortunatelly I'm using Win7 and there's no such option.

    ReplyDelete
  3. Thank you for your feedback. I have your blog in favorites and will check back with hopes that you are successful. I will also continue the search!

    ReplyDelete
  4. Thank you aswell. I hope that one day I'll be able to solve this issue

    ReplyDelete
  5. I found this : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1251415313/0
    I didn't tried it yet.

    ReplyDelete
  6. Im working on this too
    with Bluetooth mate gold and Ardiuno pro mini 16MH 5v

    ReplyDelete
  7. Im working on this too
    with Bluetooth mate gold and Ardiuno pro mini 16MH 5v

    here are two solutions
    http://ariverpad.wordpress.com/2012/02/26/uploading-arduino-sketches-wirelessly-using-a-bluetooth-breakout-board/

    ReplyDelete
  8. oh and an evan better solution here!
    http://ariverpad.wordpress.com/2012/02/26/uploading-arduino-sketches-wirelessly-using-a-bluetooth-breakout-board/

    ReplyDelete
    Replies
    1. Thank you, I've been looking for something like that

      Delete
  9. I lost my usb ..so i need to upload through bluetooth but how to connect my laptop to bt module hc 05 ...in ur video its just uploading u dint mention how u connected ...so plz give some suggestions plz ...mi am noob here

    ReplyDelete
  10. I lost my usb ..so i need to upload through bluetooth but how to connect my laptop to bt module hc 05 ...in ur video its just uploading u dint mention how u connected ...so plz give some suggestions plz ...mi am noob here

    ReplyDelete
  11. I lost my usb ..so i need to upload through bluetooth but how to connect my laptop to bt module hc 05 ...in ur video its just uploading u dint mention how u connected ...so plz give some suggestions plz ...mi am noob here

    ReplyDelete
  12. I have tried android app to programming Arduino Uno via bluetooth, simply by adding Bluino_Shield http://www.bluino.com/2015/10/bluino-shield-pre-order.html#.Vkaz9NIrK70 to your Arduino Uno. This link app https://play.google.com/store/apps/details?id=com.bluino.bluinoloader

    ReplyDelete