I looked at the HobbyBoards site and I think the humidity sensor is HIH-4000
I presume you are reading the HIH4000/humidity property.
My thought is to figure out which value is causing the sprious readings. The
VDD VAD and Temperature.
Possibly putting in a line line:
printf( "%g,%g,%g,%g\n", VAD, VDD, T, OWQ_F(owq) ) ;
before the return statement
// temperature compensation
temperature_compensation = 1.0546 - 0.00216 * T ;
OWQ_F(owq) = humidity_uncompensated / temperature_compensation ;
+ printf( "%g,%g,%g,%g\n", VAD, VDD, T, OWQ_F(owq) ) ;
And running owserver in foreground piped to a file.
We'll get a CSV file that is easy to read in any spreadsheet. (Maybe some
fancy gnuplot script would do it too).
The columns will be VAD, VDD, Temperature and Humidity
Plotted out, it should be obvious if the outlier humidity readings
correspond to any outlier voltage or temperature readings.
Perhaps the reading needs a delay for the line to settle.
On Thu, Jul 7, 2011 at 7:02 AM, Pedro Côrte-Real <pedro@...> wrote:
> I have had a persistent bug reading from owserver that it will
> sometimes give me a very wild read (e.g., 135% humidity) from a sensor
> and then go right back to normal values. I've even built an outlier
> removal function into my saal package. I've had that happen today even
> more. My first thought was that there was something wrong with my
> owserver ruby client library but I did a tcpdump of the
> communications and it seems I am indeed getting these values back
> from owserver. System logs don't show any owserver error messages.
> My setup is a USB dongle connected to a hobby boards hub that has 4
> hobby boards humidity+temp sensors attached to 4 ports and a daisy
> chain of other sensors attached to another port. The hub injects power
> so hopefully that's not an issue.
> I am doing uncached reads every minute to all the sensors in series.
> Any ideas of what could be wrong?
>  http://scratch.pedrocr.net/owserver.dump.bz2
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> Owfs-developers mailing list