Skip to the content
2 layers32.5 × 18 mmWatermeter sensor, the printed circuit board in 3D

Watermeter sensor

pifactory/watermeter12

Design files for making inductive sensor for reading out smart water meters.

Size
32.5 × 18 mm
Copper layers
2
Thickness
1.58 mm
Parts
15
Nets
14
Pads
53
Tracks, vias
89, 23
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
8 Nov 2021
Updated
14 Sep 2024

Overview

Watermeter sensor is an open-source printed circuit board by pifactory, from the pifactory/watermeter repository on GitHub, published under the CC-BY-4.0 licence. It is a 2-layer board of 32.5 × 18 mm with 15 parts on 14 nets, routed with 89 tracks and 23 vias.

It is built around the LDC2112PW and AP7354-18W5. Its parts include 5 capacitors, 2 resistors, 2 ICs and 1 connector. It belongs with the sensors and measurement boards of this library.

Main components

2

README

README.md

Smart Water Meter Sensor

I sell on Tindie CC BY 4.0

Design files for making inductive sensor for reading out smart water meters.

Features

  • 20 μA in low-power mode (including microcontroller)
  • Small footprint: 18mm x 32.5 mm, can be placed directly on the water meter glass
  • Easy to use: inductive sensors are printed directly on the PCB
  • Designed for wheel diameter of 18mm
  • Includes 2 inductive sensors for reliable counting of the wheel turns

How Smart Water Meter works

Many water meters are made 'smart-ready', ie they include a wheel under the glass which makes 1 turn per liter. Half of the wheel contains some metal (copper) on it which can be sensed by an inductive sensor.

Because of the costs water supply companies usually do not install smart reading device on such meters, but some nerds among us are stubborn enough to design and install their own reading device. Just to know how much water is used and be able to monitor it with, say, a Home Assistant. It can be also used to detect leaks.

One inductive sensor is not enough for reliable readings. There are some corner cases when the sensor will miss a turn of the wheel or count 1 turn 2 times. Think of it like this: wheel can stop at any moment at any angle and then continue movement at any time later on. During this stop environment can change significantly (temperature & humidity) to fool the sensing circuit. On top of it, to save power, each inductive sensor is scanned once in 800ms, ie there is no continous output from it. All in all, 2 inductive sensors allow to detect illogical readings and in many cases repair them.

For now here is just the sensor, controller is coming soon... I've made one for Zigbee already and it runs on 2 AAA batteries.

Here is the photo of the first prototype:

How to use design files

I used KiCAD 6 to make the design. You will probably also want to install kicad-goodies libraries, but this is not required.

A word about choosing a PCB shop. Inductive sensors on the PCB require as much as possible turns on as little space possible. This means that the traces have to be as thin as possible and the spacing between them has to be as small as possible. Also there is no copper around them + geometry of the traces = you might get shorts between traces if you push it to the limit.

Most shops out there (including JLCPCB) claim to be able to produce 6 mils traces with 6 mils spacing between them. I work with AISLER and they produce 5/5 mils boards for the same price, so this design has 5/5 PCB coils. I've made 6/6 PCB coils available in kicad-goodies, you can try them if 5/5 coils will not work for you. AISLER will need just *.kicad_pcb file, no Gerber is needed there and therefore not provided in this repo.

Zigbee Microcontroller

This repo has all you need to make a Zigbee microcontroller for the sensor:

  • KiCAD 6 design files for the PCB (incl schematic)
  • Compiled firmware
  • Configuration file for Zigbee2MQTT

Microcontroller is based on EBYTE module with CC2652P.

Firmware has following features:

  • Low power, should work for years on 2 AAA batteries
  • Water usage data is buffered for 5 minutes
  • When parent connection is lost: try to rejoin every 5 minutes
  • Transmit power is set to 14dBm, this should be enough to get signal in challenging RF situations and yet to not use too much battery

Because of a bug in TI software, rejoin period cannot be longer than 5 minutes. Also rejoin uses more power than standard data report, so try to avoid situations when device stays on for longer periods without a connection to the network (like days, weeks, months)

Operation with 2 buttons and 1 LED:

  • Join new network: click BTN1
  • Leave network: press BTN1 for at least 10 seconds and release the button (long click)
  • Immediately send data (when part of the network): click BTN1
  • Rejoin (when parent is lost): click BTN1
  • RESET button restarts the device
  • LED blink once device (re-)joins Zigbee network

Zigbee2MQTT

Place provided pifactory_watermeter.js file in the same directory as configuration.yaml file.

Add these lines to configuration.yaml file:

yaml
external_converters:
    pifactory_watermeter.js

Restart Zigbee2MQTT and join the device

Holder

I've made a holder which fits my Elster water meter. Meter without sensor looks like this:

I didn't tried the holder on any other meter, but I suspect it fits different models as well. Please share your meters/holders or contact me if you need help fitting this sensor to your meter.


This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

Parts

15
QtyValueFootprintReferences
21nFCapacitor_SMD:C_0805_2012MetricC1, C3
21uFCapacitor_SMD:C_0603_1608MetricC4, C5
230kResistor_SMD:R_0603_1608MetricR1, R2
2PCB coilpcb_coils:pcb_coil_8mm_2Lx10T_5-5PXI1, PXI2
110nFCapacitor_SMD:C_0805_2012MetricC2
1AP7354-18W5Package_TO_SOT_SMD:TSOT-23-5U2
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ1
1LDC2112Package_SO:TSSOP-16_4.4x5mm_P0.65mmU1
1~{ADDR}Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1
1~{LP}Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP2

The 14 most common of 15 parts.

More from pifactory/watermeter

1
  • 2 layers53 × 30 mmWatermeter zigbee, the printed circuit board in 3D

    Watermeter zigbee

    pifactory/watermeter

    Design files for making inductive sensor for reading out smart water meters.

    11 parts12CC-BY-4.0

Similar boards

  • 2 layers19 × 76 mmSub, the printed circuit board in 3D

    Sub

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    15 parts3kApache-2.0
  • 2 layers26.7 × 62.2 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    15 parts1kGPL-3.0
  • 2 layers100 × 44 mmVideoslot, the printed circuit board in 3D

    Videoslot

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    15 parts1k
  • 2 layers91 × 51 mmBusinessCard, the printed circuit board in 3D

    BusinessCard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    15 parts915
  • 2 layers24.3 × 57.9 mmFlosspods pro flex, the printed circuit board in 3D

    Flosspods pro flex

    kenp-io/not-for-airpods-repairs

    The content of this repository is licensed under the WTFPL License. Please have a close look at the terms before using this material.

    15 parts609WTFPL
  • 2 layers20.3 × 15.2 mmL0 Load, the printed circuit board in 3D

    L0 Load

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    15 parts546MIT
  • 2 layers68 × 50 mmEleLab v2 PowerFeed, the printed circuit board in 3D

    EleLab v2 PowerFeed

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    15 parts531GPL-3.0
  • 2 layers50.8 × 35.6 mmInterface, the printed circuit board in 3D

    Interface

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    15 parts454

Questions

How big is the Watermeter sensor PCB?

It measures 32.5 × 18 mm and has 2 copper layers, 1.58 mm thick.

What parts does the Watermeter sensor use?

15 parts, built around the LDC2112PW and AP7354-18W5. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Watermeter sensor KiCad files?

From the pifactory/watermeter repository on GitHub, at the commit this page was made from: the board is pcbs/watermeter_sensor/watermeter_sensor.kicad_pcb and its schematic pcbs/watermeter_sensor/watermeter_sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Watermeter sensor design in my own project?

Its repository publishes it under the CC-BY-4.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).