Fuel Level Sensor Integration

#1

Hi all,

I have a fuel sensor (documentation below) that has a PWM output between 1100 us (when the tank is empty) to 1900 us (when the tank is full). We are creating a UAV prototype using a PixHawk as our flight controller, but I am unsure how to integrate this fuel sensor and send the data to the GCS. Any insight would be appreciated. Ideally, we do not wish to alter the code extensively, but are open to any options (I2C etc). We would be using 2 of these fuel sensors as we have 2 separate hybrids we are using for our drone.

Is there anyone in the community that has experience with using fuel level sensors (or simply having the pixhawk read a PWM and send the data to the GCS) that can be of assistance?

http://www.richenpower.com/uploads/file/Liquid%20Level%20Sensor%20Manual%20en.pdf

#2

Interesting sensor idea. I was thinking of using an analog sensor for my application but digital is the way to go.

I think your best bet is to create your own custom app and a new custom uorb topic. Then the app would read the pwm using a pwm read command and publish this pwm to the topic. After that your other apps can use this number and you can read it through mavlink in qgc. Hope this helps! Really interested to see if this works for you, keep me updated!

#3

Hi…the briggs guys here will not let you put anything in the gas tank, modify it in any way, have an external sensor that adds appreciable volume to the system, or have anything that even looks like it might leak under any condition… All of that greatly limits your options.

Honestly, just knowing how long you want to run before pits is totally fine. We no longer run a fuel gauge and have never run out of fuel on the track. If you are real fancy, you can keep track of engine rpm in addition to run time with some simple experimental relationship to estimate fuel consumption.

pcb assembly services iso9001:2015

#4

Alternatively use a camera focused on the fuel tank as shown
below