Hello again. So I have read the forums and also the following tutorials you made on 4-20mA, how to. But got stuck on the ADS Values as I am using a very simple code provided by you on github.
I have tried to find examples on converting the 4-20mA readings to know values of my sensor, and also how to calibrate so I get true 4-20mA instead of a lower number.
I should show a 0 reading as 4mA and 200 as 20mA. But what I actually see on my console is a flow of 0 = 3.827mA through 3.93mA and a flow of 200 as 19.67 to 19.678.
How do I enter calibration code to fix this variable?
For Converting the data.
My flow meter will measure 0 to 200 CFM. So I need to add code that will change the mA values to read and measure the date in between if a flow of 0 = 4mA and flow of 200 CFM = 20mA. Ane everywhere in between.
Thank you in advance for your time. I really tried to find the solution online on all the forums but was unsuccessful.
Here is a screenshot of my particle console. I will post my code for the .ino file and the ads1115.cpp separately.
Thank you. I have changed the code to read the adc values. I now have those values showing in my console.
What I can’t find is the code to use along with your formula to make the conversion. I have searched and searched. It is probably right in front of my face. Sorry to be such a pest. I really appreciate the support.
I am now showing a flow of 0= range 2033 to 2046 and flow of 200= range 10,488 to 10,495