HK Pocket Quad quick step by step guide By Sérgio Armelin · HK Pocket Quad quick step by step...
Transcript of HK Pocket Quad quick step by step guide By Sérgio Armelin · HK Pocket Quad quick step by step...
HK Pocket Quad quick step by step guide By Sérgio Armelin
1
Pocket Quad V1.1 Ultra-Micro HobbyKing (Atmega32u4 processor) http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=42844&pb=1
Pocket Quad
Battery
Pocket Quad receiver - “Rx” (DSM2 Satellite receiver compatible)
HK Pocket Quad quick step by step guide By Sérgio Armelin
2
USBasp AVR Programming Device (with Atmega8A) for ATMEL processors http://www.hobbyking.com/hobbyking/store/__27990__USBasp_AVR_Programming_Device_for_ATMEL_proccessors.html
Arduino Bread Board Jumper Set for USBasp AVR programming http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idproduct=26891
Download and install or unzip on your computer (PC or notebook): 1. Tutorial for Bootloader "PocketQuad V1flash Bootloader English2” from HK Files tab:
• http://www.hobbyking.com/hobbyking/store/uploads/116099981X532998X40.pdf 2. Arduino 1.5.5 download:
• http://arduino.cc/en/Main/Software 3. “Andrew bind code for pocketquad” sketch from HK Files tab:
• http://www.hobbyking.com/hobbyking/store/uploads/45451090X102121X14.zip 4. Firmware
My choice is “MultiWii_2_2_pocket.zip” sketch from RCGroups (very stable, for beginners): • http://www.rcgroups.com/forums/showpost.php?p=25031174&postcount=335
http://www.rcgroups.com/forums/showatt.php?attachmentid=5826837&d=1370188579 But you can also choose to: • CESCO sketch: http://www.rcgroups.com/forums/showatt.php?attachmentid=6204340&d=1382629253 • GKE sketch: https://github.com/gke/MWLite_gke/archive/master.zip
5. MultiWii 2.2 GUI Complete:
• https://multiwii.googlecode.com/files/MultiWii_2_2.zip
Rx Yellow LED = binded
Pocket Quad blue LED = arm state
Pocket Quad red LED = On/Off state
USBasp AVR Programming
HK Pocket Quad quick step by step guide By Sérgio Armelin
3
Transmitter (Tx) configuration (Turnigy 9XR is my transmitter, with an Orange Rx ORX 2.4GHz DSM2/DSMX module): • Channel 1: Thurtle stick • Channel 1: Aileron stick • Channel 1: Elevator stick • Channel 1: Rudder stick • Channel 5: Gear switch for arm/disarm Pocket Quad motors.
Step by step:
1. Bootloader (maybe you do not need it but when all else fails you may want to start here) Connect Pocket Quad with Pc/Note by the USBasp and adapter cable as tutorial "PocketQuad
V1flash BootloaderEnglish2". No ESCs connected No Rx Pocket Quad connected Connect Pocket Quad battery only when required by tutorial.
a. Run Arduino app (v1.5.5),
• Tools->Programmer: select “USBasp”.
• Tools->Burn Bootloader: if You get "Done burning bootloader", a few minutes later, that’s fine.
• Disconnect USBasp from Pocket Quad and PC/Note.
If you have problem on “Burn Bootloader”, check and re-check the connection with adapter cable. No port available or set is required in Arduino "Tools-> Serial Monitor".
HK Pocket Quad quick step by step guide By Sérgio Armelin
4
2. Pocket Quad bind with DSM2 or DSMX mode (You need this if You do not have a Spektrum Tx, or if You have a
DSM2/DSMX module or if You make a Burn Bootloader) a. Connect Pocket Quad directly with PC/Note, by a single USB cable.
No ESCs connected b. Run Arduino app and set Tools->Board-> for Arduino Leonardo.
c. Port -> COMxx
d. File->Open and charge sketch "Pocket_Quad_Bind_Code.ino" (downloaded from HK Files tab, "Andrew bind
code for pocketquad").
HK Pocket Quad quick step by step guide By Sérgio Armelin
5
e. Read the instructions included in the comments of sketch. f. I keep sketch setting for mode 2, DSM2 1024/22ms (low pulses), then I did not needed to change anything in
the sketch,
g. In Arduino app, File->Upload and wait: if You get "Done uploading", a few minutes later, that’s fine.
h. Unplug the USB cable from Pocket Quad i. Connect Rx in Pocket Quad. j. Bind Your Tx with Pocket Quad. If yellow Rx LED stays on, you succeeded to bind with the Tx.
Below I describe how I bind my Turnigy Tx (with OrangeRX DSM2/DSMX transmitter module): o When I connect the Pocket Quad in PC by USB (or only turn on with battery), the RX LED began
blinking rapidly (+ - 4 / second). o When I turn on the Tx, holding the bind button from ORX module, the Tx module LED blinked
twice, then I let the bind button on the Tx module. o The Rx LED flashes went slower (+ - 2 / sec), for a few seconds. Then the Rx LED stopped
blinking. k. Turn off Tx and disconnect the USB from Pocket Quad (or only turn off, disconnect from battery).
c
HK Pocket Quad quick step by step guide By Sérgio Armelin
6
Port not available in "Tools-> Serial Monitor" (“Board at COMxx is not available”)? Try to change the port to connect the USB in the Device Manager of your PC/Note.
… try to change the Port in your computer system…
HK Pocket Quad quick step by step guide By Sérgio Armelin
7
3. Pocket Quad firmware, for upload (You need this if You want to change firmware by another firmware, or if You make a Burn Bootloader or if You bind Tx/Rx with "Pocket_Quad_Bind_Code.ino" sketch)
a. Connect Pocket Quad directly with PC/Note, by a single USB cable. No ESCs connected
Run Arduino app and set: • Tools->Board-> for Arduino Leonardo.
• b. File->Open and charge sketch "MultiWii_2_2_pocket.ino" (downloaded from RCGroups).
HK Pocket Quad quick step by step guide By Sérgio Armelin
8
c. In Arduino app, File->Upload and wait: if you get "Done uploading", a few minutes later, that’s fine.
d. Unplug the USB cable from Pocket Quad
If Port not available in "Tools-> Serial Monitor" (“Board at COMxx is not available”)? See explanation in the
previous step ("Pocket Quad bind with ", page 6).
4. Testing, ACC calibrate and change settings or PID of the Pocket Quad through the GUI “MultiWiiWinGUI.exe”. a. Turn on your Tx. b. Connect Pocket Quad directly with PC/Note, by a single USB cable.
No ESCs connected No battery connected
HK Pocket Quad quick step by step guide By Sérgio Armelin
9
a. Check the Device Manager of your computer which port Pocket Quad is connected
If Port not available in "Tools-> Serial Monitor" (“Board at COMxx is not available”)? See explanation in the previous step ("Pocket Quad bind with ", page 6).
b. Run “MultiWiiWinGUI.exe” app and set “Port” as “Com__”, “Speed” as 9600 and press “Connect” button:
USB connection
HK Pocket Quad quick step by step guide By Sérgio Armelin
10
c. … If you hit it right, you will see your Pocket Quad activity represented on the "Real time data" from
MultiWiiGUI.
d. Make sure the Pocket Quad stand on a perfectly horizontal surface and press the "Calibrate ACC" button and
confirm:
e. Acting on sticks from Tx, make sure the movements are corresponding with the movements represented in
the horizontal columns:
HK Pocket Quad quick step by step guide By Sérgio Armelin
11
f. Switch to the "RC Control Settings" tab and select “H” to “AUX1” for arm Pocket Quad with “Auxiliar 1” (Gear) Tx switch.
g. Switch to the "RC Control Settings" tab. Acting on switch “Aux1” of the Tx you can see the corresponding action on the Pocket Quad represented in MultiWii GUI: