

AquariumSensor
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
3WEMOS D1 MINI
A mini wifi board with 4MB flash based on ESP-8266EX, hardware version 4.0.0.LolinUncategorisedDHT11
SIP-4-20℃~+60℃ 1mA 3.3V~5.5V 5%RH~95%RH ±2℃ ±5%RH SIP-4 Temperature and Humidity Sensor ROHSAosong ElecTemperature And Humidity SensorDS18B20
TO-92-55℃~+125℃ 12bit 3V~5.5V 750ms Single-bus ±0.4℃ TO-92 Temperature Sensors ROHSUMWTemperature Sensors
README
README.mdESP-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
| Component | Pin | Connection |
|---|---|---|
| TDS Sensor (KS0429) | A0 | Analog output |
| 1-Wire Sensor (DS18B20) | D2 | 1-Wire digital protocol |
| DHT Sensor (DHT11/DHT22) | D4 | Digital signal |
| Reed Switch 1 | D6 | Digital input |
| PIR Motion Sensor | D7 | Digital input |
| Water Flow Sensor (YF-S201) | D5 | Pulse counting |
| Reed Switch 2 | D8 | Digital 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.
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 updatesBoard Renderings
Front

Back

Defects
| Issue | Affected | Resolved |
|---|---|---|
| Reversed polarity on DC Jack J3 | v1.0 | v1.1 |
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 10kΩ | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3, R4 |
| 2 | 4.7kΩ | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2 |
| 2 | SW_Reed | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_Horizontal | SW1, SW2 |
| 1 | AM312_breakout | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | U4 |
| 1 | Barrel_Jack | Connector_BarrelJack:BarrelJack_Horizontal | J3 |
| 1 | Conn_KS0429 | Connector_JST:JST_EH_B3B-EH-A_1x03_P2.50mm_Vertical | J2 |
| 1 | Conn_YF_S201 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_Horizontal | J1 |
| 1 | DHT11 | Sensor:Aosong_DHT11_5.5x12.0_P2.54mm | U3 |
| 1 | DS18B20 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_Horizontal | U2 |
| 1 | WeMos_D1_mini | Module:WEMOS_D1_mini_light | U1 |
Similar boards
- 2 layers172.5 × 66 mm

- 2 layers60 × 50 mm

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 mm

- 2 layers52.3 × 52.7 mm

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 layers

Stupid solar thing
rwlloyd/stupid-solar-thing
Solar powered Wifi Sensor Based on ESP8266 microcontroller
11 parts1 - 2 layers199.4 × 50.8 mm

Nixie board
vascofazza/cloxie_nixie_clock
Schematics and code for Cloxie: my Nixie Tube Clock.
85 parts17GPL-3.0 - 2 layers120.6 × 29 mm

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 mm

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).