You are on page 1of 6

technology workshop craft home food play outside costumes

Arduino Bluetooth Programming Shield (wireless upload code)


by uuemad on December 24, 2015

Table of Contents

Arduino Bluetooth Programming Shield (wireless upload code) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Arduino Bluetooth Programming Shield (wireless upload code) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Step #1: Breadboard the Bluetooth module setup circuit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Step #2: Upload the arduino setup sketch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Step #3: Run the setup sketch and enter serial commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Step #4: Setup the Bluetooth module in Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 5: Step #5: Setup the Bluetooth module in Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 6: Step #6: Solder a jumper onto the Bluetooth module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 7: Step #7: Build the programmer circuit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 8: Step #8: Program the Arduino With Bluetooth! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/
Intro: Arduino Bluetooth Programming Shield (wireless upload code)
This project will show you how to make a wireless upload Arduino code from your Computer via Bluetooth.

Step 1: Step #1: Breadboard the Bluetooth module setup circuit.


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 here.
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. The Key pin must be connected to 3.3v when the module is powered on. If it is connected afterwards, the module will enter command mode at
the default baud rate (as set by the 'AT+UART=' command or 9600 baud from the factory).

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/
Step 2: Step #2: Upload the arduino setup sketch
Get the sketch from here and upload it to your Arduino.

File Downloads

serialloop.zip (360 bytes)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'serialloop.zip']
Step 3: Step #3: Run the setup sketch and enter serial commands.
Open the serial console and make sure the baud rate is set to 9600 and line endings is set to be "Both NL & CR"

Enter the following AT commands into the serial console one by one: AT+ORGL AT+ROLE=0 AT+POLAR=1,0 AT+UART=115200,0,0 AT+INIT In order, these
commands tell the module to reset to factory settings, switch to slave role (transparent serial bridge), set pin 32 low on Bluetooth connection, change baud rate to match
the Arduino Uno programming rate, and to initialize. Disconnect 3.3v from the Key pin and cycle the power to the module. It will now be running at 115200 baud and be
in pairing mode.

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/
Step 4: Step #4: Setup the Bluetooth module in Windows.
From the Control Panel select Add a Device.
Add the Bluetooth module. Select enter pairing code option.

Step 5: Step #5: Setup the Bluetooth module in Windows.


Enter "1234" for the pairing code.
At the Add a device success window, click Close. Device ready to use. The OS will create two serial COM ports associated with the device. Always use the one with
the lower number.

Step 6: Step #6: Solder a jumper onto the Bluetooth module.


DIY Arduino Bluetooth Programming ShieldDisassemble the breadboarded circuit. Solder a jumper wire directly to the HC-05's Pin 32.
Don't forget to use flux. You may want to use hot glue or tape to protect the joint.

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/
Step 7: Step #7: Build the programmer circuit.
Build the programmer circuit onto the prototyping shield.
Solder on a female header for the Bluetooth module if you want to be able to easily remove it later.

Step 8: Step #8: Program the Arduino With Bluetooth!


Power on the Arduino from a battery or AC adapter.
In the Arduino IDE, choose the serial port of the Bluetooth module (the lower valued one of the two(21 and 25) and then upload a sketch like normal.

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/
Related Instructables

Wireless upload 8-Pin


Arduino UNO as DIY ATtiny ISP TinyISP - Linux, WiFi, program to Programming
AtMega328P Shield Attiny25/45/85 Ethernet , USB Arduino without
Programming Shield for Shield by
Programmer by Programmer by USB cable by
Arduino UNO Arduino by randofo
Eric Brouwer MohanR3 ITEAD STUDIO
R3 Compatible edwin chen
Shield by Ayush
Sharma

Advertisements

Comments
1 comments Add Comment

uuemad says: Dec 24, 2015. 6:00 AM REPLY


Please share my project

http://www.instructables.com/id/Arduino-Bluetooth-Programming-Shield-wireless-Uplo/

You might also like