Hello friends.
Today i am testing a current HAt to measure my 4-20 mA signal. For this i am using the waveshare current HAt and my ROCKPI E, where my Node-red instance is running.
To read the current hat i am using this node: node-red-contrib-easybotics-ina219-sensor
Sadly the signal is not very accurate. When i am using the HAT with my ESP32 i get clean values. Cant figure out what the problem is. Anyway:
I try to live with it, since i am depning on my ROCKPI E (until now), i try to smooth the value. I know that there is a smooth-node.
Problem 1: I could live with the 4-20 mA signal, if there wouldnt be every 7 sec. a very bad signal.
Problem 2: If i create a function, where, lets say for example, every value should be ignored, that is +- 20% from a average away, i face the problem, that if my signal is changing, this "new" values will also be ignored, because this "true" new values are also to much away from my average value.
Has someone an idea how to get this to work?
Thank you