WIZM-WL

WIZM-WL is a capacitive water-level sensor breakout module powered by the MPR121 IC over an I2C interface (0x5A), featuring a 12-step vertical sensing strip from 0mm to 55mm in 5mm increments below a MAX LINE indicator. Equipped with a 5-pin horizontal connector (J1), four corner mounting holes, and a center pass-through hole, it is built for tank level monitoring, liquid sensing, and embedded prototyping.
The WIZM-WL (Rev 1.0) is a breakout module integrating the MPR121 capacitive sensor IC with a vertical sensing strip graduated in 5mm steps from 0mm to 55mm up to the MAX LINE mark. Rather than exposing bare resistive contacts directly to liquid, it senses dielectric changes along the probe strip and exposes a 5-pin connector (J1) alongside four corner mounting holes and a central mounting hole for straightforward mechanical installation.
Features
MPR121 Capacitive Sensing (
0x5A): Built around the MPR121 IC at default I2C address0x5Awith a 5-pin I2C/interrupt connector (J1)Graduated
0mm–55mmSensing Strip: Marked in5mmincrements from0mmto55mmwith aMAX LINEsubmersion limit above55mmPower & Status Silkscreen: Clearly labeled
3.3V,GND,SCL,SDA,INT,I2C Addr: 0x5A, and power indicator silkscreen on the frontMechanical Mounting Ready: Includes four corner mounting holes plus a large center pass-through hole and full part/revision silkscreen (
P/N: WIZM-WL,Rev 1.0) on the back |
Specifications
Parameter |
Value |
|---|---|
Model / P/N |
WIZM-WL |
Function |
Cap Water Level |
IC |
MPR121 |
Interface (I/F) |
I2C ( |
Operating Voltage |
3.3V DC |
Sensing Range |
|
Connector Pitch |
Keyed Horizontal (J1) |
Pin Count |
5 Pins ( |
Pinout & Hardware Overview
The module provides a 5-pin horizontal connector (J1) with pin labels silkscreened on both the front (INT, SDA, SCL, GND, 3.3V) and the back (3.3V, GND, SDA, SCL, INT), accompanied by four corner mounting holes and a center hole.
Pin |
Type |
Description |
|---|---|---|
3.3V |
Power |
3.3V DC power supply input |
GND |
Power |
Ground supply reference |
SDA |
Input/Output |
I2C serial data line |
SCL |
Input |
I2C serial clock line |
INT |
Output |
Interrupt output pin |
Top View & Bottom View

Platforms Supported
MicroPython |
|---|
|
Getting Started
Materials Required (excluding WIZM-WL module)
W55MH32L-ADK
5-pin jumper / connector cable (
3.3V,GND,SCL,SDA,INT)USB cable

Hardware Connection
Connect the WIZM-WL to the W55MH32L-ADK with the JST PH-Style Cable to J12:

Then use a USB Type‑C cable to connect the WIZ‑LINK Port on the W55MH32L-ADK board to your PC.
Sample Code Demo
Software
We will be using Thonny IDE to run the code.
Open Thonny IDE on your PC.
Select the correct COM port for your board.
Set the interpreter to MicroPython (generic).
Refer to the WIZnet documentation page for detailed instructions under the “Basic Setup” section.
MicroPython
import time
from machine import I2C, Pin
WIZM_WL_ADDR = 0x5A
NUM_CHANNELS = 12
HEIGHTS_MM = tuple(range(0, 60, 5)) # 0mm, 5mm, ..., 55mm
REG_FILT_DATA_0_L = 0x04
REG_BASELINE_0 = 0x1E
REG_TOUCH_THRESH_0 = 0x41
REG_RELEASE_THRESH_0 = 0x42
REG_DEBOUNCE = 0x5B
REG_CONFIG1 = 0x5C
REG_CONFIG2 = 0x5D
REG_ECR = 0x5E
REG_SOFT_RESET = 0x80
class WIZMWaterLevel:
def __init__(self, i2c, addr=WIZM_WL_ADDR, touch_thresh=12, release_thresh=6):
self.i2c = i2c
self.addr = addr
self._init_module(touch_thresh, release_thresh)
def _write_reg(self, reg, val):
self.i2c.writeto_mem(self.addr, reg, bytes([val & 0xFF]))
def _read_u8(self, reg):
return self.i2c.readfrom_mem(self.addr, reg, 1)[0]
def _read_u16_le(self, reg):
buf = self.i2c.readfrom_mem(self.addr, reg, 2)
return buf[0] | (buf[1] << 8)
def _init_module(self, touch_thresh, release_thresh):
self._write_reg(REG_SOFT_RESET, 0x63)
time.sleep_ms(10)
self._write_reg(REG_ECR, 0x00)
for ch in range(NUM_CHANNELS):
self._write_reg(REG_TOUCH_THRESH_0 + ch * 2, touch_thresh)
self._write_reg(REG_RELEASE_THRESH_0 + ch * 2, release_thresh)
self._write_reg(REG_DEBOUNCE, 0x00)
self._write_reg(REG_CONFIG1, 0x10)
self._write_reg(REG_CONFIG2, 0x20)
self._write_reg(REG_ECR, 0x8F)
def filtered_data(self, ch):
return self._read_u16_le(REG_FILT_DATA_0_L + ch * 2) & 0x03FF
def baseline_data(self, ch):
return self._read_u8(REG_BASELINE_0 + ch) << 2
# Update SCL, SDA, and I2C bus ID for your microcontroller
i2c = I2C(1, scl=Pin("PB6"), sda=Pin("PB7"), freq=400_000)
sensor = WIZMWaterLevel(i2c, addr=WIZM_WL_ADDR)
level_delta_thresh = 10
print("WIZM-WL water level test started\n")
while True:
try:
deltas = [
sensor.baseline_data(ch) - sensor.filtered_data(ch)
for ch in range(NUM_CHANNELS)
]
active = [
HEIGHTS_MM[ch] for ch, d in enumerate(deltas) if d >= level_delta_thresh
]
level = f"{max(active)}mm" if active else "0mm/dry"
summary = " ".join(f"{h}:{d:+d}" for h, d in zip(HEIGHTS_MM, deltas))
print(f"[{level:>8s}] {summary}")
print("-" * 40)
except OSError as e:
print("Module read error:", e)
time.sleep_ms(500)

Schematic
Download: WIZM-WL Schematics
