Open Robilben opened 1 year ago
Dear Robin! I have truly never worked with set_limits and get_limits, I just implemented the functions according to the data sheet. Could be an endianess problem. To test this assumption please change line 61 of somose.py from
return [low_byte, high_byte]
to
return [high_byte, low_byte]
and try again.
Cheers, Volker
Hello, I used your code on a pi pico W. I'm able to get the current and mean value, however I have problems to set new limits for dry and wet. For one, if I change the wet limit to e.g. 3000, 5000 or even 100000 it has no influence on the mean and current value. Changing the dry value on the other hand will change the outcome of mean and cur, but still the maximum of those I can get is 25 under normal circumstances (Only if I put the sensor in water I get higher values).
In addition, the get_limits function always returns the same values of 0 and 4096, even if I have them changed.
I'm probably missing something crucial here.
Best regards Robin