Difference between revisions of "Bluetooth wirelessly download for DUE Pro"

From Geeetech Wiki
Jump to: navigation, search
(Troubleshooting)
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
Now ,I will show my test.
 
Now ,I will show my test.
  
 +
 +
[[Image:BL2.jpg]]
  
  
Line 10: Line 12:
  
  
* [http://www.geeetech.com/iduino-due-pro-board-completely-compatible-with-arduino-due-p-656.html Iduino DUE x1]
+
* [http://www.geeetech.com/iduino-due-pro-board-completely-compatible-with-arduino-due-p-656.html Iduino DUE Pro x1]
 
* [http://www.geeetech.com/serial-ttl-bluetooth-module-p-601.html  Serial TTL Bluetooth module x2]
 
* [http://www.geeetech.com/serial-ttl-bluetooth-module-p-601.html  Serial TTL Bluetooth module x2]
 
* [http://www.geeetech.com/usb-serial-ft232rl-converter-light-p-78.html USB serial FT232RL converter Light x1]
 
* [http://www.geeetech.com/usb-serial-ft232rl-converter-light-p-78.html USB serial FT232RL converter Light x1]
Line 36: Line 38:
  
  
Some FT232 shields,you would connct TX to RX,and RX to TX.
+
For some FT232 shields,you would connct TX to RX,and RX to TX.
  
  
 
3.Open Serial Monitor and  set the bluetooth .
 
3.Open Serial Monitor and  set the bluetooth .
 +
 +
 +
[[Image:BL1.png]]
 +
  
 
You input command " AT+DEFAULT", then input  " AT +BAUD8". As the Iduino DUE download baud is 115200,if you want to transmit data ,
 
You input command " AT+DEFAULT", then input  " AT +BAUD8". As the Iduino DUE download baud is 115200,if you want to transmit data ,
Line 46: Line 52:
  
  
Of course ,there are a lot of ways to communicate between two bluetooths ,you can  reference  [http://www.geeetech.com/Documents/Bluetooth%20manual.rar Bluetooth manual] to build commnnication ,we use most easy way and don't anything.
+
Of course ,there are a lot of ways to build communication between two bluetooths ,you can  reference  [http://www.geeetech.com/Documents/Bluetooth%20manual.rar Bluetooth manual] to build commnnication ,we use most easiest way and don't anything.
  
  
4.Follow step 2 to connect master bluetooth and the USB serial FT232RL , and connect slave bluetooth to Iduino DUE like as:
+
4.Follow step 2 to connect master bluetooth and the USB serial FT232RL , and connect slave bluetooth and Iduino DUE Pro like as:
  
  
Line 64: Line 70:
  
  
5.Power up for the Iduino DUE from battery,  programming would fail if you power up from USB port .
+
5.Power up for the Iduino DUE Pro from battery,  programming would fail if you power up from USB port .
  
If the bule LED of buletooth is light mean two buletooths communicate , blink is connecting.
+
The green LED of buletooth is light that means two buletooths communicate , blink is connecting.
  
  
 
Press the ERASS button 2 seconds ,then press the reset button.
 
Press the ERASS button 2 seconds ,then press the reset button.
  
Now you can wirelessly program for Iduino DUE Pro
+
Now you can wirelessly program for Iduino DUE Pro.
  
 
Please open Aduino IDE 1.5 and selct Aduino DUE(programming port) in board.
 
Please open Aduino IDE 1.5 and selct Aduino DUE(programming port) in board.
 +
 +
== Comment ==
  
  
  
 +
[[Image:BL3.jpg]]
  
== Comment ==
+
 
 +
We also wirelessly program and transmit data for other boards ,such as UNO,LilyPad,Arduino Pro Mini and so on. But you must set right baud for buletooth.Connect the board and slave bluetooth follow DUE Pro.
 +
 
 +
 
 +
You can reference :
  
  
  
We also wirelessly program and transmit data for other boards ,such as UNO,LilyPad,Arduino Pro Mini and so on. But you must set right baud for buletooth.
+
UNO, DUE , MEGA --------        115200
  
You can reference
 
  
 +
ATMEGA328----------------        57600
  
  
UNO DUE  MEGA          115200
+
ATMEGA168----------------        19200
  
  
ATMEGA328        57600
+
DUEMILANOVE328 ----------        57600
  
  
ATMEGA168        19200
+
'''When you download to other boards,you must press the reset button until the TX LED of USB serial FT232RL blinks two times.However ,it is difficult to program for MEGA,bacause the TX LED blink irregularly.You can power up  UNO ,MEGA from USB port.'''
  
 +
== Troubleshooting ==
  
DUEMILANOVE328  57600
+
1.IS the green LED of bluetooth light ? It's not,two buletooths don't build communication ,you must set two buletooths again.
  
 +
2.Are both  buletooths setted same baud  suitted to main board?
  
When you download to other boards,you must press the reset button until the TX LED of USB serial FT232RL blink two times.However ,it is difficult to program for MEGA,bacause the TX LED blink irregularly.
+
3.Do you operate the reset button accurately when you are programming ? the DUE Pro is different other boards.

Latest revision as of 03:16, 5 July 2013

Overview

Wireless programming and data transmission can be achieved simply from the BLuetooth.You just need two bluetooths and a USB serial FT232RL . Now ,I will show my test.


BL2.jpg


Hardware needed


Step

1.A Bluetooth module's key turns to "M" as master ,other's key turns to "S" as slave.


2.Connect the USB serial FT232RL and bluetooth

GND------GND


VCC------VCC


TX-------TX


RX-------RX


For some FT232 shields,you would connct TX to RX,and RX to TX.


3.Open Serial Monitor and set the bluetooth .


BL1.png


You input command " AT+DEFAULT", then input " AT +BAUD8". As the Iduino DUE download baud is 115200,if you want to transmit data ,

you would set same baud for the software.Two bluetooths to do the same action.


Of course ,there are a lot of ways to build communication between two bluetooths ,you can reference Bluetooth manual to build commnnication ,we use most easiest way and don't anything.


4.Follow step 2 to connect master bluetooth and the USB serial FT232RL , and connect slave bluetooth and Iduino DUE Pro like as:


GND------GND


VCC------3.3V


TX-------RX


RX-------TX


5.Power up for the Iduino DUE Pro from battery, programming would fail if you power up from USB port .

The green LED of buletooth is light that means two buletooths communicate , blink is connecting.


Press the ERASS button 2 seconds ,then press the reset button.

Now you can wirelessly program for Iduino DUE Pro.

Please open Aduino IDE 1.5 and selct Aduino DUE(programming port) in board.

Comment

BL3.jpg


We also wirelessly program and transmit data for other boards ,such as UNO,LilyPad,Arduino Pro Mini and so on. But you must set right baud for buletooth.Connect the board and slave bluetooth follow DUE Pro.


You can reference :


UNO, DUE , MEGA -------- 115200


ATMEGA328---------------- 57600


ATMEGA168---------------- 19200


DUEMILANOVE328 ---------- 57600


When you download to other boards,you must press the reset button until the TX LED of USB serial FT232RL blinks two times.However ,it is difficult to program for MEGA,bacause the TX LED blink irregularly.You can power up UNO ,MEGA from USB port.

Troubleshooting

1.IS the green LED of bluetooth light ? It's not,two buletooths don't build communication ,you must set two buletooths again.

2.Are both buletooths setted same baud suitted to main board?

3.Do you operate the reset button accurately when you are programming ? the DUE Pro is different other boards.