Sensors
The Vayu flight control system employs a multi-sensor architecture to obtain the measurements required for state estimation and control. The design combines high-frequency inertial sensing with lower-frequency environmental and positional measurements, enabling both rapid response and long-term stability in estimation.
Inertial Measurement Unit (IMU)
The primary sensing element in the system is the BMX160, which integrates a 3-axis accelerometer, 3-axis gyroscope, and an onboard magnetometer. The IMU provides high-frequency motion data required for real-time attitude estimation and stabilization.
The accelerometer supports configurable measurement ranges (e.g., to ), while the gyroscope provides angular rate measurements typically in the range of to . These configurable ranges allow the sensor to be tuned based on the expected motion dynamics of the system.
The sensor is interfaced with the microcontroller over I2C or SPI, with SPI preferred for higher throughput and lower latency. In the current implementation, the IMU is sampled at rates exceeding , enabling accurate capture of fast rotational dynamics and minimizing delay in the control loop.
The BMX160 also includes an internal digital filtering stage and FIFO buffering, which can be used to reduce noise and manage high-rate data streams efficiently. These features help maintain consistent sampling and reduce processor overhead.
In operation, gyroscope measurements provide short-term angular rate information with high temporal resolution, while accelerometer measurements serve as a gravity reference for long-term correction. The magnetometer provides heading information, although its accuracy can be affected by local magnetic disturbances.
In the current implementation, an Adafruit BMX160-based 9-axis IMU module is used, interfaced over I2C. The inertial sensors operate at an output data rate (ODR) of approximately , while the magnetometer operates at a lower rate of approximately . This configuration enables high-frequency attitude estimation while maintaining lower-rate heading updates.
Future iterations of the system will transition to higher-performance IMUs, including devices from the STMicroelectronics ISM family and newer Bosch sensor families. These upgrades will utilize SPI interfaces for improved bandwidth and reduced latency, along with the use of a dedicated external magnetometer to improve heading accuracy and reduce susceptibility to onboard magnetic interference.
These complementary sensing modalities form the basis for the sensor fusion algorithms used in the system, enabling robust and drift-compensated attitude estimation.
Barometric Sensor
A barometric pressure sensor is used to estimate altitude by measuring atmospheric pressure and converting it into height information. Compared to inertial measurements, barometric data is available at lower update rates but provides a relatively stable estimate of vertical position.
In the current implementation, a BMP180 sensor is used, interfaced over I2C. The sensor provides pressure measurements at moderate rates, which are sufficient for altitude estimation and slow vertical dynamics.
While not directly used in high-frequency control loops, barometric measurements contribute to higher-level state estimation and are particularly useful for altitude stabilization and navigation.
Future iterations of the system will transition to more advanced sensors such as the BMP384. These newer sensors offer improved resolution, lower noise, and higher sampling rates, enabling more accurate and responsive altitude estimation.
The integration of barometric data with inertial measurements allows the system to compensate for drift in vertical estimation while maintaining smooth and stable altitude control.
Global Positioning System (GPS)
The system includes support for a GPS module to provide global position and velocity information. In the current implementation, a u-blox M9N module is used, interfaced with the microcontroller over UART.
A dedicated UART port is exposed on the hardware platform to facilitate direct connection of the GPS module. This design allows flexibility in module selection and simplifies integration without requiring modifications to the core system.
The M9N provides multi-constellation GNSS support (e.g., GPS, GLONASS, Galileo), improving positioning accuracy and reliability in diverse operating environments. Typical update rates range from 5–10 Hz, with support for higher rates depending on configuration.
GPS measurements are inherently lower in frequency and are subject to noise and latency; however, they provide absolute position and velocity references that are essential for navigation and position control in outdoor environments.
While GPS data is not suitable for high-frequency control loops, it plays a critical role in higher-level state estimation by correcting long-term drift in position estimates derived from inertial sensors.
The integration of GPS with inertial measurements enables the system to achieve both short-term responsiveness and long-term accuracy, forming the basis for robust navigation capabilities.
Sensor Integration and Design Considerations
The sensor subsystem operates across multiple frequency domains. High-rate IMU data drives real-time control and short-term state estimation, while lower-rate sensors such as barometers and GPS provide long-term correction and global reference.
Ensuring consistent sampling, low-latency data acquisition, and signal integrity is critical for reliable system performance. In particular, the quality of IMU measurements is strongly influenced by power stability and electrical noise, necessitating careful hardware design and filtering.
The architecture is designed to support future enhancements in sensing capabilities. Planned iterations include the use of dual 6-axis IMUs to provide redundancy and improve robustness against sensor failure. Additionally, a dedicated external magnetometer is considered to improve heading estimation by reducing interference from onboard electronics.
For low-altitude operation, additional sensors such as Time-of-Flight (ToF) range sensors are planned to provide accurate height estimation in the near-ground region, where barometric measurements are less reliable. This is particularly useful for achieving smooth landing and takeoff behavior.
Optical flow sensors may also be integrated to estimate planar velocity, enabling improved position stability in GPS-denied or low-altitude environments where GPS performance is degraded.
These extensions are aligned with the modular design philosophy of the Vayu system, allowing new sensing modalities to be incorporated without requiring fundamental changes to the overall architecture.