Recently released INAV 1.7.2 introduced new hardware support: analog airspeed sensors. I’ve written new but it is new only to INAV. Analog airpseed sensors aka APM Pitot Tubes aka Ardupilot Airspeed Meter and one the market for years. And they are cheap. By cheap, I mean below $30. And until recently they were usable only in APM world.
Hardware we are interested in, are Pitot tubes based on MPXV7002 differential pressure sensor.
Those are 5V devices. All INAV flight controllers are 3.3V devices and that creates a small problem. 3.3V analog to digital converters can not be used to measure 5V signal.
To overcome this problem, 1:2 voltage divider will be required. You will need two resistors with the same resitance. Anything from 1kOhm to 1MOhm will do. It is really up to you. I used 100kOhm resistors and it worked fine.
INAV already expects 1:2 voltage divider being used, so you do not need to set anything else.
Before connecting airspeed sensor, you also have to find free ADC converter. Most boards have 3 analog-to-digital converters: Vbat, Current and RSSI.
- Vbat is not a good choice. Even if it is not used (rare case), it has its own voltage divider that would break measurements
- Current is our first candidate
- RSSI is the second one
Since most of my airplanes have current meters, I use RSSI channel. To prepare APM Sirspeed Sensor to use RSSI ADC channel, goto CLI and:
get adc_channeland note channel assigned to RSSI pin. In my case it was channel 3
set rssi_adc_channel=0– disable RSSI ADC
set airspeed_adc_channel=3– map ADC channel 3 to airspeed sensor
set pitot_hardware=ADC– enable analog pitot tube
Steps 4 and 5 can also be done via Configuration tab in Configurator, but other have to be performed in CLI.
In latest official release of INAV: 1.7.2 Pitot tube usefulness is somehow limited: airspeed can only be saved in Blackbox logs. Also, list of boards supporting to function is short: Airbot F4, AirHeroF3, KFC32F3, Omnibus F4 and OpenPilot Revolution.
But, next release (INAV 1.8 or 1.7.3) will:
- Enable analog airspeed sensor on more boards
- Display current airspeed in OSD (only boards with build in OSD)
- Perhaps even closed loop speed control will be added, but this is absolutely not confirmed yet