1. PURPOSE / DESCRIPTION
1.1 Set up the development environment of BrainBox
- WiRa (drone APP and client APP)
1.2 Demonstrate how to use Vairdo Binox APP (client APP)
2. TEST SET-UP
- MPLAB X IDE v2.15
- MPLAB ICD 3
- DRONA Firmware: https://github.com/Vairdo/DRONA_firmware, version: 816ee47
- Download the Brainbox App Apk file and install it.
3.1 Install MPLAB X IDE (link)
3.1.1 Please follow the procedures below:
|Step 1||Step 2|
|Step 3||Step 4|
|Step 5||Step 6|
3.2 Install the compiler if there is no XC16 in your computer (XC16 v1.21)
3.2.1 Please note that the version must be v1.21. For the latest version, the paths of the libraries have been modified, which may cause build error in the firmware.
3.2.2 For the old versions of XC16, Microchip only provides the shell scripts for installation. It is easier to install XC16 with executable file.
3.3 Flash the code or enter debug mode
3.3.1 Please follow the procedures below:
3.4 Other configuration
3.4.1 Select Menu bar -> File -> Project Properties
|When using MPLAB, either using battery or set power target circuit from ICD3|
|Make sure the compiler is the same as above; otherwise it may cause build error|
3.5 Install Android Studio
3.5.1 Install tutorial link
3.6 Open project:
|Step 1: Menu bar -> Open||Step 2: choose SelfieDrone Project|
|Step 3: Wait until build is finished|
|Step 4: Wait until “Gradle build finished with xxx warning(s)…” appears. Click “Project” to see the source codes|
3.7 Build and install the Applications
3.7.1 Application on WiRa board (drone APP):
126.96.36.199 Make sure the Brainbox is power up and ready to work
188.8.131.52 The LEDs on WiRa board start blinking: drone APP is ready
184.108.40.206 Connect WiRa and PC
220.127.116.11 Select “drone” and then select “run” or “debug” (in the blue circle), then there should be “choose device” window. Select “OK” (Please see the pictures below)
18.104.22.168 When the application is being installed, the LEDs will be off. The installation is finished when the LEDs are blinking again.
3.7.2 Application on Android smartphone (client APP):
22.214.171.124 Make sure the “Developer Options” is enabled (Ref. link)
126.96.36.199 Select Developer Options, the enable USB debug
188.8.131.52 Connect smartphone to PC
184.108.40.206 Select “client” and then select “run” or “debug” (in the blue circle), then there should be “choose device” window. Select “OK” (Please see the pictures above)
220.127.116.11 The client APP is installed
3.8 Start to control BrainBox:
3.8.1 Connect the battery to BrainBox, then DRONA will be automatically power up.
3.8.2 The LEDs on DRONA are blinking while the initialization and calibration are processed.
3.8.3 When the 4 LEDs on DRONA are all on and then off, it means that it finishes the power up procedures.
3.8.4 Press the power switch button on WiRa, and wait until the LEDs on WiRa are blinking.
3.8.5 Use smartphone to select the Wifi hotspot. The name starts with “NXDrone-” (See Fig. 3.8.1)
3.8.6 Open client APP, press the arrow to search the Wifi hotspot of drone APP. (See Fig. 3.8.2)
3.8.7 When the menu is changed to green, press the region for a while to open the menu (See Fig. 3.8.3-4)
|Fig. 3.8.1||Fig. 3.8.2|
|Fig. 3.8.4||Fig. 3.8.5|
3.8.8 Select “Open Video Stream”, then the video stream will show on the screen. (See Fig. 3.8.5)
3.8.9 The gimbal control is by slightly moving the right button.
3.8.10 Select “Info” to read some information of the BrainBox, slide right to get the next page. (See Fig. 3.8.6-8)
|Fig. 3.8.6||Fig. 3.8.7||Fig. 3.8.8|