Skip to the content
2 layers42 × 60 mmAquariumSensor, the printed circuit board in 3D

A simple water flow and quality sensor for aquariums based on ESP controller

Size
42 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
17
Pads
57
Tracks, vias
145, 0
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
6 Oct 2024
Updated
9 Oct 2024

Overview

AquariumSensor is an open-source printed circuit board by mitchins, from the mitchins/ESP-Aquarium-Water-Sensor repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 42 × 60 mm with 13 parts on 17 nets, routed with 145 tracks and 0 vias.

It is built around the WEMOS D1 MINI, DHT11 and DS18B20. Its parts include 4 resistors, 4 ICs, 3 connectors and 2 switches. It belongs with the sensors and measurement boards and the ESP8266 boards of this library.

Main components

3

README

README.md

ESP-Aquarium-Water-Sensor

A simple water flow and quality sensor for aquariums based on ESP controller. This board helps measure the quality of the water and its parameteres in real-time, such that alerts and graphs can be setup.

The device is conveniently be powered off usb and provides a wifi connection for ease of connection. The core of this device is the ubiquitous Wemos D1 Mini, which is easily available and low cost. It has a modular list of external sensors, however if for whatever reason your application does not require it, they can be omitted.

Features

  • Measure the water flow rate (via YF-S201)
  • Measure total dissolved solids (TDS) for water quality (via KS0429)
  • Measure the internal water temperature (via DS18B20 probe)
  • Respond to switch inputs (reed, contact or button) with 10K pull-up.
  • Monitor board/enclosure/cabinet temperature and humidity (onboard DHT-11)

Peripheral Connections

ComponentPinConnection
TDS Sensor (KS0429)A0Analog output
1-Wire Sensor (DS18B20)D21-Wire digital protocol
DHT Sensor (DHT11/DHT22)D4Digital signal
Reed Switch 1D6Digital input
PIR Motion SensorD7Digital input
Water Flow Sensor (YF-S201)D5Pulse counting
Reed Switch 2D8Digital input

Software

The primary software consideration for this use case is ESPHome. All of the functions provided are common and turnkey and thus no code is required to be written or debugged.

ESPHome

The best way to use ESPhome is through Home Assistant, if you have that then goto the add-ons section and install it. You can still use ESPHome manually without Home Assistant by following the latest guide here

Example ESPHome Configuration:

Please note, this configuration is currently untested until the PCB arrives.
YAML
esphome:
  name: aquarium_monitor
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "your_wifi_ssid"
  password: "your_wifi_password"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Aquarium Monitor Fallback"
    password: "fallback_password"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "your_api_password"

# Enable over-the-air updates

Board Renderings

Front

Front rendering

Back

Back rendering

Defects

IssueAffectedResolved
Reversed polarity on DC Jack J3v1.0v1.1

Parts

13
QtyValueFootprintReferences
210kΩResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3, R4
24.7kΩResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2
2SW_ReedTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalSW1, SW2
1AM312_breakoutConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalU4
1Barrel_JackConnector_BarrelJack:BarrelJack_HorizontalJ3
1Conn_KS0429Connector_JST:JST_EH_B3B-EH-A_1x03_P2.50mm_VerticalJ2
1Conn_YF_S201TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_HorizontalJ1
1DHT11Sensor:Aosong_DHT11_5.5x12.0_P2.54mmU3
1DS18B20TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_HorizontalU2
1WeMos_D1_miniModule:WEMOS_D1_mini_lightU1

Similar boards

  • 2 layers172.5 × 66 mmS3-MK1, the printed circuit board in 3D

    S3-MK1

    ambariz/S3-MK1

    S³-MK1 ( S Cube MK-1) : A Surveillance and Security System.

    27 parts
  • 2 layers60 × 50 mmPeerhof Uni cc1101, the printed circuit board in 3D

    Peerhof Uni cc1101

    jnissen/CC101

    ESP MCU with CC1101 868 MHz Wireless Funk Modul Transciever

    21 partsCERN-OHL-W-2.0
  • 2 layers52.8 × 71.4 mmAqa 2019, the printed circuit board in 3D

    Aqa 2019

    unloquer/aqa_sta_hardware

    Mediciones ciudadanas de la calidad del aire

    15 parts
  • 2 layers52.3 × 52.7 mmIplanter, the printed circuit board in 3D

    Iplanter

    vineethjkatti-tech/iplanter

    iplanter is a smart planter which uses moisture and temperature sensor to display the health of the plant on an OLED display.

    5 parts
  • 2 layersStupid solar thing, the printed circuit board in 3D

    Stupid solar thing

    rwlloyd/stupid-solar-thing

    Solar powered Wifi Sensor Based on ESP8266 microcontroller

    11 parts1
  • 2 layers199.4 × 50.8 mmNixie board, the printed circuit board in 3D

    Nixie board

    vascofazza/cloxie_nixie_clock

    Schematics and code for Cloxie: my Nixie Tube Clock.

    85 parts17GPL-3.0
  • 2 layers120.6 × 29 mmPillPCB, the printed circuit board in 3D

    PillPCB

    andreq/iSpindel-Gravitymon-Pill-PCB

    A PCB used to build an iSpindel or GravityMon hydrometer that fit into a *popular brand* Pill casing instead of a PETling container

    13 parts8GPL-3.0
  • 2 layers44.8 × 64.8 mmBD35F FridgeController, the printed circuit board in 3D

    BD35F FridgeController

    AK-Homberger/BD35F-FridgeController

    An electronic thermostat for a Danfoss/Secop BD35F Compressor with ESP8266.

    10 parts7GPL-3.0

Questions

How big is the AquariumSensor PCB?

It measures 42 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AquariumSensor use?

13 parts, built around the WEMOS D1 MINI, DHT11 and DS18B20. 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 AquariumSensor KiCad files?

From the mitchins/ESP-Aquarium-Water-Sensor repository on GitHub, at the commit this page was made from: the board is AquariumSensor.kicad_pcb and its schematic AquariumSensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AquariumSensor design in my own project?

Its repository publishes it under the GPL-3.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).