Sample /hold analog signal

Moderator: leecollings

Post Reply
Knibor
Posts: 112
Joined: Sunday 20 May 2018 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: NL
Contact:

Sample /hold analog signal

Post by Knibor »

Hi,

I have build a battery monitor system.
I have 13 battery cells that I measure with a multiplexer. The battery cell what I want to measure can I choose with a switch in Domoticz.
For example when I want to measure Cell 1, I switch "on" "Switch 1" in Domoticz. I can now read the voltage on a indicator in Domoticz.
But now I want 13 voltage indicators in Domoticz, for each cell one.
So when Switch cell 1 is "on" than take a sample of the voltage indicator and put the voltage reading in voltage indicator 1.
And when Switch cell 2 is "on" than take a sample of the voltage indicator and put the voltage in voltage indicator 2....and so on.


Is this possible in LUA ? or other script
Has someone an example how to do this?

Kind Regards
Robin
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest