On 04/28/2016 09:47 AM, Linus Walleij wrote:
On Wed, Apr 27, 2016 at 3:08 PM, Gregor Boirie<gregor.boirie@xxxxxxxxxx> wrote:
Many thanks for taking time to test this. ~95 kPa seems rather a small value
to me.
For reference, it seems 950 hPa at sea level would be found under a...
hurricane !
(may vary with location)
Does it match with your local weather forecast / report ?
Hmmmm no :)
Checking with local weather site it should be ~1006 hPa.
Do you think the sensor is just badly calibrated?
Amongst significant error sources, we regularly struggle against:
* soldering (mechanical, overheat)
* pcb bending and vibrations
* bad device lots, bad storage (esd, wrong calibration, nearby mechanical vibration sources like ultra-sound...)
* electrical noise (power supply, ground...)
* light intensity if not protected by a cover
* temperature, air flow
* probably others we are not aware of yet
All comes with various effects in terms of constant offset, noise and drift. Some are destructive, some are not.
Welcome to world of MEMS :)
I tested now with another sensor on the Snowball board.
It gives (after scaling):
101.4
28.8
101.9
28.8
101.9
29.5
This sensor seems more accurate wrt pressure.
However here instead the temperature seems bananas,
this is a Swedish office, we don't have ~30degrees here...
And it's not the board is just turned on so I don't think it's
that warm.
For pressure, LPS001WP may sample with typical absolute error up to
+/-25 mBar and resolution of
one 16th mBar : not consistent with your first results of ~95 kPa, but
should comply with pressure
sampling gain modified in patch 4.
No typical accuracy is given for temperature, and resolution is one 64th
of degree Celsius. I suppose
temperature gain applied in patch 4 is also compliant with all your results.
As a reference for comparison, temperature accuracy for LPS22HB, which
is much more precise, is +/-1.5
degree Celsius...
So I simply suggest your erroneous results are not induced by wrong
software sampling gains, which was
my primary fear. No more no less. Maybe Denis may be of any help once he
has some time to review the
whole patch series.
One sensor gives believeable pressure, the other
gives believeable temperature...
The data sheet says this sensor is calibrated for two
pressure+temperature combinations at manufacturing.
I wonder if there are "secret registers" in the device that
can update the calibration...
As this device is deprecated I suppose we won't get much support from
ST... Maybe Denis may help if
this really worth the pain :)
Anyways, the measures are not totally off scale so
I guess they are in the right ballpark. And these patches
makes it work better for sure.
Yours,
Linus Walleij
I do greatly appreciate your feedback. Many thanks.
Regards,
greg
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html