MegaWAP Setup Guide
Please continue to check back for the latest updates
Before you start, please make sure you have all the needed software as below:
For loading of firmware/programming, you need the Arduino IDE
For MegaPirateNG, please use this link to download the latest code
MegaWAP V2 custom files for the MWC or MegaPirateNG, please refer to the download section else user can manually select the sensors from the config.h under Arduino IDE.
MegaWAP V2 Board overall connection and pin out:
Pinout reference table:
Frame type setup connections:
MultiWii Frame type example:
Hexa - X (From front left to right direction)
M1 (CW), M3 (CCW), M5 (CW), M2 (CCW), M4 (CW), M6 (CCW)
Hexa - + (From Front motor to right direction)
M5 (CW), M3 (CCW), M2 (CW), M6 (CCW), M4, (CW), M1 (CCW)
Refer this this link for the official pin out and you can map this with MegaWAP pin out table for all the connections.
Connecting MegaWAP V2 for programming and configuration:
To communicate with the Arnuino IDE, you need to have the FTDI. 1st make sure your FTDI is connected and ensure the driver are loaded properly. You should see the virtual com port are assigned to the FTDI. At Arbuino IDE, goto tools and select the board type to Arduino Mega 2560 board and the Serial Port to the correct virtual Com posrt.
After you downloaded the Arduino IDE and run it, you can load the source files from MWC or MegaPirate from their respective folder. Example below is the screen showing loaded with the WMC code:
You can change the setup from the config.h tab. The common changes by user will normally the Frame type (Quad/Hex/Oct etc) and the ESC min/max range. For sensors that are predefined for MegaWAP, please replace the config.h and define.h that you can get it from download section within the webstore.
Once you are done with the changes, click the upload button (Right Arrow Round button) and the Arduino IDE will compile the code and upload to the MegaWAP V2 board. You should not see any error else please check if you have wrongly changes the code. (For MegaPirate, you need to replace the Library folder from the download section)
For Configuring and tuning of the model:
Please also refer to the official project link
Note about the Magnetic declination number for the Wii code:
in config.h this is example for Budapest-Hungary: //#define MAG_DECLINIATION 3.96f //For Budapest Hungary.
First check here for magnetic declination: http://magnetic-declination.com/
Then calculate here: http://www.satsig.net/degrees-minutes-seconds-calculator.htm
The GUI can be downlaoded from the project link.
Sample of the GUI as below. The steps to get connected:
1. Connect the FTDI cable and ensure proper driver are setup. Make sure no error shows on Device Manager.
2. Connect the FTDI to the MegaWAP V2 as the picture.
3. When the GUI open and running (this needs to have your Java running and installed), you can do the following
3a: click on the com port number of the FTDI, and you will see the text turned to Green.
3b: click on start, you should see the text data loaded to all the PIDs and also the graph start showing the lines. when you tilt the board, the on screen ,odel should react accordingly.
Now you can use the GUI to setup the flight mode according to your transmitter.
Please also ensure that all the stick movement are showing from 1080 to 1950 range. This will ensure the proper stick minimum and maximum. You can refer to the stick bar data at the top right of the GUI screen.
Left screen with default setting, right screen with Aux1 enable with Stable and Baro mode
User also can use the LCD for the gain setting. Please refer to the stick guide below for all the available option including other calibration settings. This will make tuning easier at field without the need of a computer.
Note: some radio may not have enough end point to activate, please ensure you reconfirm the stick end point using the GUI.
You also can download the sketch from download section. Please replace the library folder of the Arduino with the one from the download section before you compile.
Or goto APM_config.h tab to search for the few define line as below and edit:
First:: //Select your sensor board
#define PIRATES_SENSOR_BOARD PIRATES_FREEIMU
Next: // Select your baro sensor
#define CONFIG_BARO AP_BARO_BMP085_PIRATES