> litres). So - 1mm of oil level in tank corresponds to 1 litre. > > What is the maximum precision you can squeeze out from ultrasonic ping > measurement? Should be well under 1mm?! Max resolution at 4MHz clock would be 1us, if all the rest of the circuit is up to the job. In 1us, sound travelling at 330m/s would travel 0.33mm. My display is at 1 litre resolution, but accuracy is probably much lower. Each time I take a number of readings and display the average. I haven't studied absolute accuracy etc. This was never meant to be a commercial design, it was really a very quick project to replace a broken mechanical gauge, and it worked 'good enough' straight off. At the moment, it just streams out TTL serial for display on an LCD inside. Nigel begin 666 winmail.dat M>)\^(AT-`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <` M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$& M@ ,`#@```-0'"P`=``T`* ````$`.0$!`Y &`$ (```K````"P`"``$````+ M`",```````,`)@``````"P`I```````+`"L```````,`+@```````P`V```` M```>`' ``0```!T```!;145=(&AO=R!T;R!M96%S=7)E(&]I;"!F;&]W```` M``(!<0`!````%@````'$UACY*/\>51KNDT``@0`0`` M`&4```!,251215,I4T\M,4U-3T9/24Q,159%3$E.5$%.2T-/4E)%4U!/3D13 M5$\Q3$E44D572$%425-42$5-05A)355-4%)%0TE324].64]50T%.4U%5145: M14]55$923TU53%1205-/``````(!"1 !````' ,``!@#```Q! ``3%I&=:/F M;\,#``H`(R`T-T97@%00$#`??_"H "I /D!Q,"@ _S`% $5C\( M50>R$24.40,!`@!C:.$*P'-E=#(&``;#$27V,P1&$[V.Q@? M#C U$2(,8&,`4+,+"0%D,S864 NG8P$P0" ^(&QI=!@@8 ,1;%AE=F4#( N ( &0;JQK( 6A'8%P`B!D!"#J=!WP,1U$+@JB M"H =,#TA-E<3X 5 ! `?8&AEJB `P'@'<'4>4' 8(,IC! !I`B @>0A@'[#) M`Y%S<0I097HBT A@(P5 `U(@=6P=<&%S[P(@#> C8 N 9R$V!X EX*T(<&4' M@ (P/P8`: A@T&QD(&(BT'A^P%[!C'Z#"=R@&,75S+!\P'H#_!T #("*R'8$%0!YQ(K(C MH)AR8W4=8")R=7 @0"_A3?AY(&0$``M1,[ B@2)1]R"U*GDLT&(E M(0#0+I ET-YC-#,C<"_ `:!L,[ C,*L3T!U ;RB P*N '@# ` M'V%K(M!A?"!N(T H4 7 'G$8(&'_,] F<#1A,,$SUB*R,1$ET#YG(18A-#CP M$^ ?`&XGNP5 +\07 M)Q$","!R_RA1.6 %H!Y !) CH = ,\#Y!Y!I9S7!+K$_XCHA**#_,[ Y8#O! M,[ DH W@'Z V\5YJ!9! PQ@@"U%C.4)B?P-@.3 #H > $]$F$4'A9_QA=3P` M+- ZLD*2!; Y,+$H,"=G;P1P/R!N"&"X9V@G/8$ET$) :"W2^F8OX4% P2+" M`W GD4)S;FHLL#UR.B%M!" E$E3\5$PD@ 9Q0>$"$ 7 ,];C*P(#H$Q#1!\Q M`) !`%T\*TY"0!\0(31]4 `#`! 0`0````,`$1 `````'@!"$ $````\```` M/#4R-3A&-S4S,#DP,$0V-#E!14)$,#8X,#@U0C T-S5",$)%0S(Y0&1E;'1A M+FEN="YH86YS82YE93X`"P``@ @@!@``````P ```````$8``````X4````` M```#``* "" &``````# ````````1@`````0A0````````,`"( (( 8````` M`, ```````!&`````%*%``#P$P``'@`)@ @@!@``````P ```````$8````` M5(4```$````$````."XU``L`"H (( 8``````, ```````!&``````:%```` M`````P`+@ @@!@``````P ```````$8``````84````````+`!2 "" &```` M``# ````````1@`````.A0````````,`%8 (( 8``````, ```````!&```` M`!&%`````````P`7@ @@!@``````P ```````$8`````&(4````````>`": M"" &``````# ````````1@`````VA0```0````$`````````'@`G@ @@!@`` M````P ```````$8`````-X4```$````!`````````!X`*( (( 8``````, ` M``````!&`````#B%```!`````0`````````+`#. "R &``````# ```````` M1@``````B ````````L`-8 +( 8``````, ```````!&``````6(```````` M`P`J@4 )LV"YP