# S500 V2 (Pixhawk 4)

This topic provides full instructions for building the kit and configuring PX4 using _QGroundControl_.

:::note Holybro initially supplied this kit with a [Holybro Pixhawk 4](../../drone_parts/flight_controller/autopilot_pixhawk_standard/pixhawk4), but at time of writing this has been upgraded to a more recent Pixhawk. This build log is still relevant as the kit assembly is virtually the same, and likely to remain so as the flight controller is upgraded. :::

## Key information

* **Frame:** Holybro S500
* **Flight controller:** [Pixhawk 4](../../drone_parts/flight_controller/autopilot_pixhawk_standard/pixhawk4)
* **Assembly time (approx.):** 90 minutes (45 minutes for frame, 45 minutes for autopilot installation/configuration)

![Full S500 Kit](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-a7b804ca996fa0380ad56b5c67eb68fd2fd61e4b%2Fs500_hero.png?alt=media)

## Bill of materials

The Holybro [S500 V2 Kit](https://holybro.com/collections/s500/products/s500-v2-development-kit) includes almost all the required components:

* A recent Pixhawk autopilot
  * For this log it was Pixhawk 4 but far more recent versions are now included.
* Power Management PM02（Assembled）
* ARM adopts high strength plastics
* Motors - 2216 KV880（ V2 Update）
* Propeller 1045（ V2 Update）
* Pixhawk4 GPS
* Fully assembled Power Management Board with ESCs
* 433 MHz / 915 MHz [Holybro Telemetry Radio](../../drone_parts/peripherals/telemetry/sik_radio/holybro_sik_radio)
* Power and Radio Cables
* Battery Straps
* Dimensions:38&#x33;_&#x33;8&#x35;_&#x32;40mm
* Wheelbase:480mm

:::note No LiPo battery is included. In addition, we use a FrSky Taranis controller. :::

## Hardware

| Item Description           | Quantity |
| -------------------------- | -------- |
| Wheelbase: 480mm           | 1        |
| Arms                       | 4        |
| Set of Landing Gear        | 2        |
| M3\*8 screws               | 18       |
| M2 5\*6 screws             | 24       |
| Battery Straps             | 1        |
| Propeller 1045 (V2 Update) | 1        |

![S500 Hardware](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-472bed0991856e1e35a72b592777e4efe3191c44%2Fs500_hardware.jpg?alt=media)

## Package

| Items                            | Package |
| -------------------------------- | ------- |
| Pixhawk 4                        | 1       |
| Pixhawk4 GPS MODULE              | 1       |
| I2C splitter Board               | 2       |
| 6 to 6 pin cable (power)         | 3       |
| 4 to 4 pin cable (CAN)           | 2       |
| 6 to 4 pin cable (Data)          | 1       |
| 10 to 10 pin cable (PWM)         | 2       |
| 8 to 8 pin cable(AUX)            | 1       |
| 7 to 7 pin cable(SPI)            | 1       |
| 6 to 6 pin cable(Debug)          | 1       |
| PPM/SBUS out cable               | 1       |
| XSR receiver cable               | 1       |
| DSMX receiver cable              | 1       |
| SBUS receiver cable              | 1       |
| USB cable                        | 1       |
| 'X'type folding pedestal mount   | 1       |
| 70mm & 140mm carbon rod standoff | 2       |
| 6\*3 2.54mm pitch Horizontal Pin | 1       |
| 8\*3 2.54mm pitch Horizontal Pin | 2       |
| Foam Set                         | 1       |
| Pixhawk4 Quick Start Guide       | 1       |
| Pixhawk4 Pinouts                 | 1       |
| GPS Quick Start Guide            | 1       |

![S500 Package Contents](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-efafef0229fe21c731cc0f4abe9b5655cc1ff233%2Fs500_package.jpg?alt=media)

### Electronics

| Item Description                                 | Quantity |
| ------------------------------------------------ | -------- |
| Pixhawk 4 autopilot (PM06 not included)          | 1        |
| Power Management PM02 (Assembled)                | 1        |
| Motors - 2216 KV880 (V2 Update)                  | 4        |
| Pixhawk 4 GPS                                    | 1        |
| Fully assembled Power Management Board with ESCs | 1        |
| 433MHz Telemetry Radio / 915MHz Telemetry Radio  | 1        |

![S500 Electronics](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-97784e64957da9aaa1f6d366102f22f7d41b4b9f%2Fs500_electronics.jpg?alt=media)

### Tools needed

The following tools are used in this assembly:

* 1.5 mm Hex screwdriver
* 2.0 mm Hex screwdriver
* 2.5 mm Hex screwdriver
* 3mm Phillips screwdriver
* Wire cutters
* Precision tweezers

![S500 Tools](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-14c3209cdc3f6624c2d260f4b3648c587744a0db%2Fs500_tools2.png?alt=media)

![S500 Tools](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-ceca187514a071a1cc69a88267f69056013cb28f%2Fs500_tools.jpg?alt=media)

## Assembly

Estimate time to assemble is 90 minutes, about 45 minutes for frame assembly and 45 minutes installing and configuring the autopilot in QGroundControl.

1.  Assembling the Landing Gear. We are going to start by assembling the landing gear to the vertical pole. Unscrew the landing gear screws and insert the vertical pole as shown below.

    ![Figure 1](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-4c1d0f7c9eeb3e92be824770c2b68f4c5b862d77%2Fs500_fig1.jpg?alt=media)

    ![Figure 2](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-698d43c146050a135b2ab49e9c6721b0f7683ca7%2Fs500_fig2.jpg?alt=media)
2. Assemble the Power Management Board to the landing gear. Screw the landing gear with a vertical pole to the Fully assembled Power Management Board.

The Board has 4 holes (see arrows below).

![Figure 3](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f79edfa6a8c08afc203ecc6ee2b49b919968ac8b%2Fs500_fig3.jpg?alt=media)

Connect with the M3X8 screws, a total of 8 pieces, 4 on each side.

![Figure 4](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-feea74c1087d3894d1ae3330823f717185a472b2%2Fs500_fig4.jpg?alt=media)

1.  Assemble the arms to the Power Management Board. Attach the arm to the Power Management Board.

    ![Figure 6](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-489717a5cf6496bdfcab3e2f41fd07e068cf03eb%2Fs500_fig7.jpg?alt=media)

    ![Figure 7](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-75528183bc60f894e9e82eddff8699d4fec1f447%2Fs500_fig8.jpg?alt=media)

    Use M2 5X6 screws a total of 2 in each arm. Insert the screws from the bottom of the plate.

    ![Figure 8](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-706dd53b9d7089dc20bc09e65416227ea0ac95a0%2Fs500_fig9.jpg?alt=media)

    Make sure the ESC cables run through the middle of the arm.

    ![Figure 9](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-e3df0e956498547b6dfcced040846f021105dba3%2Fs500_fig91.jpg?alt=media)
2.  Assemble the &#x38;_&#x33; 2.54mm pitch Horizontal Pin to the 10 to 10 pin cable (PWM) to the Power Management Board. Connect the 10 to 10 pin cable (PWM) to the &#x38;_&#x33; 2.54mm pitch Horizontal Pin.

    ![Figure 10](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-36bcacde37687236fdd0afba765a91a7f424f6bb%2Fs500_fig10.jpg?alt=media)

    Cut a piece of 3M Tape and attach to the bottom of the Horizontal Pin:

    ![Figure 11](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-d4dc523156b79c8f2de6a08362ba83e2b32b06f2%2Fs500_fig11.jpg?alt=media)

    Stick the Horizontal Pin to the Power Management Board:

    ![Figure 12](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f2ff820fd5948b17e53616e90eba07439dfc6248%2Fs500_fig12.jpg?alt=media)

    ![Figure 13](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-7689e34c145a2b10ce24383db1388756dd37f1df%2Fs500_fig13.jpg?alt=media)
3.  Assemble the motors to the arms. For this, we will need the 16 screws M3X7, 4 motors, and the 4 arms.

    Mount the motors in each arm put the screw through the bottom of the arm:

    ![Figure 14](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f48a767df86ced6e603b5dff0e9f5c15d29cf2c9%2Fs500_fig14.jpg?alt=media)

    ![Figure 15](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-3069093d724d167933ad512e0dbb8b6a484d12fa%2Fs500_fig15.jpg?alt=media)

    After the 4 motors are mounted on the arm grab the cables(red, blue, black) and put them through the arm thread. The 3 cables that are color-coded go connected to the ESC.

    ![Figure 16](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-fdc311699199ff4052117efd2ebb41addd61ed20%2Fs500_fig16.jpg?alt=media)

    ![Figure 17](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-a5f98adb3b270f93016bec5d1b46e56290206a5f%2Fs500_fig17.jpg?alt=media)
4.  Mounting the GPS on the frame. For this, we will need the Pixhawk 4 GPS and the mounting plate.

    ![GPS Parts](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-7ec59601f6c5595fd455b0e7651ab6d560445863%2Fs500_gpskit.png?alt=media)

    Mount the GPS mast to the back of the Board, use the 4 screws:

    ![Figure 18](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-d632fb61cdbf50cfc9462210ef96aeefa2193dd8%2Fs500_fig18.jpg?alt=media)

    ![Figure 19](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-338c862bb9bcf631ac3b61606e3075fd3c1953cb%2Fs500_fig19.jpg?alt=media)

    Use the tape and stick the GPS to the top of the GPS mast:

    ![Figure 20](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-89f413a3296566768f70f47d7563c42ee8e37963%2Fs500_fig20.jpg?alt=media)
5.  Paste the FrSky to the Board. Paste FrSky with double-sided tape (3M) to the bottom board. Attach the FrSky to the frame:

    ![Figure 21](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f977757517f2febd5b9cae8023306b10ddcd78d8%2Fs500_fig21.jpg?alt=media)

    ![Figure 22](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-336731c2870a9161080e8196b7be2b8181b54682%2Fs500_fig22.jpg?alt=media)
6.  Attach the Telemetry to the frame. The next step is to take the Holybro telemetry radio and attach it onto the frame, use 3M tape.

    ![Figure 23](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-382581fa8620bd1a7bbf0785b846a3666d6a98cd%2Fs500_fig23.jpg?alt=media)

    ![Figure 24](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f745d6698cd17a8a12e99701d3c637c4849b374f%2Fs500_fig24.jpg?alt=media)

    This assembly attached it inside the frame facing outwards to the front of the vehicle. A picture is shown below of the radio sitting inside the bottom of the frame.

    ![Figure 25](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-d24690ff934a48188b247730d2129c5eb2858588%2Fs500_fig25.jpg?alt=media)
7.  Mounting the Pixhawk 4 to the plate. Use double-sided tape to attach the Pixhawk 4 to the center plate:

    ![Figure 26](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-49d05a2f5d1ce477d19b3dca247af47a0b2688ff%2Fs500_fig26.jpg?alt=media)

    ![Figure 27](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-852e5350cfc4b2068ae25a821b5d4cc88f6178bc%2Fs500_fig27.jpg?alt=media)

    ![Figure 28](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-2b4e5caa6f37a9d02966919d7394c486b0aa12af%2Fs500_fig28.jpg?alt=media)

    The next step is to mount the Pixhawk 4 with the plate to the frame. For this, we will need the M2 5X6 screws. Align the plate to the frame and insert the screws. Before you mount the plate we recommend putting tape on the Power Module (that way it's tight).

    ![Figure 29](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-ebcb790300ff95faec562cb8fd094e55447391eb%2Fs500_fig29.jpg?alt=media)

    ![Figure 30](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-bef410087af80d4ccbb6c1009cd53e4561dd46a9%2Fs500_fig30.jpg?alt=media)
8.  Assembling the Battery Mount to the frame. For this we will need the M2 5X6 screws and the battery mount:

    ![Figure 31](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-4431b2cb6dc7c47e0c86c9db23f8059196610aab%2Fs500_fig31.jpg?alt=media)

    Insert the long rods to the small rings:

    ![Figure 32](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-cd7bb56321c8725f139ee9d424b27c0d2b0b596d%2Fs500_fig32.png?alt=media)

    ![Figure 33](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-a5dde85f62428e12dc720dc50f41370c3491f6fd%2Fs500_fig33.png?alt=media)

    Attach that to the frame, make sure all four sides are aligned to insert the screws:

    ![Figure 34](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-b5791b2020f15dcb9e8e89b609364f89ae61b417%2Fs500_fig34.jpg?alt=media)

    Assemble the small plate to the legs and screw on all four sides.

    ![Figure 35](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-a168bf6af95fe78e437d4b4b82acf10021d4da86%2Fs500_fig35.jpg?alt=media)

    The final step is to attach the plate:

    ![Figure 36](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-7192b1e19f7bda68938557c1b827f7e0f3d261df%2Fs500_fig36.jpg?alt=media)
9. Pixhawk 4 wiring. The Pixhawk 4, which has several different wires and connections with it. Included below is a picture of every wire needed with the Pixhawk and how it looks when connected.
10. Plugin Telemetry and GPS module to the flight controller as seen in Figure 37; plug in the RC receiver, all 4 ESCs to the flight controller as well as the power module.

    ![Figure 37](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-8f63ee47c445208b68ee17b3fa67a975ba39191e%2Fs500_fig37.png?alt=media)

Fully assembled, the kit looks as shown below:

![Pixhawk Assembled](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-5f7df44d3df3188595982a94de7c069e36c35c44%2Fs500_pixhawk.jpg?alt=media)

![Fully Assembled](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-efe8117bc2714f2f1b0853fe5bcd14b6a60e00a5%2Fs500_assembled.jpg?alt=media)

## PX4 Configuration

_QGroundControl_ is used to install the PX4 autopilot and configure/tune it for the QAV250 frame. [Download and install](http://qgroundcontrol.com/downloads/) _QGroundControl_ for your platform.

:::tip Full instructions for installing and configuring PX4 can be found in [Basic Configuration](../../config). :::

First update the firmware and airframe:

* [Firmware](../../config/firmware)
*   [Airframe](../../config/airframe)

    You will need to select the _Holybro S500_ airframe (**Quadrotor x > Holybro S500**).

    ![QGroundControl - Select HolyBro X500 airframe](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-f3fb19217ef6d921ade4ea6cb7fe9df962a0d58a%2Fqgc_airframe_holybro_s500.png?alt=media)

Then set the actuator outputs:

* [Actuators](../../config/actuators)
  * You should not need to update the vehicle geometry (as this is a preconfigured airframe).
  * Assign actuator functions to outputs to match your wiring.
  * Test the configuration using the sliders.

Then perform the mandatory setup/calibration:

* [Sensor Orientation](../../config/flight_controller_orientation)
* [Compass](../../config/compass)
* [Accelerometer](../../config/accelerometer)
* [Level Horizon Calibration](../../config/level_horizon_calibration)
* [Radio Setup](../../config/radio)
* [Flight Modes](../../config/flight_mode)

Ideally you should also do:

* [ESC Calibration](../../config/esc_calibration)
* [Battery](../../config/battery)
* [Safety](../../config/safety)

## Tuning

Airframe selection sets _default_ autopilot parameters for the frame. These are good enough to fly with, but it is a good idea to tune the parameters for a specific frame build.

For instructions on how, start from [Autotune](../../config/autotune).

## Acknowledgements

This build log was provided by the Dronecode Test Flight Team.
