User Tools

Site Tools


mm-uav_arm_bluetooth_operation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mm-uav_arm_bluetooth_operation [2016/08/02 05:16] dongbinkimmm-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: <[email protected]>
- +
-<!-- Everywhere you see <some sentence>, replace it with the answer (be concise), and remove the < and > brackets --> +
- +
-**Author:** <Dongbin KimEmail: <[email protected]> <!-- replace with your email address -->+
 \\ \\
-**Date:** Last modified on <08/01/16>+**Date:** Last modified on 08/01/16
 \\ \\
-**Keywords:** <Arduino, Bluetooth, Serial communication, C++, MM-UAV>+**Keywords:** Arduino, Bluetooth, Serial communication, Cpp, MM-UAV
 \\ \\
- 
-<!-- Add a representative photo of your tutorial below.  Make it centered in the page --> 
  
 {{:bluetooth_operation_2_.jpg?300|}}  {{:bluetooth_operation_2_.jpg?300|}} 
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 C++ language+  * Perhaps also know how to understand Cpp language
 \\ \\
   * 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#partsListAndSources|Parts List and Sources]] +  * [[mm-uav_arm_bluetooth_operation#partsListAndSources|Parts List and Sources]] 
-  * [[tutorialTemplate#construction|Construction]] +  * [[mm-uav_arm_bluetooth_operation#construction|Construction]]
-  * 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. <!-- in table below, replace ??? with relevant information and add additional lines if necessary --> +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 C++ language, you can easily understand the algorithms. When you are done building up Arduino Sketch, Compile the code and upload on Arduino.+Please refer the **Programming** section to Sketch Arduino. If you understand Cpp 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.  **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 <SoftwareSerial.h> #include <SoftwareSerial.h>
 #include <Servo.h> #include <Servo.h>
Line 321: Line 320:
  
  
-</Code>+</code>
 ---- ----
 // //
mm-uav_arm_bluetooth_operation.1470140208.txt.gz · Last modified: 2016/08/02 05:16 by dongbinkim