Program Arduino Over Bluetooth

Upload sketches to your Arduino wirelessly with a DIY Arduino Bluetooth Programming Shield. Uploading Arduino sketches wirelessly using a Bluetooth. Through the Bluetooth. A microcontroller reset through software and the.

Arduino Bluetooth Library

An Arduino Uno is a really cool piece of hardware to get started with electronics, but one downside to the Arduino is it needs to be plugged into computer using a serial to USB cable each time you want to upload the code. In some projects it would be really handy to program the Arduino wireless, so in this instructable I'm going to show you how to program an Arudino wireless over Bluetooth, so you don't have to carry an extra USB cable again or unplug the Arduino from the project just to upload the new code.

You can also view the video below on how to build this project. This project uses the HC05 Bluetooth module for communication, this is cheap and easy to find on eBay. Make sure you have the HC05 module and not the HC06, they look the same, but the difference is that the HC05 works as both a master and client but the HC06 works only as a client. This project may not work with the HC06. If you bought a module with the breakout board make sure it has a key terminal, if it has a Wakeup terminal you will have to solder a wire to the pin 34 which will act as a KEY pin.

Then solder the pin 32 of the HC05 we will use this to reset the board each time we upload the code. Next we need to connect the arduino at the HC05 to put it into AT Command mode this can be done by setting up the connection as follows HC05 GND to Arduino GND Pin HC05 5V to Arduino 5V HC05 TX to Arduino Digital Pin 10 (soft RX) HC05 RX to Arduino Digital Pin11 (soft TX) HC05 Key (PIN 34) to Arduino Digital Pin 9 After setting up the following connection on the breadboard, before connecting the Arduino to the computer, remove the power to HC05 by disconnecting the VCC pin. After you connect the Arduino to a computer you can go ahead and plug the VCC pin back. This would have put your HC05 in AT command mode. Now open up a serial terminal and enter the following commands, the board will respond with an 'OK' each time a command runs successfully AT+ORGL AT+ROLE=0 AT+POLAR=1,0 AT+UART=115200,0,0 AT+INIT. After soldering the components make sure you soldered all the terminals right using a multi-meter.

After all the connections are done, you can now plug the programming shield on the Arduino, and connect the Bluetooth module to your computer, the default password is '1234'. Now open up the Arduino IDE and select the blink program (we will use this as the test sketch), select the right com port. You can find the serial port of your module in the device manager if you are using windows. Next hit upload and you should see the HC05 connect to the computer and upload the code to the Arduino.

If everything went well you should have the Arduino on board LED, blink at an interval of 1 sec.

If you’ve ever wished you could program your Arduino without lugging a USB cable around, wanted to put an Arduino project somewhere out-of-reach but still be able to easily upload changes to it, thought about building a, or contemplated a way to get remote sensor data streamed to your computer — this project is for you. It uses a common, low-cost Bluetooth module mounted onto a prototyping shield for durable and reliable use.

Along with the module is a circuit that allows the Arduino IDE to automatically reset the Arduino when uploading a new sketch. This project also uses the latest version of the Arduino IDE which eliminates the need to hack in modified DLL files to get the serial programming to work. Besides uploading sketches, the shield can be used for serial communication using the standard Arduino Serial library between multiple Arduinos, smartphones, computers, or even a Bluetooth-enabled Raspberry Pi.

Patch Failed Return Code. You will need a computer with built-in Bluetooth or a USB Bluetooth dongle to use the shield to upload sketches to your Arduino. These instructions are specific to Windows 7, but should be similar for Windows 8. Mac and Linux users can probably figure out how to get this working too. Smartphones need to support Serial Port Profile (SPP) to work (this excludes iPhones but includes many Android phones). This project is moderate to difficult, and requires soldering and previous prototyping experience. • The Bluetooth module used in this project is the HC-05. It is inexpensive and one of the most common modules you'll see in a lot of other projects.

The HC-05 is sold bare or mounted to a breakout board. You want one on a 6-pin breakout board. You can find them for sale on eBay and Amazon. The datasheet for the module is • Using a breadboard, temporarily wire the HC-05 Bluetooth module per the schematic. • With 3.3v on the Key pin, the module will enter 38400 baud command mode and will accept AT commands.