Hello, I am working with the RAK5801 4-20mA interface board attached to Wisblock.
According to the documentation, it provides two 4-20mA inputs.
The top pin (Pin #8) maps to the A1 analog input, and the next pin (Pin #7) maps to the A0 input.
When I read these inputs, I am getting expected values from A1, but when I read A0, it is always approximately 600 (integer), no matter what is connected, or disconnected.
A1 goes to zero when disconnected, but A0 stays at ~600.
Is there some sort of additional initialization necessary to enable this input?
setup() function I initialize both pins like this:
pinMode(WB_A1, INPUT); pinMode(WB_A0, INPUT);
I ensure to power on the RAK5801 by this:
pinMode(WB_IO1, OUTPUT); digitalWrite(WB_IO1, HIGH); delay(1000); // Give peripherals time to stabilize before reading
Thank you for any assistance.