Skip to the content
PCBKitNew board
2 layers41.5 × 60.5 mmMod sensor agua, the printed circuit board in 3D

4-channel 5V→24V opto-isolated flow-sensor→PLC interface — KiCad hardware (CC BY 4.0)

Size
41.5 × 60.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
22
Pads
76
Tracks, vias
72, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Jul 2026
Updated
15 Jul 2026

Overview

Mod sensor agua is an open-source printed circuit board by TomasOsP, from the TomasOsP/water-flow-sensor-module repository on GitHub, published under the CC-BY-4.0 licence. It is a 2-layer board of 41.5 × 60.5 mm with 30 parts on 22 nets, routed with 72 tracks and 0 vias.

Its parts include 8 resistors, 5 connectors, 4 ICs and 4 diodes. It belongs with the sensors and measurement and interfaces and adapters boards of this library.

README

README.md

Water-Flow Sensor Interface Module

License: CC BY 4.0 KiCad

A 4-channel, opto-isolated interface board that adapts 5 V flow-meter sensors to the 24 V digital inputs of an industrial PLC. Built for a smart-water-dispenser retrofit, it lets the PLC count pulses from hall-effect flow sensors safely and without ground coupling.

📷 Board photo coming soon. An interactive 3D render is included at modelos3D/mod_sensor_agua.glb (GitHub renders .glb in the browser — click to rotate).

Overview

The dispenser's flow meters output pulse trains at 5 V, but the PLC's digital inputs expect 24 V logic and must stay galvanically isolated from field wiring. This board bridges the two domains with one PC817 optocoupler per channel: the sensor side drives the opto LED through a current-limiting resistor, and the PLC side pulls a clean 24 V-referenced signal — with an indicator LED per channel for quick visual confirmation that pulses are arriving.

Four independent channels let a single board service all of a machine's flow points. Sensor inputs use keyed JST-XH connectors; power and PLC-side signals land on Phoenix-style terminal blocks for field wiring.

This is the sensor-interface PCB referenced in the Smart Water Dispenser portfolio project.

Key Specs

Function5 V → 24 V opto-isolated pulse interface
Channels4 (independent)
IsolationOptocoupler per channel (PC817)
Sensor input5 V hall-effect flow meters, JST-XH 3-pin
PLC output24 V digital inputs
IndicationStatus LED per channel
WiringPhoenix terminal blocks (power + signal)
ConstructionThrough-hole (THT), hand-solderable

Bill of Materials

Ref(s)ValueQtyNotes
U1–U4PC8174Optocoupler, DIP-4
R1, R3, R5, R73 kΩ4Opto LED current limit (sensor side)
R2, R4, R6, R8100 kΩ4PLC-side pull
D1–D4LED4Per-channel status indicator
J2–J5JST-XH 3-pin4Flow-sensor inputs
J1Terminal block 2-pin1Supply
E1–E4Terminal block 2-pin4PLC-side signal out

A machine-generated CSV is in docs/bom.csv.

Repository Layout

text
mod_sensor_agua.kicad_pro / .kicad_sch / .kicad_pcb   KiCad source (schematic + layout)
docs/water-flow-sensor-schematic.pdf                   Schematic (PDF)
docs/bom.csv                                            Bill of materials
fab/…-gerbers.zip                                       Gerbers + drill (fabrication)
modelos3D/mod_sensor_agua.glb                           Interactive 3D board render

Manufacturing

The fab/ folder contains a ready-to-send Gerber + drill package. Open the KiCad project to regenerate outputs or modify the design (KiCad 8+).

License

Hardware design files are released under Creative Commons Attribution 4.0 International (CC BY 4.0). You may share and adapt the design, including commercially, as long as you give appropriate credit.


Designed by Tomás Ospina.

Parts

30
QtyValueFootprintReferences
4100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R4, R6, R8
43kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R3, R5, R7
4CTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalE1, E2, E3, E4
4LEDLED_THT:LED_D3.0mmD1, D2, D3, D4
4PC817Package_DIP:DIP-4_W7.62mmU1, U2, U3, U4
4S_InConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ2, J3, J4, J5
1LOGOLogo:LogotomasG***
1SupplyTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalJ1

The 26 most common of 30 parts.

Questions

How big is the Mod sensor agua PCB?

It measures 41.5 × 60.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Mod sensor agua use?

30 parts. 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 Mod sensor agua KiCad files?

From the TomasOsP/water-flow-sensor-module repository on GitHub, at the commit this page was made from: the board is mod_sensor_agua.kicad_pcb and its schematic mod_sensor_agua.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mod sensor agua 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).

Similar boards

  • 2 layers52.2 × 52.2 mmBase promicro, the printed circuit board in 3D

    Base promicro

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    30 parts3kApache-2.0
  • 2 layers40.6 × 15.2 mmVr mmm, the printed circuit board in 3D

    Vr mmm

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    30 parts1.2k
  • 2 layers270 × 11 mmDaylight, the printed circuit board in 3D

    Daylight

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    30 parts1.1kGPL-3.0
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

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

    30 parts1kGPL-3.0
  • 2 layers40.5 × 58 mmInitial v, the printed circuit board in 3D

    Initial v

    tenderlove/initial-v

    It's a BMW shifter converted to a Bluetooth Keyboard that you use with Vim

    30 parts1kApache-2.0
  • 2 layers34.3 × 41.8 mmMotionCubeViewAllForces, the printed circuit board in 3D

    MotionCubeViewAllForces

    hackclub/OnBoard

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

    30 parts915
  • 2 layers57.4 × 62 mmPicoWS2812, the printed circuit board in 3D

    PicoWS2812

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    30 parts765
  • 2 layers52.1 × 46.8 mmFIRE TEST PANEL, the printed circuit board in 3D

    FIRE TEST PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    30 parts431