Skip to content

benc-riis/drone_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

These notes are for a common Pixhawk 2.4.8 F450 frame drone kit you can buy on AliExpress. Example: https://www.aliexpress.com/item/1005008272355887.html

If the link no longer works, search "PIXHAWK2.4.8 Flight Control F450 Drone Kit" for some identical listings. These notes are for the "Full Kit" option.

Connections

Motors

  • See https://ardupilot.org/copter/docs/connect-escs-and-motors.html
  • Make sure you place your motors correctly on the frame
    • From the front left arm of the drone going clockwise, motors should be ordered SILVER, BLACK, SILVER, BLACK
      • SILVER = motor spinning clockwise
      • BLACK = motor spinning counter-clockwise
      • The colour corresponds with each propeller blade's middle section colour, and also the cap the comes on the motor

Electronic Speed Controllers (ESC's)

  • You'll need to solder the 3 male connector pieces to the 3 black wires
  • You can connect the 3 black wires between the motors and ESC's in any way
  • The black and red wires from the ESC's must be soldered to your Power Distribution Board (PDB)
    • Red is positive
    • Black is negative
  • The brown, red, yellow connectors will plug into the pin header on the back of the Pixhawk

Radio Telemetry

  • The radio should have a plug that fits into the TELEM 1 port of the Pixhawk

GPS

  • Plug the M8N GPS into the GPS and I2C ports of the Pixhawk
    • So far the GPS hasn't worked for me. Running gps status in a MAVLink shell (In QGC, open the Analyze Tools menu -> MAVLink Shell) outputs that no GPS is found.

Battery

  • The battery should plug into the Power Brick / Power Monitor
    • The power brick in my kit did not output a high enoug voltage for the Pixhawk!
      • It was causing a preflight check failure
    • My power brick was outputting ~5.2V. However, the internal voltage of the Pixhawk was being measured around 4.8V - 4.9V, which is a preflight check fail (needs to be 5V). The drop is due to a diode (to prevent backpower when multiple sources are used) with a drop of ~0.2V and evidently some other components causing a drop of another 0.1V - 0.2V.
    • I used a spare Power Brick Mini to fix this issue which outputs 5.3V

Configuration in QGroundControl

Connect the Pixhawk to your computer using a USB cable and open QGroundControl (QGC). You will need to power the drone using a battery for some of the setup below.

Flashing Firmware

Before you can configure the drone, you need to flash the PX4 firmware onto it

  1. In QGC, go to Vehicle Setup
  2. Click on the Firmware tab
  3. You should see red text reading something like "Please unplug your Pixhawk..."
    • If you don't see this then you need to troubleshoot why QGC can't detect the autopilot. There may be an issue with its bootloader or QGC's permissions to access devices on your computer.
  4. Remove power from your device, then plug it back in.
  5. Install the most recent Stable PX4 firmware (this should be default)
    • I ran into issues with an error happening during the end. Retrying several times seemed to work.
  6. QGC should now connect to the device and reveal a lot of new vehicle setup tabs

Vehicle Setup and Calibration

Do these configurations in the given order for best results

Airframe

  • Make sure "Generic Quadcopter" is selected

Actuators

  1. Geometry

    • Set the geometry of the airframe in meters
    • Note that the center is the center of gravity, not the autopilot

    actuator geometry

  2. Power

    • See https://docs.px4.io/main/en/config/battery.html
    • Set Battery options according to your battery e.g. for a 4S LiPo battery
      • The voltage divider value will vary from setup to setup. Use a voltmeter to measure your battery while it is powering your drone, then click the "calculate" button and enter the measured voltage. This will give you an accurate voltage divider value which also means an accurate battery percentage.

    battery settings

  3. Assign motors

  4. Calibrate ESC's

    • See https://docs.px4.io/main/en/advanced_config/esc_calibration.html
      • Unplug the battery from your drone, but leave the USB plugged in.
      • Back in the Power tab, in the "ESC PWM Minimum and Maximum Calibration" section, click the calibrate button.
      • Plug the battery back in. You should see a calibration in progress popup for a few seconds and hear the ESC's beeping.
        • I had to attempt this several times before it worked (I kept getting timeout errors).
  5. PWM Minimums and Maximums

    ESC PWM minimums and maximums

RC Setup (Optional if using Joystick)

  • TODO when I get an RC

Joystick Setup (Optional if using RC)

You can control the drone through your laptop / any device running QGC with a radio attached to it.

  • You can use virtual joysticks (enabled in Application Settings -> General -> Fly View)
  • Or you can plug in a Gamepad / controller

In either case, if you are NOT using an RC:

  • In Vehicle Setup, go to the Parameters tab
  • Search "Joy"
  • Change COM_RC_IN_MODE to "Joystick Only"

After plugging in a controller, you should see a joystick tab appear. Use this tab to configure buttons to different actions.

  • Make sure to enable the joystick using the checkbox
  • I highly recommend binding the "Emergency Stop" action to a button you will not forget and can press at any time. This action will stop the motors from spinning instantly, even if flying (very useful in a crash since the autopilot can take valuable time to realize something is wrong)
    • Other useful bindings are "Toggle Arm", "Hold", and "Return"

Calibrating Sensors

  • You can calibrate the Gyroscope and Accelerometer at your bench
  • Wait to do compass calibration until you're outside in the area where you'll be flying
    • The compass is sensitive to magnetic interference, and calibrating it in a building will likely cause it to be incorrectly calibrated when you leave the building.

Misc

  • To fix a preflight check failure about missing power redundancy, set the parameter com_power_count to 0

First Flight DOs and DON'Ts

TODO

About

Notes for putting together an F450 clone / drone kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors