Hi everyone,
getting more and more frustrated with corrupt readings with my Pi-Zero setup, i ordered a WiPy and i want to share my first results with you.
Very simple Code, just reading 1 DS18B20 and 1 HX711 every 0.5sec and store the values in a txt file.
Maybe i should wait longer?
todo: running the code with the HX711-Lib using the SPI Interface.
In case you read the DS18B20 with 12bit accuracy, the sensor needs at least 750 ms conversion time. so a delay of 500 ms between readings is too fast. Timing is critical, so you should use a proper lib to read the sensors. Perhaps you may have a look at GitHub - hiveeyes/hiveeyes-micropython-firmware: Hiveeyes MicroPython Datalogger -- Data logging for humans it is not ready yet but on a good way! The other version is GitHub - Hiverize/FiPy what is running in Bremen with good results (I have still problems to get it running, Wifi makes problems on my side) but would be great if you can test it.
We will integrate both development branches to one software in the future.
My recent Wifi problem was a SSID-issue. On the area with my hive two SSIDs were present. First one was âblablaâ and second one âblabla guestâ. I wanted to use and configured the âblablaâ but the wifi library always tried to connect to the âblabla guestâ - with the configured password of âblablaâ
annoying problem - my solution: 2nd SSID is now âguest blablaâ
I have the same constelation here but this was not the reason for the problem. I had other code on the FiPy before and thought only that I purged the device but the old code was not cleand up before. After cleaning up code is now running, see Hiverize code läuft auf meinem FiPy nicht - #14 by clemens
in order to mitigate these âmisreadingsâ? Of course, I would be interested to find the root cause for that instead of mitigating them.
Ahh, correction: I believe the original reason to introduce the median was to compensate against influences from fluctuations related to wind pressure. Right, @clemens?
However, I have always kept myself asking whether this compensation might also lead to not even seeing those misreadings in Grafana?
Sure, you have to do a clever processing of the data.
I take a measurement every 30sec. The value can not de or increase more than 1 kg from one reading to an other. And then i do a median of all collected values every 5 min.
But still, i know there are wrong single measurments and i want to get rid of them ;)