ArduinoGeneral

Equation explanation in Analog EC Meter SKU:DFR0300 code

userHead Account cancelled 2016-09-15 02:28:47 1611 Views1 Replies
Hi,
I recently purchased Analog EC Meter SKU:DFR0300 and it works well. I'm just having a hard time trying to understand every line of code to calculate the conductivity of a solution from wiki that provided here:make_clickable_callback(MAGIC_URL_FULL, '
', 'https://www.dfrobot.com/wiki/index.php/Analog_EC_Meter_SKU:DFR0300', '', ' class="postlink"')

I'm trying to do the Scheme of Calibration (using 1413 uS/cm and 12.88ms/cm solution) from that link and got this equation:
y = 0.006568419x + 0.04311972

But the sample program have different equation. Here I quote what they say in that link:
"This is how the three equations were calculated out using different EC solutions inbetween 1ms/cm ~ 3ms/cm ~ 10ms/cm ~ 20ms/cm in the sample code"

if(CoefficientVolatge<=448)ECcurrent=6.84*CoefficientVolatge-64.32; //1ms/cm<EC<=3ms/cm
else if(CoefficientVolatge<=1457)ECcurrent=6.98*CoefficientVolatge-127; //3ms/cm<EC<=10ms/cm
else ECcurrent=5.3*CoefficientVolatge+2278; //10ms/cm<EC<20ms/cm

=========================================================================
Can someone explain how they got those equation? is it the same way with the Scheme of Calibration that I just did? If so, how is my equation different from the code?
Thank you.


*Btw sorry for mess up post. I cant use any of that tag like url or code. When I use them, my post get even messier
2016-09-19 03:18:07 Hi Sir,

Sorry, since our website is updating, the post will be some change, the inconvenience brought to you, hope for your understanding.

The code is the result of our test, and the scheme of calibration is just a reference, we are updating the wiki.

There is a link about calibration, you can make a reference:make_clickable_callback(MAGIC_URL_FULL, '
', 'https://www.youtube.com/watch?v=SfYD8JZ1wK4&feature=youtu.be', '', ' class="postlink"')

The code of calibration as shown in the attachment.

Note: since our website is updating, the post will be some change, just copy the link to the browser to search.
userHeadPic Wendy.Hu