Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use pixhawk: Examples, Pinouts, and Specs

Image of pixhawk
Cirkit Designer LogoDesign with pixhawk in Cirkit Designer

Introduction

The Pixhawk 2.4.8, manufactured by ArduPilot, is an open-source flight control hardware designed for a wide range of autonomous vehicles, including drones, planes, and rovers. It is a highly versatile and reliable autopilot system that integrates advanced sensors, communication interfaces, and processing capabilities. The Pixhawk is widely used in robotics, unmanned aerial vehicles (UAVs), and other autonomous systems due to its robust performance and compatibility with various software platforms like ArduPilot and PX4.

Explore Projects Built with pixhawk

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi-Controlled Drone with Brushless Motors and Camera Module
Image of ROV: A project utilizing pixhawk in a practical application
This circuit is designed for a multi-motor application, likely a drone or a similar vehicle, featuring eight brushless motors controlled by two 4-in-1 electronic speed controllers (ESCs). The ESCs are powered by a 3s2p 18650 battery pack and interfaced with a Pixhawk flight controller for motor management. Additionally, the system includes a Raspberry Pi 4B for advanced processing and control, which is connected to a NoIR camera module and a cooling fan, and a power module to supply and monitor the power to the Pixhawk.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Quadcopter with MPU-6050 IMU and ESP32-CAM
Image of drone circuit: A project utilizing pixhawk in a practical application
This circuit appears to be a control system for a quadcopter drone, featuring four brushless motors each connected to its own electronic speed controller (ESC). The ESCs are interfaced with an ESP32 microcontroller for signal control, and the system includes an MPU-6050 for motion tracking, a PDB XT60 for power distribution, and a Lipo battery as the power source. Additionally, there is an ESP32-CAM module for capturing images, potentially for surveillance or monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered BLDC Motor Control System with KK2.1.5 Flight Controller
Image of broncsDrone: A project utilizing pixhawk in a practical application
This circuit is a quadcopter control system that includes a LiPo battery, four BLDC motors, four ESCs, a KK2.1.5 flight controller, and an FS-R6B receiver. The KK2.1.5 flight controller manages the ESCs and motors based on input signals from the receiver, which is powered by the LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Pixhawk Power Module with Rocker Switch Control
Image of power: A project utilizing pixhawk in a practical application
This circuit is designed to power a Pixhawk module using a LiPo battery. The circuit includes a rocker switch to control the power flow from the battery to a power distribution board (PDB), which then supplies 12V to the Pixhawk module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with pixhawk

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ROV: A project utilizing pixhawk in a practical application
Raspberry Pi-Controlled Drone with Brushless Motors and Camera Module
This circuit is designed for a multi-motor application, likely a drone or a similar vehicle, featuring eight brushless motors controlled by two 4-in-1 electronic speed controllers (ESCs). The ESCs are powered by a 3s2p 18650 battery pack and interfaced with a Pixhawk flight controller for motor management. Additionally, the system includes a Raspberry Pi 4B for advanced processing and control, which is connected to a NoIR camera module and a cooling fan, and a power module to supply and monitor the power to the Pixhawk.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of drone circuit: A project utilizing pixhawk in a practical application
ESP32-Controlled Quadcopter with MPU-6050 IMU and ESP32-CAM
This circuit appears to be a control system for a quadcopter drone, featuring four brushless motors each connected to its own electronic speed controller (ESC). The ESCs are interfaced with an ESP32 microcontroller for signal control, and the system includes an MPU-6050 for motion tracking, a PDB XT60 for power distribution, and a Lipo battery as the power source. Additionally, there is an ESP32-CAM module for capturing images, potentially for surveillance or monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of broncsDrone: A project utilizing pixhawk in a practical application
Battery-Powered BLDC Motor Control System with KK2.1.5 Flight Controller
This circuit is a quadcopter control system that includes a LiPo battery, four BLDC motors, four ESCs, a KK2.1.5 flight controller, and an FS-R6B receiver. The KK2.1.5 flight controller manages the ESCs and motors based on input signals from the receiver, which is powered by the LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of power: A project utilizing pixhawk in a practical application
Battery-Powered Pixhawk Power Module with Rocker Switch Control
This circuit is designed to power a Pixhawk module using a LiPo battery. The circuit includes a rocker switch to control the power flow from the battery to a power distribution board (PDB), which then supplies 12V to the Pixhawk module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Multirotor drones for aerial photography, mapping, and surveying
  • Fixed-wing aircraft for long-range missions
  • Rovers for ground-based exploration and automation
  • Autonomous boats and submarines
  • Research and development in robotics and UAV technologies

Technical Specifications

The Pixhawk 2.4.8 is equipped with powerful hardware and a wide range of interfaces to support various sensors and peripherals. Below are the key technical details:

Key Technical Details

  • Processor: 32-bit STM32F427 Cortex-M4 core with FPU
  • IMU Sensors:
    • MPU6000 (accelerometer and gyroscope)
    • LSM303D (magnetometer)
    • MS5611 (barometer)
  • Input Voltage: 4.8V to 5.4V
  • Power Consumption: ~280mA at 5V
  • Communication Interfaces:
    • UART, I2C, CAN, SPI, and USB
  • PWM Outputs: 8 main outputs, 6 auxiliary outputs
  • Storage: MicroSD card slot for data logging
  • Dimensions: 50mm x 81.5mm x 15.5mm
  • Weight: ~38g

Pin Configuration and Descriptions

The Pixhawk 2.4.8 features multiple connectors for peripherals and power. Below is a table summarizing the key pin configurations:

Power Input

Pin Name Description
Power (+) Main power input (4.8V to 5.4V)
Power (-) Ground connection

PWM Outputs

Pin Name Description
MAIN OUT 1-8 Main motor/servo outputs
AUX OUT 1-6 Auxiliary motor/servo outputs

Communication Interfaces

Pin Name Description
TELEM1 Telemetry port 1 (UART)
TELEM2 Telemetry port 2 (UART)
GPS GPS module connection (UART + I2C)
I2C I2C bus for external sensors
CAN CAN bus for advanced peripherals
USB USB port for configuration and data

Other Connectors

Pin Name Description
RC IN Input for RC receiver
SBUS SBUS input for RC systems
Buzzer Buzzer connection for alerts
Safety Switch Safety switch input
MicroSD Slot For data logging and firmware updates

Usage Instructions

How to Use the Pixhawk 2.4.8 in a Circuit

  1. Powering the Pixhawk: Connect a power module to the "Power" port to supply 4.8V to 5.4V. Ensure the power source is stable and capable of providing sufficient current.
  2. Connecting Peripherals:
    • Attach motors or servos to the MAIN OUT or AUX OUT pins.
    • Connect a GPS module to the GPS port for navigation.
    • Use the TELEM1 or TELEM2 ports to connect telemetry radios for communication with a ground control station.
    • Attach additional sensors (e.g., rangefinders, cameras) to the I2C or CAN ports as needed.
  3. Configuring the System:
    • Use a USB cable to connect the Pixhawk to a computer.
    • Install and launch a ground control software like Mission Planner or QGroundControl.
    • Follow the software's setup wizard to configure the vehicle type, calibrate sensors, and set up flight modes.
  4. Testing: Perform a pre-flight check to ensure all components are functioning correctly. Verify motor/servo outputs, sensor readings, and communication links.

Important Considerations and Best Practices

  • Power Redundancy: Use a backup power source (e.g., a secondary battery) to ensure continuous operation in case of a primary power failure.
  • Firmware Updates: Regularly update the firmware using Mission Planner or QGroundControl to access the latest features and bug fixes.
  • Vibration Isolation: Mount the Pixhawk on vibration-dampening material to reduce noise in sensor readings.
  • Safety: Always use the safety switch to arm/disarm the system and prevent accidental motor activation.

Example Code for Arduino UNO Integration

The Pixhawk can communicate with an Arduino UNO via the TELEM or I2C ports. Below is an example of how to read data from the Pixhawk using the MAVLink protocol:

#include <mavlink.h> // Include the MAVLink library

// Define the serial port for communication with Pixhawk
#define SERIAL_PORT Serial1

void setup() {
  Serial.begin(9600); // Initialize serial monitor
  SERIAL_PORT.begin(57600); // Initialize Pixhawk communication

  Serial.println("Starting communication with Pixhawk...");
}

void loop() {
  // Check if data is available from Pixhawk
  if (SERIAL_PORT.available()) {
    uint8_t byte = SERIAL_PORT.read(); // Read a byte from Pixhawk

    // Parse the MAVLink message
    mavlink_message_t msg;
    mavlink_status_t status;
    if (mavlink_parse_char(MAVLINK_COMM_0, byte, &msg, &status)) {
      // Print the message ID and payload length
      Serial.print("Received message ID: ");
      Serial.print(msg.msgid);
      Serial.print(", Payload length: ");
      Serial.println(msg.len);
    }
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Pixhawk Not Powering On

    • Cause: Insufficient or unstable power supply.
    • Solution: Verify the power module connection and ensure the input voltage is within the 4.8V to 5.4V range.
  2. No GPS Lock

    • Cause: Poor satellite visibility or incorrect GPS module connection.
    • Solution: Move the GPS module to an open area with a clear view of the sky. Check the GPS port wiring.
  3. Telemetry Not Working

    • Cause: Incorrect baud rate or wiring.
    • Solution: Ensure the telemetry radio is connected to the correct TELEM port and the baud rate matches the ground control station settings.
  4. Motors Not Responding

    • Cause: Incorrect motor wiring or calibration.
    • Solution: Verify motor connections to the MAIN OUT pins and recalibrate the ESCs using the ground control software.

FAQs

  • Q: Can the Pixhawk 2.4.8 be used with PX4 firmware?

    • A: Yes, the Pixhawk 2.4.8 is compatible with both ArduPilot and PX4 firmware.
  • Q: What is the maximum number of PWM outputs?

    • A: The Pixhawk 2.4.8 supports up to 14 PWM outputs (8 main and 6 auxiliary).
  • Q: How do I reset the Pixhawk to factory settings?

    • A: Use the ground control software to perform a parameter reset or reflash the firmware.
  • Q: Can I use the Pixhawk for indoor navigation?

    • A: Yes, but you will need additional sensors like optical flow or LiDAR for accurate indoor positioning.