2017-06-28, 07:18 PM
Hi,
I am on my way to holiday with the family tomorrow so not much time to write Python code now. I think the out from the sensors could be aggregated into a float number that could be a signal K label ranging from 0 to 1.0 which makes it easy to display as a tank measurement. One might even multiply with the number of liters to gt the signal K label in liters directly.
I'm happy for the effort to include the PCF8572 or PCF8574A, I have a small piece of Python code that just demonstrate the usage :
https://github.com/olewsaa/Yacht-compute...er/PCF8574 bit some more lines are needed to present more than just high and low pins. I'l write that when I get back in beginning of August, and I have also some more sensors to check it out and get a real prototype that respond to real water level.
Ole
I am on my way to holiday with the family tomorrow so not much time to write Python code now. I think the out from the sensors could be aggregated into a float number that could be a signal K label ranging from 0 to 1.0 which makes it easy to display as a tank measurement. One might even multiply with the number of liters to gt the signal K label in liters directly.
I'm happy for the effort to include the PCF8572 or PCF8574A, I have a small piece of Python code that just demonstrate the usage :
https://github.com/olewsaa/Yacht-compute...er/PCF8574 bit some more lines are needed to present more than just high and low pins. I'l write that when I get back in beginning of August, and I have also some more sensors to check it out and get a real prototype that respond to real water level.
Ole
Ole W. Saastad
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa