Available with lab-grade K=1.0 probe. Connects directly to your device (Arduino, Raspberry Pi, or embedded) - no other parts required. Our open-source software makes measuring fast and easy. Compatible with probes of other conductivivity constants. (eg K=0.1, K= 10)
This module can be used with any conductivity probe with a BNC connection. The UART interface can communicate with nearly any microcontroller.
Arduino: From the Arduino IDE: Sketch → Include Library → Manage Libraries → select Anyleaf
C++: Download Anyleaf.cpp and Anyleaf.h from the C++ Github link below, and place them in your project directory
Python: Run sudo apt install python3-scipy, then pip3 install anyleaf. Ensure Serial is enabled. (Run raspi-config. Select P6 Serial. Do not allow a login shell to be accessible. Enable the serial port hardware).
#include <Anyleaf.h> EcSensor ecSensor; void setup(void) { ecSensor = EcSensor(1.0); // Set K=1.0 } void loop(void) { float ec = ecSensor.read(); float airTemp = ecSensor.read_temp(); delay(1000); }
import time from anyleaf import EcSensor, OnBoard def main(): delay = 1 # Time between measurements, in seconds ec_sensor = EcSensor(K=1.0) while True: print(f"conductivity: {ec_sensor.read(OnBoard())}") time.sleep(delay) if __name__ == "__main__": main()
Can be calibrated using a single point, but this isn't required.
Compatible with the Mycodo Environmental Monitoring and Regulation System. If you're using a Raspberry Pi, this is a simple way to get it running with a GUI, charts, and logging. Follow the installation instructions on that page, and add AnyLeaf EC as an input.