Precision Fuel Gauge

A transparent sight tube was fitted as standard to indicate the fuel level. However, the reading fluctuates significantly when position changes. In particular, when the fuel level is low, no fuel level is visible even though there are still around 13 litres in the tank. 13 litres is more than the prescribed 30-minute reserve. Especially when the destination is not far away and fuel is running low, an accurate fuel gauge is essential for a relaxed flight.
For aesthetic reasons, a round gauge with a wide scale was chosen. As mentioned above, the fuel level is particularly important when the tank is nearly empty. The tank is not a simple cylindrical shape, and the selected fuel level sensor (swing-arm resistive sensor) therefore does not provide accurate readings. An actual volume value must therefore be assigned to the swing-arm float depending on its position.
For safety reasons, the available fuel quantity must be double-checked before every flight. Where available, this should be done using a fuel gauge and cross-checked by visual inspection or with a dipstick. A fuel gauge is not necessary if the pilot can check the fuel level during the flight. If the sight tube is retained and a fuel gauge is retrofitted, the fuel level can be checked from the cockpit before take-off. The sight tube and fuel gauge therefore complement each other, particularly when the level fluctuates or is very low.
Challenges
1. Level fluctuations caused by changes in attitude during flight should have little effect on the display.
- Solution: Bend the float arm and position it in the tank so that the float moves as far as possible along its circular arc path within the centreline of the tank.
2. An actual volume is to be assigned to the level reading, even though the float arm traces a circular arc and the tank is non-spherical due to its design.
- Solution: An Arduino Uno is used as a microcomputer which, via its inputs and outputs, receives the voltage from the float arm, processes the data and controls the display unit. The tank is filled in litres (with defined partial quantities) and, in the process, the voltage generated by the float arm is mapped to the actual contents in a table within the Arduino sketch. The table contains 11 entries for litres and the corresponding rawValues. (See also 4. on data determination.) The programme (sketch) uses these to calculate the actual volume (see 3. Voltage problems). Interpolation is carried out between the table values.
3. On-board voltage issues: Fluctuations in the on-board current would distort the voltage across the float arm, which in turn would distort the input and output signals, rendering them unusable. The Arduino requires a 5-volt supply voltage, and the input voltage must not exceed 5 volts. The round instrument used, with integrated electronics, calibrates itself to the current voltage every time it is switched on; it requires a voltage range of 8 to 30 volts. When the ignition is switched on and during operation (alternator/battery), the round instrument would calibrate itself uncontrollably.
- Solution: Regulated voltages are provided for both the Arduino (5 volts) and the round instrument (9 volts) via a voltage converter. A series resistor connected to the float arm reduces the float arm voltage to ensure it remains within the Arduino’s permissible input range.
4. When the ignition is switched on, the on-board electronics act as a voltage divider. The input values differ significantly depending on whether the ignition is switched on or off.
- Solution: The tank must only be calibrated whilst the ignition is switched on. The volume in litres and the corresponding input values (raw values) are recorded in the programme table. The input values are monitored via the serial monitor in the Arduino software (laptop or smartphone running the Arduino software during calibration).
5. The built-in electronics of the round gauge interpret the voltages (PWM) coming from the Arduino themselves and display a corresponding gauge reading; however, this does not correspond to the calculated or actual fuel level.
- Solution: A correction factor is applied to each table entry/position to adjust the reading on the dial gauge.

Fuel tank:
The picture shows the shaped metal tank. The level of the fuel is not linearly proportional to the quantity; in particular, in the lower section, the conical shape causes an imbalance between the fuel level and the quantity. Not shown is the fuel level tube, which is mounted vertically well in front of the tank so that it can be seen from the cockpit. Consequently, the level in the tube fluctuates extremely when the aircraft pitches.
Fuel tank level sensor:
A simple swivel-arm float from the automotive accessories sector is used. A wire potentiometer, modified to fit over the swivel arm, acts as the sensor (approx. 40–180 ohms). The mounting bracket on the swivel-arm float was modified and fitted to the existing inner flange of the fuel tank opening, so that no drilling was required on the fuel tank itself. The position and angle of the float rod were adjusted so that the lower fuel level is detected as far as possible.
Microcomputer:
An Arduino Uno, which has been programmed accordingly, was used. Other microcontrollers with inputs and outputs would also be suitable. Based on the programmed positions (P1 to P11 are possible), this evaluates the input voltage generated by the float switch and transmits it to the dial gauge. The Arduino is protected by a standard enclosure, and the wiring is secured with adhesive tape to prevent it from being pulled out.
Circular instrument:
The scale range should be as wide as possible to ensure reliable readings, particularly at low liquid levels. A standard 57 mm round gauge with a wide scale range was therefore used. The built-in electronics can process the Arduino’s PWM output signals. A digital-to-analogue converter was not fitted. To indicate the fill level that can no longer be reliably used in practice (presumably because a DAC would have been required for this), the indicator needle pulses. It would be possible to illuminate the scale, but this feature is not utilised.

Programming the Arduino (Sketch). There are 11 positions, each with a litre value and the corresponding Arduino input value. Interpolation takes place between the positions. Depending on the shape of the tank, the positions (litres) can be chosen as required. Detailed comments are provided and the simplest programming techniques have been used. As a development project, the emphasis was on functionality. Programmers can simplify the sketch. For example, they can use arrays and make the programme more streamlined, elegant and written in English.
The Arduino IDE on a smartphone has proved useful for determining the input values (rawValue). This allows the corresponding rawValue to be read out via the Serial Monitor whilst calibrating the tank on site. However, this is only possible with the ignition switched on, and the correction factor for the output to the round instrument must be determined empirically. You can then enter the determined values directly into the sketch and send them straight back to the Arduino for each position.
The actual programme was previously written on a PC. A 12-volt battery was used under laboratory conditions. First, with the ignition switched off, the float’s resistances were assigned to the litre values, and the calibration of the round gauge was also carried out in the laboratory. However, it transpired that the fluctuating voltages of a running engine nullify the laboratory calibration. It was also found that, when the ignition is switched on, the on-board electronics act as a voltage divider. This also renders the laboratory calibration unusable (even now, with stabilised input voltages for the Arduino and the circular instrument). Fine-tuning must therefore be carried out under real-world conditions with the ignition switched on.
electrical connection
The device is connected to the on-board electrical system (fused instrument circuit). 78-series voltage regulators were used for the Arduino (5 volts) and the round instrument (9 volts). A 440-ohm resistor was connected across the float arm to reduce the input voltage to the Arduino to below 5 volts. The voltage regulator and resistor were incorporated into the wiring and secured with heat-shrink tubing. The power consumption is low, so no significant heat build-up is to be expected.
Brake Magura ⇐ | ⇒ Placeholder
