mm-uav_arm_bluetooth_operation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mm-uav_arm_bluetooth_operation [2016/08/02 04:39] – dongbinkim | mm-uav_arm_bluetooth_operation [2016/08/02 05:17] – dongbinkim | ||
---|---|---|---|
Line 70: | Line 70: | ||
{{: | {{: | ||
\\ | \\ | ||
+ | Arduino Uno only supplies 6 PWM control pins(3, | ||
\\ | \\ | ||
+ | \\ | ||
+ | **Step 2. Bluetooth installation** | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | Bluetooth operation is working much, much better in Android enviorment. Please download ' | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | Click 'Set Keys' button and set up the button. 'Data of Key' stands for a data that the app will send Serial communication to Arduino. Make sure you write the same data as in Arduino sketch which is on the next section. | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 3. Arduino Sketch** | ||
+ | \\ | ||
+ | \\ | ||
+ | Please refer the **Programming** section to Sketch Arduino. If you understand C++ language, you can easily understand the algorithms. When you are done building up Arduino Sketch, Compile the code and upload on Arduino. | ||
+ | **WARNING** - When you upload the sketch, make sure you take off the VC line(+) of battery for servos. Otherwise, you will encounter lots of operating errors. | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 4. Bluetooth Settings** | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | To set up the bluetooth for yours, you should know how to run AT(Attention) commands. AT commands help you check if bluetooth is connected or not, and help you change name, password, baud rate. The followings are basic AT commands language. | ||
+ | When you type the word at Sent on Serial display, you must check whether you have seen the received word. | ||
+ | |||
+ | 1. Communications Test : | ||
+ | *Sent : AT | ||
+ | *receive : OK | ||
+ | |||
+ | 2. Change baud rate : | ||
+ | *Sent : AT+BAUD1 | ||
+ | *receive : OK1200 | ||
+ | |||
+ | *Sent : AT+BAUD2 | ||
+ | *receive : OK2400 | ||
+ | |||
+ | 1 : 1200 | ||
+ | |||
+ | 2 : 2400 | ||
+ | |||
+ | 3 : 4800 | ||
+ | |||
+ | 4 : 9600 | ||
+ | |||
+ | 5 : 19200 | ||
+ | |||
+ | 6 : 38400 | ||
+ | |||
+ | 7 : 57600 | ||
+ | |||
+ | 8 : 115200 | ||
+ | |||
+ | Baud rate setting can be save even power down. | ||
+ | |||
+ | 3. Change Bluetooth device name: | ||
+ | *Sent : AT+NAMEdevicename | ||
+ | *receive : OKname | ||
+ | (devicename is the name you want the device to be , and it will be searched with this name) | ||
+ | Name setting can be save even power down. | ||
+ | |||
+ | 4. Change Pincode: | ||
+ | *Sent : AT+PINxxxx | ||
+ | *receive : OKsetpin | ||
+ | (xxxx is the pin code you set) | ||
+ | Pin code can be save even power down. | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 5. Bluetooth Operation** | ||
\\ | \\ | ||
\\ | \\ | ||
- | **Step 2** | + | {{: |
\\ | \\ | ||
+ | Once you are done setting up through AT Commands, Connect the power to Arduino and Motors. Then, click ' | ||
+ | GOOD LUCK! | ||
\\ | \\ | ||
- | < | ||
\\ | \\ | ||
==== Programming ==== | ==== Programming ==== | ||
- | A link to the source code can be found <provide URL to your code, probably saved in this DASL Wiki>. | ||
\\ | \\ | ||
- | The goal of the code is <brief explanation> | + | The goal of the code is to manipulate MM-UAV with bluetooth. It works in the following way |
\\ | \\ | ||
---- | ---- | ||
Line 258: | Line 332: | ||
</ | </ | ||
---- | ---- | ||
- | Next, the code does <fill in the blank> | ||
- | <!-- Keep entering snippets of code and descriptions until you've given enough for a reader to understand how it works --> | ||
// | // | ||
// | // | ||
==== Final Words ==== | ==== Final Words ==== | ||
- | This tutorial' | + | This tutorial' |
\\ | \\ | ||
\\ | \\ | ||
- | Speculating future work derived from this tutorial, includes | + | Speculating future work derived from this tutorial, includes |
\\ | \\ | ||
\\ | \\ | ||
- | For questions, clarifications, | + | For questions, clarifications, |
mm-uav_arm_bluetooth_operation.txt · Last modified: 2016/10/23 20:22 by dwallace