Analog FuelSensor without the designated ADC Pin

I am currently building a fuel powered small model plane. My fuel tank has a built in analog fuel level sensor that I want to use.

From source documentation on ardupilot (Fuel Flow and Level Sensors — Copter documentation) they say I need to connect the output to the ADC Pin (RAW_PRESS_SENS_IN) however my carrier board (Airbot Systems Mini Carrier Board) for my Flight Controller (Cube Orange Plus ) does not break out this pin?

Is it possible to use one of the analog pins from the battery monitors to do this?BATT_VOLTAGE_SENS or AUX_BATT_VOLTAGE_SENS

Or is the only way to integrate this is with a different carrier board?

From the docs you linked to:
Any analog-capable pin can be used as the input from the sensor.
And the BATT parameters are given that need to be configured.
Max input voltage is 3.3VDC

1 Like

So to use the BATT_VOLTAGE_SENS PIN on the carrier board

I would just setup the BATT_FL_PIN as 2: Pixhawk/Pixracer/Navio2/Pixhawk2_PM1 and not 12: CubeOrange?

The voltage pin on the Power1 connector on CubeOrange is 14

Thank you @dkemxr , i am able to get the raw voltage now I’m generating through DC power supply mimicking a ‘analog voltage’.

However with my current setup i can’t seem to get the ‘fuel level’ shown as a percentage.

At full a tank (15L) i am expecting 3.3v and at empty i am expecting 0-0,05V, however when i change these with my psu my HUD values for batt2 don’t change

These are all my batt2 related parameters:

BATT2_ARM_MAH,3000
BATT2_ARM_VOLT,0
BATT2_CAPACITY,15000
BATT2_CRT_MAH,3750
BATT2_CRT_VOLT,0
BATT2_FL_FF,1
BATT2_FL_FLTR,-1
BATT2_FL_FS,0
BATT2_FL_FT,0
BATT2_FL_OFF,0
BATT2_FL_PIN,14
BATT2_FL_V_MULT,0.3125
BATT2_FL_VLT_MIN,0.05
BATT2_FS_CRT_ACT,1
BATT2_FS_LOW_ACT,1
BATT2_FS_VOLTSRC,0
BATT2_LOW_MAH,7500
BATT2_LOW_TIMER,10
BATT2_LOW_VOLT,0
BATT2_MONITOR,24
BATT2_OPTIONS,0
BATT2_SERIAL_NUM,-1
BATT2_WATT_MAX,0

Where would i expect to see the ‘fuel level’ in mission planner, under current2?

That’s on the Wiki page in the link I posted.

And anytime you make changes to the battery monitors parameters you need to power cycle the Flight Controller.

hi dave, sorry i can’t seem to see the link?

Would you mine resharing it

Sorry, that was your link.
Check the status screen.

1 Like