Gravity: Analog Electrical Conductivity Sensor / Meter(K=10) for Raspberry pi
Hi,
I have bought this Gravity: Analog Electrical Conductivity Sensor / Meter(K=10)
Now I want to connect it and program it for a raspberry pi, the problem is that there is only code available for Arduino.
I usually program in Python, but can translate it to another language if needed.
Is there anyone who have used this sensor for Raspberry pi, using python?
Thankful for any help I can get!
Best regards,
Klara
I think you need to install this library: https://github.com/GreenPonik/GreenPonik_EC_Python
bidrohini.bidrohiniHello Klara,
I haven't used this sensor on raspberry pi before, but I see a potential problem. “The Raspberry Pi's GPIO pins are digital, so you can only set outputs to high or low, or read inputs as high or low. ” You may want to get an ADC chip (Analogue-to-Digital converter)first, and just read digital inputs like you would with other sensors.
Best Regards,
xingzhao.zhu
Hello Klara,
Although there isn't any Python example code currently available for the sensor you mentioned, we do find an IIC ADC Module that is built with raspberry pi support.
Product Link: https://www.dfrobot.com/product-1730.html
The Python example is on the wiki page, hope that this could help with your progress. Please feel free to reply to me if you need any support.
Regards,
Xingzhao
Hi, I have an ADC module and cencorn seems to pick up a value. The problem now is that I don't have any code adapted for Rasberry pi. I have tried running the program for k=1 and I get a value but the censor calibrates wrong. Is there any way to modify the program available for K=1 to work with k= 10? or the program for andruino that is avalible?