

PCB Design
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
6BMI270
LGA-14(2.5x3)-40℃~+85℃ 1.71V~3.6V 16bit 2KB 3.5uA Accelerometer Gyroscope SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps LGA-14(2.5x3) Accelerometers ROHSBosch SensortecAccelerometersDW01A
SOT-23-6L-40℃~+85℃ 1 2.5V 300mV~10V 3uA 4.3V Protection IC Support SOT-23-6L Battery Management ROHSPUOLOPBattery ManagementLM393
SOP-8-16V~16V 0℃~+70℃ 2 2.5mA 250nA 2V~36V 36V 5mV 5nA Fail-safe function Open-drain SOP-8 Comparators ROHSMSKSEMIComparatorsTP4056-42-ESOP8
ESOP-8-40℃~+85℃ 1 1A 2uA 4.2V 4V~8V Charging IC Lithium Battery Support ESOP-8 Battery Management ROHSTOPPOWERBattery ManagementAO3400A
SOT-23-55℃~+150℃ 1 N-channel 1.45V 1.4W 30V 48mΩ@2.5V 5.7A 50pF 630pF 75pF 7nC@10V N-Channel SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETsFS8205A
SOT-23-6-55℃~+150℃ 1.2V 1.5W 2 N-Channel 20V 31.5mΩ@2.5V 466pF 5.7nC@4.5V 58pF 65pF 6A SOT-23-6 MOSFETs ROHSTECH PUBLICMOSFETs
README
README.mdProject 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.
| Gesture | Action |
|---|---|
| Single Tap | Increment value during goal or setting configuration |
| Double Tap | Wake the display or confirm a selection |
| Triple Tap | Switch between operating modes (Goal-Based / Continuous) |
| Long Inactivity | Automatically 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | Conn_01x01_Pin | TestPoint:TestPoint_Pad_D1.5mm | J3, J4, J19, J22, J23, J24, J25 |
| 6 | 100n | Capacitor_SMD:C_0603_1608Metric | C2, C4, C5, C6, C7, C8 |
| 4 | 100k | Resistor_SMD:R_0402_1005Metric | R1, R7, R8, R11 |
| 3 | 10u | Capacitor_SMD:C_0603_1608Metric | C1, C3, C9 |
| 3 | 220 | Resistor_SMD:R_0603_1608Metric | R14, R15, R16 |
| 3 | Conn_01x01_Pin | TestPoint:TestPoint_Pad_1.5x1.5mm | J8, J18, J21 |
| 2 | 1k | Resistor_SMD:R_0603_1608Metric | R17, R18 |
| 2 | 2k2 | Resistor_SMD:R_0402_1005Metric | R9, R10 |
| 2 | Conn_01x01_Pin | TestPoint:TestPoint_Pad_D1.0mm | J9, J12 |
| 1 | 100 | Resistor_SMD:R_0402_1005Metric | R5 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | 150 | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 1k | Resistor_SMD:R_0402_1005Metric | R6 |
| 1 | 2k | Resistor_SMD:R_0402_1005Metric | R4 |
| 1 | 2k2 | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | 82k | Resistor_SMD:R_0603_1608Metric | R3 |
| 1 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | BMI270 | Package_LGA:Bosch_LGA-14_3x2.5mm_P0.5mm | U5 |
| 1 | Battery_Connector | TestPoint:TestPoint_2Pads_Pitch5.08mm_Drill1.3mm | J1 |
| 1 | Conn_01x01_Pin | TestPoint:TestPoint_Pad_1.0x1.0mm | J7 |
| 1 | DW01A | Package_TO_SOT_SMD:SOT-23-6 | U4 |
| 1 | ESP32_C3_SuperMini | MyLibrary:ESP32_C3_SuperMini | U6 |
| 1 | FS8205A | MyLibrary:FS8205A | Q2 |
| 1 | GREEN_LED | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | LED_BGKR | LED_THT:LED_D5.0mm-4_RGB_Wide_Pins_Bend_Horizontally | D4 |
| 1 | LM393 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | RED_LED | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | TP4056-42-ESOP8 | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm | U3 |
Similar boards
- 2 layers43 × 43 mm

- 2 layers75 × 49 mm

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 mm

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 mm

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 mm

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 mm

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 mm

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 mm

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.