Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #569223

Re: AGP30, absolute humidity conversion

From Martin Brown <'''newspam'''@nezumi.demon.co.uk>
Newsgroups sci.electronics.design
Subject Re: AGP30, absolute humidity conversion
Date 2019-12-12 20:30 +0000
Organization Aioe.org NNTP Server
Message-ID <qsu810$o6h$1@gioia.aioe.org> (permalink)
References <qqk21701sc6@drn.newsguy.com> <qqkchr02c0a@drn.newsguy.com> <qst9rb$fs9$2@dont-email.me> <qstf07012rc@drn.newsguy.com>

Show all headers | View raw


On 12/12/2019 13:23, Winfield Hill wrote:
> Przemek Klosowski wrote...
>>
>> On Fri, 15 Nov 2019 14:37:14 -0800, Winfield Hill wrote:
>>
>>> It's a painful to do the absolute humidity conversion
>>> formula in an ARM M0 processor, without floating point.
>>
>> Just table-lookup it to death? You should have a lot
>> of flash for detailed data, no?
> 
>   Alan Stern, the Institute mathematician, who did all
>   the programming for the beehive monitor, including
>   the 14-sensor TH-stick, which includes the AGP30,
>   tells me the floating-point libraries work just fine,
>   but it's just slower.  We do have the time, but maybe
>   with all the huge masses of code he's written, he's
>   running out of motivation to add more complication.

How large a dynamic range do you have to do the humidity correction 
over? It may well be possible to devise a scaled integer implementation 
for the correction provided that you only want say 0.1% accuracy.

Rational polynomials will get you quite good approximations to arbitrary 
functions which in the case of humidity corrections I suspect is fairly 
close to exp(x) or log(1+x) depending on how you have cast the problem.

-- 
Regards,
Martin Brown

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

AGP30, issues with CO2 VOC sensor Winfield Hill <winfieldhill@yahoo.com> - 2019-11-14 09:14 -0800
  Re: AGP30, issues with CO2 VOC sensor Winfield Hill <winfieldhill@yahoo.com> - 2019-11-14 12:13 -0800
    Re: AGP30, issues with CO2 VOC sensor Klaus Kragelund <klauskvik@hotmail.com> - 2019-11-14 13:30 -0800
      AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-11-15 14:37 -0800
        Re: AGP30, absolute humidity conversion klaus.kragelund@gmail.com - 2019-11-18 05:00 -0800
        Re: AGP30, absolute humidity conversion Przemek Klosowski <przemek@tux.dot.org> - 2019-12-12 11:55 +0000
          Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 05:23 -0800
            Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 14:27 +0000
              Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 06:56 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 15:52 +0000
                Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 08:55 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 17:12 +0000
                Re: AGP30, absolute humidity conversion Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-12-12 10:05 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 18:26 +0000
                Re: AGP30, absolute humidity conversion Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-12-12 10:48 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 23:55 +0000
                Re: AGP30, absolute humidity conversion Jasen Betts <jasen@xnet.co.nz> - 2019-12-13 03:12 +0000
                Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 10:22 -0800
                Re: AGP30, absolute humidity conversion Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-12-12 09:59 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 18:24 +0000
                Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 11:13 -0800
                Re: AGP30, absolute humidity conversion Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-12-12 21:49 +0200
                SGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 12:24 -0800
                Re: AGP30, absolute humidity conversion DecadentLinuxUserNumeroUno@decadence.org - 2019-12-12 23:57 +0000
                Re: AGP30, absolute humidity conversion Klaus Kragelund <klauskvik@hotmail.com> - 2019-12-12 16:49 -0800
                Re: AGP30, absolute humidity conversion Winfield Hill <winfieldhill@yahoo.com> - 2019-12-12 18:10 -0800
            Re: AGP30, absolute humidity conversion Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-12-12 20:30 +0000
              Re: AGP30, absolute humidity conversion upsidedown@downunder.com - 2019-12-13 09:18 +0200

csiph-web