Fuel sensor on analoge input

Jack10 months ago

Hello,

I was use the analoge input in other plate form and drop the value that came form the analoge input when the vehicle igniton off.
Now am trying to use it.
I try to use the attributes with fuel like the bellow but its doesnt work!!

(adc1 > 0) ?
    (adc1 <= 300) ? 3 :
    (adc1 <= 524) ? 3 :
    (adc1 <= 961) ? 10 :
    (adc1 <= 1398) ? 20 :
    (adc1 <= 2272) ? 40 :
    (adc1 <= 3102) ? 60 :
    (adc1 <= 3933) ? 80 :
    (adc1 <= 4807) ? 100 :
    (adc1 <= 5637) ? 120 :
    (adc1 <= 6439) ? 140 :
    (adc1 <= 7298) ? 160 :
    (adc1 <= 8170) ? 180 :
    (adc1 <= 8609) ? 190 :
    (adc1 <= 9046) ? 200 :
    200
:
null

to clear the values this is like table we recode the value when installing device

   2272 mV= 40L 
   3102mV=60L
   3933mV= 80L
   4807mV=100L

Any adivce to help

Thanks,

Anton Tananaev10 months ago

What do you mean by "doesn't work"? What result are you getting for what input?