@Olaf-Jacobs It's a straight analogue read on a single ADC pin relative to Vcc and ground of the Arduino Node.
In my case it's a pro-mini, the ADC pin in this example earlier defined as "Pressure", the result radioed in only if the ADC reading has changed. Three other binary inputs for contactors are polled every second on separate digital pins (one of which is pin 3), which uses all 4 pins available on this pro-mini due to the radio etc.
if ((!hidro&&!Hidro&&(counter2>=132))||initialise){
int incoming=analogRead(Pressure);
if (prevolume!=incoming){
prevolume=incoming;
sleep(50);
float tankvolume=(((incoming-102.3)*6.704199635)+0.5);//5psi sensor
send(msg8.set(tankvolume,0));//This is actual volume
sleep(100);
}}
I'm not clear on the rest of what you're trying to incorporate or what pin 3 (digital interrupt) has to do with it, the pressure sensor signal goes to an analogue pin to enable the voltage to be read.
@GLAB No worries, was in a similar situation.. My perspective was on what the Node could be made to provide, not what could be done within Domoticz to address the requirement - eg Had heard of Dummy counters but had no experience nor understood their purpose, nor had ever used scripts.
I had been sending a logical ON/OFF as well as a cumulative total from the Node and hit the same hair-pulling scenario as yourself.
Now only the ON/OFF is sent and the short script makes the transposition within Domoticz to a dummy meter (I think kWhr) using the internal clock in Domoticz.
Have fun
@gohan said in Arduino Pro Mini Shield for RFM69(H)W:
If I remeber right that pin is used as input so the RFM69 is not receiving any 5v signal. In addition there are people claming they have the RFM69 module working on 5v on data pins and 3.3v on vcc, but I hardly suggest to do it.
thank you just what i thought .
about direct 5v on data...well... i seen a big red sign saying n :DONT do it! lol
Level converters are so cheap...that i ordered 5 or 10 thoguether with rfm69 board.
sorry about hijack this topic, i though i was on general discussion