Sample /Hold analog signal

Easy to use, 100% Lua-based event scripting framework.

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 with dzVents? or other script
Has someone an example how to do this?

Kind Regards
Robin
SweetPants

Re: Sample /Hold analog signal

Post by SweetPants »

Posting your question 4 times won't speed up things. Please be patient and maybe somebody will respond.

viewtopic.php?f=59&t=25400
viewtopic.php?f=6&t=25309
viewtopic.php?f=62&t=25397

In my personal opinion, you need some external hardware with an analog multiplexer for 13 channels, and a CPU (Arduino, has build-in 10 bit ADC's) that translate the measured voltages in to messages for Domoticz. Because there is no hardware support for such a device, you have to write a plugin to support your hardware.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest