B
bitrex
Guest
On 12/8/2020 9:42 PM, bitrex wrote:
Rick C\'s Tesla autodrive-thing probably uses techniques like this, no
one sensor has the accuracy to judge another vehicle or object\'s
position to within a foot at 1000 feet away by itself but at 75 mph
having accuracy at range is important
On 12/8/2020 6:59 PM, Lasse Langwadt Christensen wrote:
onsdag den 9. december 2020 kl. 00.34.44 UTC+1 skrev bitrex:
On 12/8/2020 3:03 PM, Rick C wrote:
On Tuesday, December 8, 2020 at 1:01:14 PM UTC-5, bitrex wrote:
On 12/7/2020 6:03 PM, Rick C wrote:
This design group I am in is being led by a mechanical engineer
who has his limitation. Initially I thought it was just that he
didn\'t know much about electronics. Then I found his thinking for
mechanical issues to be a bit lacking in sophistication. Now I
realize he doesn\'t understand fundamental principles of analysis.
I was not involved in the project from the start. They had built a
revision 1 of the board which was essentially an arduino with a
motor controller chip and some comparators. I realized they were
not very skilled at electronics design and figured I could help.
What I didn\'t realize was the extent of ignorance in project
development and management. The entire project has moved along in
fits and spurts and many, many backflips because of a lack of
initial analysis and specification of requirements.
All through this project they have been planning to measure flow
rate by means of detecting the differential pressure across an
orifice. They had a guy who seemed to have that as his sole task
so I expected it was covered. There were concerns about the
resolution at the low end so a separate circuit was added to
provide more gain for the low end giving more resolution. Again, I
expected they had it under control.
I am designing much of the FPGA that reads the differential sensor
and other inputs to calculate the flow rate. The ADC will be a
delta-sigma built in the FPGA with over 17 bits of resolution. I\'m
thinking that is enough, but to be sure I ask for a number for the
resolution in flow rate required...
What is the cause of the fucking feature-creep/spec changes in this
project? It went from an Arduino and comparators to 100 MHz FPGAs
and 14
bit DACs. There are commercial ventilators saving lives every day with
less processing power than a 16 bit MSP430. In what universe does a
ventilator ADC need 14 bits of accuracy?
Actually, there is a commercial ventilator design made public as it
is no longer produced. It has a high pin out MCU that is at least a
high end MSP430 equivalent if not a lot more. It\'s one of the Asian
company proprietary CPUs so I didn\'t look up the details. They had
some very fancy dancy circuitry such as two back up batteries and a
backup battery for the alarm or something like that. There were two
speakers for the alarm and a current monitor to assure the speakers
were passing the right current... ad infinitum almost. So don\'t tell
me we are over designing...
You clearly are not familiar with the equations for obtaining flow
rate from a differential pressure across an orifice. It uses a
square root which gives a much steeper slope on the lower end than
the upper making it very sensitive to measurement errors at the low
end of the range. The problem is not that we don\'t need 14 bits of
resolution, but that we also need that much accuracy and we won\'t
even be able to approach that level of accuracy from the pressure
sensor. The project lead is now trying to make an argument that my
analysis of the error assumed the worst case, a constant flow rate
over the longest inspiration time while the typical flow rate is
well above that level and only low for a short interval. Since the
requirement is on tidal volume and not flow rate he is saying our
accuracy is much higher. Unfortunately the spec calls out the
accuracy for any volume over 50 ml. So even if a flow pattern of
other than even for the entire 3 seconds is assumed, there is no way
to even approach the requirement because of the huge relative error
in the sensor, ±2.5% of full scale which becomes ±25% of the
measured value at a value of 10%FS. I just did some calcs that show
the sensor error with an error fixed to the Full Scale value
(increasing relative error as the value measured decreases), crosses
the line of the allowed error in the volume measurement at a bit
under 500 ml/s flow rate. This does assume a constant flow rate over
a 3 second period and a sloping flow rate does improve the accuracy,
but the slope can not be assured to be any particular pattern. There
is no spec on the flow rate shape.
In fixed-point at least sqrt(ab) = sqrt(a)sqrt(b) so you could isolate
the cases where your square root result exceeds the error budget, shift
up n bits, take the square root, divide by two and shift back down.
I\'d assume it is not taking the square root that is the issue but the
non linear sensor response
In that case I think the traditional method of improving accuracy is to
use multiple sensors (ideally not the same kind of sensor) and something
like Kalman filtering/predictor-corrector methods to estimate the true
value from a set of measurements that are corrupted by noise and/or
non-linearity, if the non-linearity can at least be profiled and
linearized over some domain of interest, that is to say it\'s not _too_
nonlinear.
Rick C\'s Tesla autodrive-thing probably uses techniques like this, no
one sensor has the accuracy to judge another vehicle or object\'s
position to within a foot at 1000 feet away by itself but at 75 mph
having accuracy at range is important