2017-09-12, 10:24 AM
(2017-09-12, 09:02 AM)Alpenskipper Wrote: I ordered the automation phat, and I am now trying to figure out, how to implement it in OP.
The automation phat is connected via I2C and after installing a library, the battery is connected to the analog input. It measures up to 24V directly.
The voltage is shown as follows:
value = automationhat.analog.one.read()
How could the voltage data be shown in OP? The aim is to send it via MQTT.
Martin
Edit: Just found a python example, but I need it simpler :-)
It might be almost simpler already
I use a ADS1115 , sort of big brother to the ASD1015 which is fitted to the automation phat, looks like it might just mean an easy edit to get the ADS1015 working. The ADS1115 works perfect with the openplotter tools menu, no need to do any python, it's been done already. I have it going out of MQTT as well.
Having battery voltage measured is so useful if you aren't plugged in every night
https://sailoog.gitbooks.io/openplotter-...s1115.html