MikroElektronika
Water Detect click
Water Detect click
SKU:MIKROE-2786
Low stock
Couldn't load pickup availability
Share
Water Detect click is used for detecting water and other electroconductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid.
Water Detect click can be used as a household flood alarm sensor, rain detector for smart buildings or for water tanks that act as a limit switch for a pump.
You could use it on one of our clicker 2 development boards, with GSM 4 click, or any other from the wireless range, and create a home flood alarm. Any time Water Detect click detects water it will send you an SMS.
How the click works
Water Detect click works by comparing the voltage of two resistor dividers using the MCP606 comparator. The resistor divider (made of R2 and R3) is used as a voltage reference.
The MCP606 functions as a comparator on this click board™.
The second divider is made of resistor R1 and the sensory area. When the sensory area is dry, it's resistance is near infinite, and the voltage applied to the inverting terminal of the comparator equals VCC.
Since the voltage of the reference divider connected to the non-inverting input is VCC/2, the output of the comparator is at zero voltage. Once the liquid is present at the sensory area, it's resistance drops and pulls the voltage on the inverting input of the comparator toward zero volts. Once this voltage falls below VCC/2, the comparator output swings toward VCC signaling the presence of liquid. The comparator output is tied to the INT pin on the mikroBUS™ header.
The water detection area is actually made of exposed conducting wires - simple but effective technology.
Specifications
Type | Various |
Applications | Household flood alarm sensor, rain detector for smart buildings or water tank fill sensor, automated watering systems, etc. |
On-board modules | Water detection area, MCP606 comparator |
Interface | GPIO |
Input Voltage | 3.3V or 5V |
Click board size | L (57.15 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on Water Detect click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Jumpers and settings
Designator | Name | Default Position | Default Option | Description |
---|---|---|---|---|
VCC SEL | VCC SEL | Left | 3.3V | Power Supply Voltage Selection between 3.3V/5V, left position 3.3V, right position 5V |
Software Support
We provide a library that reads the status of the click output (INT pin) when water is detected, as well as an example application that, when this happens, sends the message “Water detected!” on the microcontroller UART. The library and the example run on all the MikroElektronika compilers and main development boards; you can download both on LibStock.
Note: depending on the development board you are using, you may need the RS232 click or USB-UART click, to connect to your PC. The terminal available in all Mikroelektronika compilers, or any other of your choice, can be used to read the message.
Library Description
The library implements GPIO HAL and one function which checks the state of the INT pin.
Key functions:
-
uint8_t WDETECT_getStatus()
- Returns water detection status
Demo application description
The demo application is composed of three sections :
- System Initialization - Initializes GPIO and UART used for logging
- Application Initialization - Initializes Library GPIO HAL
- Application Task - (code snippet) Constantly polling INT pin using
WDETECT_getStatus()
if water is detected it sends a message to UART. It uses thegetINT()
function which returns the state of INT pin.
void applicationTask() { if (WDETECT_getStatus()) { UART1_Write_text("Water Detected!"); UART1_Write(13); UART1_Write(10); } }
Other MikroElektronika Libraries used in this demo application:
- UART
The full application code and libraries are available for download on our LibStock page.





New Products
-
Infinite flight bundle - Crazyflie 2.1 Brushless
Vendor:BitcrazeRegular price Rs. 130,999.00Regular priceUnit price / per -
Intel RealSense Depth Camera D435if
Vendor:Intel® RealSense™Regular price Rs. 51,299.00Regular priceUnit price / per -
Sold out
Probe Pipe Fittings 1/2"
Vendor:Atlas ScientificRegular price Rs. 2,419.00Regular priceUnit price / perSold out -
UBEC 12A (3-14S)
Vendor:HolybroRegular price Rs. 4,199.00Regular priceUnit price / per -
Analog Discovery Studio Max: Multi-Instrument Lab for Engineering Experimentation
Vendor:DigilentRegular price Rs. 217,999.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Wide
Vendor:LuxonisRegular price Rs. 117,969.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Fixed Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Auto Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Auto Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Fixed Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Wide
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / per -
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / per -
Holybro X500 V2 Motor 2216-920KV-CCW
Vendor:HolybroRegular price Rs. 2,199.00Regular priceUnit price / per