Arduino

Setting Up Knowflow Library for Arduino IDE

About the KnowFlow Sensor

One of the more advanced sensors available in electronics projects is the Gravity Analog Electrical Conductivity Sensor by DFRobot. The specifications of the sensor can be found here. The sensor kit is helpful in monitoring the conductivity of aqueous solutions and checking water quality. This provides a variety of applications, including aquaculture and environmental water detection.

Step 1 — Download the Library

After acquiring the sensor, the next step would hopefully be to install the Library needed to code the sensor in Arduino IDE. This step may prove to be confusing to some. First, visit the DFRobot KnowFlow GitHub, found here. Download the files as a.zip. If you’re unsure how there’s a dropdown button beside the “Go to file” button at the top right corner of the files window. Click on that and select “Download ZIP.”

Step 2 — Import into Arduino IDE

Second, we’ll have to include the KnowFlow Library file in Arduino IDE’s Library. Open Arduino IDE, at the top toolbar, go to Sketch > Include Library> Add.Zip Library…. Navigate to where the KnowFlow.zip file is and select the zip file. Arduino IDE will do the rest.

Step 3 — Open the Example Code

You will see a system message in Arduino IDE indicating that the Library has been successfully added.
After that, you’ll have access to the example code titled “WaterMonitorDo.” However, the example code that you should look for is in the downloaded zip file. Extract the zip file and navigate to
KnowFlow_AWM-masterKnowFlow_AWM-masterArduinoUnoDoWaterMonitor
and select the file “WaterMonitor.ino” You are now one step closer to using the Analog Electrical Conductivity Sensor.

See also  3D Mini Rain Car Wiper | Arduino Project Tutorial

Frequently Asked Questions

What does this Setting Up Knowflow Library for Arduino IDE tutorial cover?

One of the more advanced sensors available in electronics projects is the Gravity Analog Electrical Conductivity Sensor by DFRobot.

What Arduino library does the Setting Up Knowflow Library for Arduino IDE tutorial use?

The sketch uses standard Wire.h (I2C) or SPI.h plus a part-specific library installable via Arduino IDE → Sketch → Include Library → Manage Libraries. See the Sample Code section.

Why does the Setting Up Knowflow Library for Arduino IDE act differently on USB power vs battery?

Battery voltage sags under load. Add a 100uF cap across the rails, use a 5V/2A regulator-backed pack, and never power motors from the Arduino's onboard regulator.

// written by Jess Salvador