Skip to the content
2 layers60.1 × 31.8 mmPCB Design, the printed circuit board in 3D

A standalone smart water bottle that tracks daily water consumption using a ToF sensor and IMU-based motion detection. Supports goal-based or continuous tracking, accurate even beyond the bottle’s capacity, with OLED display, touch interface, and SMD PCB design.

Size
60.1 × 31.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
51
Nets
46
Pads
161
Tracks, vias
296, 39
Pours
5
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
27 Jan 2026
Updated
30 Jan 2026

Overview

PCB Design is an open-source printed circuit board by SarusanS, from the SarusanS/Smart-Water-Bottle repository on GitHub. It is a 2-layer board of 60.1 × 31.8 mm with 51 parts on 46 nets, routed with 296 tracks and 39 vias.

It is built around the BMI270, DW01A and LM393, with the TP4056-42-ESOP8, AO3400A and FS8205A among its other parts. Its parts include 18 resistors, 14 connectors, 9 capacitors, 5 ICs and 3 diodes. It belongs with the sensors and measurement and lEDs and displays boards and the ESP32 and RISC-V boards of this library.

Main components

6

README

README.md

Project Highlight | Product Design – Smart Water Bottle

This project presents a standalone Smart Water Bottle developed as part of a Product Design course, focused on accurate, motion-aware water consumption monitoring under real-world usage conditions such as movement, refilling, and power interruptions.

The system is fully embedded and operates independently without requiring a mobile application, prioritizing reliability, usability, and data integrity.


System Functionality

Water consumption is monitored by tracking changes in liquid level using a VL53L0X Time-of-Flight (ToF) distance sensor. Instead of relying on the absolute bottle capacity, the system calculates consumed volume based on successive stable distance measurements, allowing cumulative tracking across multiple refill cycles.

Even if the physical bottle capacity is limited (e.g., 1 litre), users can configure daily intake goals of 5 L, 10 L, or 15 L. Each refill is automatically detected as an increase in water level, while subsequent decreases are accumulated to compute total consumption over time.
This approach enables continuous and scalable intake monitoring, independent of bottle size.


Motion-Aware Validation

To ensure measurement accuracy, the system integrates a BMI270 Inertial Measurement Unit (IMU) combined with a Madgwick sensor fusion filter.

  • Distance measurements are accepted only when the bottle is upright and stable
  • Tilt, motion, shaking, lifting, and refilling events are detected and filtered out
  • A stability verification delay ensures readings are taken only after motion has fully stopped

This motion-aware logic prevents false volume calculations and significantly improves measurement reliability during daily use.


Floating Reflective Marker for Accurate Measurement

To overcome the challenges of measuring water level in transparent containers, a floating reflective marker is used:

  • A small floating rubber disc is placed directly on the water surface
  • The ToF sensor reflects off the rubber surface instead of the water itself
  • This avoids errors caused by ripples, bubbles, refraction, or transparent bottle walls

As the marker naturally follows the water surface, the system achieves consistent and repeatable distance measurements, which are converted into volume through firmware-level calculations.


Operating Modes

Mode 1 – Goal-Based Tracking

  • User-configurable daily intake goal
  • Tracks daily water consumption
  • Automatically resets every 24 hours
  • Stores previous day’s consumption for reference

Mode 2 – Continuous Tracking

  • No predefined intake goal
  • Tracks total consumption continuously
  • Manual reset via touch-based confirmation
  • Suitable for long-term or unrestricted monitoring

User Interface and Interaction

  • Touch-based input supports display wake-up, goal setting, mode switching, and reset confirmation
  • OLED display presents real-time information including:
    • Water consumption
    • Daily goal status
    • Operating mode
    • Battery voltage
    • Time and date
  • Automatic display sleep minimizes power consumption

Touch Gesture Instructions

The system uses a capacitive touch interface to provide intuitive, button-less user interaction. Different tap patterns are interpreted by firmware to trigger specific actions.

GestureAction
Single TapIncrement value during goal or setting configuration
Double TapWake the display or confirm a selection
Triple TapSwitch between operating modes (Goal-Based / Continuous)
Long InactivityAutomatically puts the display into sleep mode

Touch input is debounced and time-window validated in firmware to prevent false triggers and ensure reliable gesture detection.


Power and Battery Management

  • Battery voltage is monitored in real time using the ESP32 ADC
  • Status is displayed directly on the OLED interface
  • Safe charging is handled externally via a dedicated battery charging circuit
  • Persistent storage ensures data integrity across power cycles, supporting portable operation

Hardware and PCB Design

  • Custom SMD-based PCB designed for compact, reliable, and production-ready assembly
  • Optimized component placement for:
    • Distance sensor
    • IMU
    • OLED display
    • Power management circuitry
  • Designed to support robust, portable, and scalable product deployment

Data Integrity and Reliability

  • All critical parameters and usage data are stored in non-volatile flash memory (ESP32 NVS)
  • Seamless recovery after unexpected power loss
  • Noise-filtered distance averaging and outlier rejection improve measurement accuracy

Technology Stack

  • Microcontroller: ESP32
  • Sensors: VL53L0X ToF Sensor, BMI270 IMU
  • Sensor Fusion: Madgwick Filter
  • Display: SSD1306 OLED
  • Input: Touch Interface
  • Storage: ESP32 Non-Volatile Storage (NVS)
  • Hardware: Custom SMD PCB Design

Learning Outcomes

This project significantly strengthened my skills in:

  • Embedded firmware development
  • Sensor fusion and motion-aware measurement
  • Robust signal processing for real-world conditions
  • Power-aware system design
  • SMD PCB design and hardware integration
  • User-centric embedded product development

Parts

51
QtyValueFootprintReferences
7Conn_01x01_PinTestPoint:TestPoint_Pad_D1.5mmJ3, J4, J19, J22, J23, J24, J25
6100nCapacitor_SMD:C_0603_1608MetricC2, C4, C5, C6, C7, C8
4100kResistor_SMD:R_0402_1005MetricR1, R7, R8, R11
310uCapacitor_SMD:C_0603_1608MetricC1, C3, C9
3220Resistor_SMD:R_0603_1608MetricR14, R15, R16
3Conn_01x01_PinTestPoint:TestPoint_Pad_1.5x1.5mmJ8, J18, J21
21kResistor_SMD:R_0603_1608MetricR17, R18
22k2Resistor_SMD:R_0402_1005MetricR9, R10
2Conn_01x01_PinTestPoint:TestPoint_Pad_D1.0mmJ9, J12
1100Resistor_SMD:R_0402_1005MetricR5
110kResistor_SMD:R_0603_1608MetricR13
1150Resistor_SMD:R_0603_1608MetricR12
11kResistor_SMD:R_0402_1005MetricR6
12kResistor_SMD:R_0402_1005MetricR4
12k2Resistor_SMD:R_0603_1608MetricR2
182kResistor_SMD:R_0603_1608MetricR3
1AO3400APackage_TO_SOT_SMD:SOT-23Q1
1BMI270Package_LGA:Bosch_LGA-14_3x2.5mm_P0.5mmU5
1Battery_ConnectorTestPoint:TestPoint_2Pads_Pitch5.08mm_Drill1.3mmJ1
1Conn_01x01_PinTestPoint:TestPoint_Pad_1.0x1.0mmJ7
1DW01APackage_TO_SOT_SMD:SOT-23-6U4
1ESP32_C3_SuperMiniMyLibrary:ESP32_C3_SuperMiniU6
1FS8205AMyLibrary:FS8205AQ2
1GREEN_LEDLED_SMD:LED_0805_2012MetricD3
1LED_BGKRLED_THT:LED_D5.0mm-4_RGB_Wide_Pins_Bend_HorizontallyD4
1LM393Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1RED_LEDLED_SMD:LED_0603_1608MetricD2
1TP4056-42-ESOP8Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mmU3

Similar boards

  • 2 layers43 × 43 mmNew version, the printed circuit board in 3D

    New version

    Robopoly/Kit-Botanique

    76 parts
  • 2 layers75 × 49 mmEsp32 node .kicad sch, the printed circuit board in 3D

    Esp32 node .kicad sch

    Salma-lotfy-Wazery/esp32-battery-powered-iot-node

    Custom 2-layer PCB designed in KiCad featuring ESP32, integrated LiPo charging (TP4056), USB-C power delivery, and sensor telemetry.

    50 parts
  • 2 layers60 × 111.3 mmSilkscreen pcb, the printed circuit board in 3D

    Silkscreen pcb

    iandchasse/silkscreen-pcb

    Silkscreen: open-hardware ESP32-S3 e-paper reader mainboard (KiCad 9). Formerly the de-link hub.

    189 parts589CERN-OHL-S-2.0
  • 2 layers61 × 61 mmESP32 FC, the printed circuit board in 3D

    ESP32 FC

    MAATHES-THILAK-K/ESP32-S3_FLIGHT_CONTROLLER

    A custom-designed flight controller based on the ESP32-S3 module, built for compatibility with the esp-fc firmware and Betaflight-like configuration.

    69 parts7Apache-2.0
  • 2 layers51.1 × 95 mmTalk e, the printed circuit board in 3D

    Talk e

    milovanpms/talk-e

    📻 — A simple LoRa-based talkie-walkie built on ESP32, operating on the 433 MHz frequency band for long-range, low-power wireless communication.

    75 parts4
  • 2 layers80 × 34 mmDji fcc, the printed circuit board in 3D

    Dji fcc

    nikolaus018/dji-fcc-esp32

    ESP32-S3 firmware that switches a DJI N1 remote to FCC mode over USB (replaces the Android app)

    69 parts3MIT
  • 2 layers30 × 25 mmProject2, the printed circuit board in 3D

    Project2

    devKOff/pcb-lipo-power-management-system

    An integrated PCB power management system for single-cell Li-Po batteries featuring onboard charging, circuit protection, and a DC-DC boost converter with selectable 5V and 12V DC outputs.

    28 parts2
  • 2 layers102.6 × 102.6 mmMini robot2, the printed circuit board in 3D

    Mini robot2

    eliasmonzon/pcb

    circuitos_electronicos

    67 parts1

Questions

How big is the PCB Design PCB?

It measures 60.1 × 31.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PCB Design use?

51 parts, built around the BMI270, DW01A, LM393 and TP4056-42-ESOP8. 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 PCB Design KiCad files?

From the SarusanS/Smart-Water-Bottle repository on GitHub, at the commit this page was made from: the board is PCB_Design/PCB/PCB.kicad_pcb and its schematic PCB_Design/PCB/PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PCB Design design in my own project?

Its repository states no licence, so its author keeps all rights: ask SarusanS before reusing the design.