ArduinoGeneral

EC Sensor V2 Returns 'nan' Possible Broken Library

userHead joebentson 2018-09-10 09:04:25 2619 Views2 Replies
Hello,

I just recieved the EC V2 SKU:DFR0300 and going straight from the WIKI (sample code and library) the sensor returns "EC:nan ms/cm" in the serial monitor. By testing the output voltage of the sensor and then using the V1 sample code and library I have confirmed that it is returning voltages, but the new code is not processing it correctly.

I think the new EC library might be broken, can anyone confirm this?
2018-09-13 08:35:35 That fixed it. Thank you! userHeadPic joebentson
2018-09-10 16:20:05 There might be some conflict in EEPROM, please upload the following code first then upload the example code.https://www.dfrobot.com/wiki/index.php/ ... FR0300#FAQ
#include <EEPROM.h>
#define KVALUEADDR 0x0A
void setup(){
for(byte i = 0;i< 8; i++ ){
EEPROM.write(KVALUEADDR+i, 0xFF);
}
}
void loop(){
}
userHeadPic robert.chen