ADC and Serial Library¶
The ADC and Serial library provides support for the Pixhawk flight controller hardware’s ADC (Analog-to-Digital Converter) and serial communication interfaces, enabling connection to external sensors and devices.
Module List¶
| Module | Function Description |
|---|---|
| Read ADC Channels | Reads analog voltage values from the flight controller’s ADC channels, supporting external sensor integration |
| Serial | Serial communication module, supporting UART serial data transmission and reception for connecting external devices |
Usage Scenarios¶
External Sensor Integration¶
- Voltage Monitoring: Use ADC Read to monitor battery voltage or external sensor voltage
- Analog Signal Acquisition: Capture output signals from analog sensors such as temperature and pressure sensors
Peripheral Communication¶
- GPS Module: Connect an external GPS module via serial port
- Telemetry Radio: Connect wireless telemetry modules for long-range communication
- Specialized Sensors: Connect serial-based sensors such as LiDAR and ultrasonic sensors
Usage Precautions¶
- ADC Input Range: Pixhawk ADC input voltage is typically limited to 0–3.3 V or 0–6.6 V; exceeding this range may damage the hardware.
- Level Matching: Ensure consistent logic level standards (TTL/RS232/RS485) between devices during serial communication.
- Baud Rate Configuration: Confirm that both sides agree on baud rate, data bits, stop bits, and other serial parameters before communication.
- Port Availability: Some serial ports may be reserved by the flight controller firmware; verify port availability before use.
Related Resources¶
Note: This document serves as the index for the ADC and Serial library. For detailed usage instructions for each module, please refer to its respective standalone documentation page.