Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: Calibration code
PostPosted: Sat Mar 26, 2016 2:39 am 

Joined: Fri Feb 19, 2016 9:30 pm
Posts: 12
Does anyone have any code they would like to share to calibrate the pH and EC sensors on the open garden shield. Ideally it would be great if the calibration could be done from a web page but I'm not sure how that communications would work.

Thank you


Top
 Profile  
 
 Post subject: Re: Calibration code
PostPosted: Mon Mar 28, 2016 8:18 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11338
Hello leemandell,

you can get the calibration codes in the examples included in the library and in our tutorial.

Regards


Top
 Profile  
 
 Post subject: Re: Calibration code
PostPosted: Tue Mar 29, 2016 1:16 am 

Joined: Fri Feb 19, 2016 9:30 pm
Posts: 12
I see code that allows me to define the calibration values and then set them like this

Code:
#define calibration_point_4 2153  //Write here your measured value in mV of pH 4
#define calibration_point_7 1972  //Write here your measured value in mV of pH 7
#define calibration_point_10 1816 //Write here your measured value in mV of pH 10

#define point_1_cond 40000   // Write here your EC calibration value of the solution 1 in µS/cm
#define point_1_cal 40       // Write here your EC value measured in resistance with solution 1
#define point_2_cond 10500   // Write here your EC calibration value of the solution 2 in µS/cm
#define point_2_cal 120      // Write here your EC value measured in resistance with solution 2

and then in the setup function
  OpenGarden.calibratepH(calibration_point_4, calibration_point_7, calibration_point_10);
  OpenGarden.calibrateEC(point_1_cond, point_1_cal, point_2_cond, point_2_cal);



What I'm looking for is code that allows you to gather the calibration information interactively so you can do an easy calibration of the system. Does something like that exist anywhere? Also is there a code repository that users can upload code that they have written so others can use it?

Thank you,

Lee


Top
 Profile  
 
 Post subject: Re: Calibration code
PostPosted: Tue Mar 29, 2016 7:34 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11338
Hello leemandell,

that is the only code that we have to calibrate the sensors. Sorry but we have not a repository to upload codes.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 4 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.