Vous êtes sur la page 1sur 14

Additional Data Points needed for

map. Extra points created at every


1/4 liter, and the arduino analog
input value interpolated from the
captured data

Actual measured values. Start with


an empty tank, and add half liters of
fuel at a time, noting the arduino
analog value
Cuml. Fuel (l)

Value

Comment

0
8.3

826
821

No fuel in tank
Empty reserve (first valid reading)

9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
23
23.5
24
24.5
25
25.5
26
26.5
27
27.5
28
28.5
29
29.5
30
30.5

815
810
806
804
801
798
795
791
788
784
781
776
770
764
755
752
750
748
737
735
729
726
722
717
709
697
692
687
682
659
655
650
639
638
627
620
603
589
586
572
557
538
519
499

Starting to move

Started tapping tank

Sender becoming quite sticky

Calculated Fuel

8.25
8.5
8.75
9
9.25
9.5
9.75
10
10.25
10.5
10.75
11
11.25
11.5
11.75
12
12.25
12.5
12.75
13
13.25
13.5
13.75
14
14.25
14.5
14.75
15
15.25
15.5
15.75
16
16.25
16.5
16.75
17
17.25
17.5
17.75
18
18.25
18.5
18.75
19
19.25

31
31.5
32
32.5
33
33.5
34
34.5
35
35.5
36
36.5
37
37.5
38
38.5
39
39.5
42.8

495
472
451
408
408
405
348
342
281
272
260
203
167
172
160
161
155
149
157

Last valid reading


Full reserve

19.5
19.75
20
20.25
20.5
20.75
21
21.25
21.5
21.75
22
22.25
22.5
22.75
23
23.25
23.5
23.75
24
24.25
24.5
24.75
25
25.25
25.5
25.75
26
26.25
26.5
26.75
27
27.25
27.5
27.75
28
28.25
28.5
28.75
29
29.25
29.5
29.75
30
30.25
30.5
30.75
31
31.25
31.5
31.75
32
32.25
32.5
32.75
33
33.25

33.5
33.75
34
34.25
34.5
34.75
35
35.25
35.5
35.75
36
36.25
36.5
36.75
37
37.25
37.5
37.75
38
38.25
38.5
38.75
39
39.25
39.5

Additional Data Points needed for


map. Extra points created at every
1/4 liter, and the arduino analog
input value interpolated from the
captured data

Data cherry picked from actual


readings for spline calculation First, Last and readings in between

Fuel level readings and calculated arduino analog


readings for that level.
Spline est. data is the map, and should be copied
to the arduino code

Interpolated
Reading

Spline - Acc
Fuel

Spline Acc Data Spline est. Fuel Spline Est. Data

821

8.3

821

8.300

819
817
815
813
810
808
806
805
804
803
801
800
798
797
795
793
791
790
788
786
784
783
781
779
776
773
770
767
764
760
755
754
752
751
750
749
748
743
737
736
735
732
729
728

9
14.5
21
28.5
33
35.5
38
39.5

815
776
709
572
408
272
160
149

8.585
8.850
9.220
9.530
9.840
10.150
10.460
10.770
11.080
11.390
11.700
12.010
12.320
12.630
12.940
13.250
13.560
13.870
14.180
14.490
14.800
15.110
15.420
15.730
16.040
16.350
16.660
16.970
17.280
17.590
17.900
18.210
18.520
18.830
19.140
19.450
19.760
20.070
20.380
20.690
21.000
21.310
21.620
21.930

821
819
816
813
811
808
806
804
802
800
797
795
793
791
789
787
785
783
781
778
776
774
771
769
766
763
760
757
754
751
748
745
742
738
735
731
728
724
721
717
713
709
705
701
697

726
724
722
720
717
713
709
703
697
695
692
690
687
685
682
671
659
657
655
653
650
645
639
639
638
633
627
624
620
612
603
596
589
588
586
579
572
565
557
548
538
529
519
509
499
497
495
484
472
462
451
430
408
408
408
407

22.240
22.550
22.860
23.170
23.480
23.790
24.100
24.410
24.720
25.030
25.340
25.650
25.960
26.270
26.580
26.890
27.200
27.510
27.820
28.130
28.440
28.750
29.060
29.370
29.680
29.990
30.300
30.610
30.920
31.230
31.540
31.850
32.160
32.470
32.780
33.090
33.400
33.710
34.020
34.330
34.640
34.950
35.260
35.570
35.880
36.190
36.500
36.810
37.120
37.430
37.740
38.050
38.360
38.670
38.980
39.290

693
688
684
679
675
670
665
660
654
649
643
637
631
625
618
611
604
597
590
582
574
565
557
547
538
528
518
507
496
485
473
460
447
433
419
404
388
372
355
338
321
303
286
268
251
233
217
202
188
176
166
159
154
151
150
149

405
377
348
345
342
312
281
277
272
266
260
232
203
185
167
170
172
166
160
161
161
158
155
152
149

adings and calculated arduino analog


readings for that level.
ta is the map, and should be copied
to the arduino code

900

Tank % Full

800
700

Arduino reading

600
500
400
300
200
100
0
0

900

800

700

lated Aduino Reading

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

600

500

10

Calculated Aduino Reading

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

500

400

300

200

100

0
0.000

5.000

10.000

15.000

Fuel Gauge Calibration

15

20

25
Fuel (liters)

Fuel Gauge - Spline Curve

30

35

15.000

20.000
25.000
Calculated Fuel Level (Liters)

30.000

35.000

40

45

40.000

45.000

Vous aimerez peut-être aussi