Libelium is offering new technical support channels, to contact with de Technical Support team to solve any issue our doubt please contact with your sales agent or visit our contact site



Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: Open Garden Water Temp sensor being affected by EC sensor
PostPosted: Fri Feb 19, 2016 9:36 pm 

Joined: Fri Feb 19, 2016 9:30 pm
Posts: 12
I'm new to the open garden and just getting set up and ran into some weirdness.

When I run the sample code for the water(soil) temp it works fine except that the first reading is 85 degrees celsius and then settles down to a correct reading.

However when I load the large sample code that works will all the sensors I'm finding that if I take an EC reading then the temperature stays at 85 degrees celsius.

Here are code snippets and the serial port output from them. Any insight would be greatly appreciated.

//Read DS18B20
float waterTemperature = OpenGarden.readSoilTemperature();
Serial.print(F("Water Temperature: "));
Serial.print(waterTemperature);
Serial.println("*C");


//Read the pH sensor
int mvpH = OpenGarden.readpH(); //Value in mV of pH
float pH = OpenGarden.pHConversion(mvpH); //Calculate pH value

//Read the conductivity sensor in µS/cm
float resistanceEC = OpenGarden.readResistanceEC(); //EC Value in resistance
float EC = OpenGarden.ECConversion(resistanceEC); //EC Value in µS/cm


Output

**************************
2/19/2016 FRI 12:20:45
Water Temperature: 85.00*C
Water Temperature: 85.00*C
***************************
2/19/2016 FRI 12:20:47
Water Temperature: 85.00*C
Water Temperature: 85.00*C
***************************
2/19/2016 FRI 12:20:50
Water Temperature: 85.00*C
Water Temperature: 85.00*C
***************************
2/19/2016 FRI 12:20:52
Water Temperature: 85.00*C



Without ec reading

//Read DS18B20
float waterTemperature = OpenGarden.readSoilTemperature();
Serial.print(F("Water Temperature: "));
Serial.print(waterTemperature);
Serial.println("*C");


//Read the pH sensor
int mvpH = OpenGarden.readpH(); //Value in mV of pH
float pH = OpenGarden.pHConversion(mvpH); //Calculate pH value

//Read the conductivity sensor in µS/cm
//float resistanceEC = OpenGarden.readResistanceEC(); //EC Value in resistance
//float EC = OpenGarden.ECConversion(resistanceEC); //EC Value in µS/cm



Water Temperature: 85.00*C
***************************
2/19/2016 FRI 12:14:51
Water Temperature: 85.00*C
Water Temperature: 9.13*C
***************************
2/19/2016 FRI 12:14:53
Water Temperature: 9.13*C
Water Temperature: 9.13*C
***************************
2/19/2016 FRI 12:14:55
Water Temperature: 9.13*C


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Mon Feb 22, 2016 8:34 am 

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

are you using the last version of Open Garden library? What Arduino IDE version are you using? Are you using Arduino Uno?

Please send us some photos of your hardware connections.

Regards.


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Tue Feb 23, 2016 12:13 am 

Joined: Fri Feb 19, 2016 9:30 pm
Posts: 12
Hi, Im using the arduino IDE v 1.6.5 and open garden library version 2.2

I don't see a way to upload images so I have to get them up on a public website to link to them. I tried swapping the leads for the EC connection as it says they are not signed but that did not help.


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Tue Feb 23, 2016 8:27 am 

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

please try downloading arduino IDE 1.0.5 version here:
https://www.arduino.cc/en/Main/OldSoftw ... ases#1.0.x

In order to upload photo you can use a public host like dropbox or imgur.com for example. Also please copy here your code.

Regards.


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Thu Feb 25, 2016 9:27 am 

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

please try with this new version of Open Garden library:
https://www.libelium.com/forum/libelium ... s_V2_3.zip

Regards


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Tue Mar 01, 2016 5:58 pm 

Joined: Fri Feb 19, 2016 9:30 pm
Posts: 12
The new version of the open garden library worked.

FYI using the old version of the arduino IDE did not help.

Now I'm on to getting the wifi module working so that I can post data. Having problems that but will start another thread.

Thank you


Top
 Profile  
 
 Post subject: Re: Open Garden Water Temp sensor being affected by EC senso
PostPosted: Wed Mar 02, 2016 8:37 am 

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

you are welcome, we will try to help you in your other thread.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 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:
cron


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.