mm-uav_arm_bluetooth_operation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mm-uav_arm_bluetooth_operation [2016/08/02 05:16] – dongbinkim | mm-uav_arm_bluetooth_operation [2016/10/23 20:22] (current) – dwallace | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MM-UAV Arm Bluetooth Operation ====== | ====== MM-UAV Arm Bluetooth Operation ====== | ||
- | <!-- Replace the above line with the name of your "How To" Tutorial e.g. How to Laser cut Your Name in Wood --> | + | **Author:** Dongbin Kim Email: < |
- | + | ||
- | <!-- Everywhere you see <some sentence>, | + | |
- | + | ||
- | **Author: | + | |
\\ | \\ | ||
- | **Date:** Last modified on <08/01/16> | + | **Date:** Last modified on 08/01/16 |
\\ | \\ | ||
- | **Keywords: | + | **Keywords: |
\\ | \\ | ||
- | |||
- | <!-- Add a representative photo of your tutorial below. | ||
{{: | {{: | ||
Line 24: | Line 18: | ||
* Know how to write down Arduino sketch, Serial communication | * Know how to write down Arduino sketch, Serial communication | ||
\\ | \\ | ||
- | * Perhaps also know how to understand | + | * Perhaps also know how to understand |
\\ | \\ | ||
* Perhaps additional background needed may include basic electrical engineering knowledge | * Perhaps additional background needed may include basic electrical engineering knowledge | ||
Line 31: | Line 25: | ||
\\ | \\ | ||
The rest of this tutorial is presented as follows: | The rest of this tutorial is presented as follows: | ||
- | * [[tutorialTemplate# | + | * [[mm-uav_arm_bluetooth_operation# |
- | * [[tutorialTemplate# | + | * [[mm-uav_arm_bluetooth_operation# |
- | * Programming <!- delete this line if not applicable -> | + | |
* Final Words | * Final Words | ||
Line 40: | Line 33: | ||
US-based vendors to obtain material to complete this tutorial include Amazon.com. | US-based vendors to obtain material to complete this tutorial include Amazon.com. | ||
\\ | \\ | ||
- | To complete this tutorial, you'll need the following items. But I omitted the items from MM-UAV arm assembly because this page is to learn how to manipulate the arm wirelessly. | + | To complete this tutorial, you'll need the following items. But I omitted the items from MM-UAV arm assembly because this page is to learn how to manipulate the arm wirelessly. |
- | + | ||
- | <!-- Alternatively create: (1) a Google XLS document that's publicly viewable and provide link; and (2) a PDF version of the Google XLS, store the PDF file in your site, and provide link to it --> | + | |
\\ | \\ | ||
Line 89: | Line 79: | ||
\\ | \\ | ||
\\ | \\ | ||
- | Please refer the **Programming** section to Sketch Arduino. If you understand | + | Please refer the **Programming** section to Sketch Arduino. If you understand |
**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. | **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. | ||
Line 104: | Line 94: | ||
1. Communications Test : | 1. Communications Test : | ||
- | Sent : AT | + | *Sent : AT |
- | receive : OK | + | *receive : OK |
2. Change baud rate : | 2. Change baud rate : | ||
- | Sent : AT+BAUD1 | + | *Sent : AT+BAUD1 |
- | receive : OK1200 | + | *receive : OK1200 |
- | Sent : AT+BAUD2 | + | *Sent : AT+BAUD2 |
- | receive : OK2400 | + | *receive : OK2400 |
1 : 1200 | 1 : 1200 | ||
+ | |||
2 : 2400 | 2 : 2400 | ||
+ | |||
3 : 4800 | 3 : 4800 | ||
+ | |||
4 : 9600 | 4 : 9600 | ||
+ | |||
5 : 19200 | 5 : 19200 | ||
+ | |||
6 : 38400 | 6 : 38400 | ||
+ | |||
7 : 57600 | 7 : 57600 | ||
+ | |||
8 : 115200 | 8 : 115200 | ||
+ | |||
Baud rate setting can be save even power down. | Baud rate setting can be save even power down. | ||
3. Change Bluetooth device name: | 3. Change Bluetooth device name: | ||
- | Sent : AT+NAMEdevicename | + | *Sent : AT+NAMEdevicename |
- | receive : OKname | + | *receive : OKname |
(devicename is the name you want the device to be , and it will be searched with this name) | (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. | Name setting can be save even power down. | ||
4. Change Pincode: | 4. Change Pincode: | ||
- | Sent : AT+PINxxxx | + | *Sent : AT+PINxxxx |
- | receive : OKsetpin | + | *receive : OKsetpin |
(xxxx is the pin code you set) | (xxxx is the pin code you set) | ||
Pin code can be save even power down. | Pin code can be save even power down. | ||
Line 151: | Line 150: | ||
\\ | \\ | ||
---- | ---- | ||
- | <Code:c++ linenums:1> | + | <code c++ mmuavarm.cpp> |
#include < | #include < | ||
#include < | #include < | ||
Line 321: | Line 320: | ||
- | </Code> | + | </code> |
---- | ---- | ||
// | // |
mm-uav_arm_bluetooth_operation.1470140208.txt.gz · Last modified: 2016/08/02 05:16 by dongbinkim