Why Sensor Reliability Matters in Automatic Water Dispenser PCBs
Automatic water dispensers are widely used in public places such as offices, schools, hospitals, and transportation hubs. The reliability of the sensor control PCB (Printed Circuit Board) directly affects user experience, safety, and product lifespan. Sensor malfunction not only leads to false alarms or failure to dispense water, but also increases after-sales costs and damages brand reputation.
This article presents a real PCBA failure analysis case for an automatic water dispenser. By combining PCB design optimization, structural improvement, and SMT process control, the issue was successfully resolved.
1. Product Overview: Automatic Water Dispenser Sensor Control Project
1.1 Product Type
Automatic water dispenser with sensor-based control system.
1.2 Product Function
The product is designed for public environments and supports:
- Automatic water dispensing when a cup is detected
- Automatic water stop when the cup is full
- Hot water usage monitoring
- Cup count and water output statistics
All functions rely on a stable and accurate sensor control PCB assembly (PCBA).
2. System Architecture and PCB Control Method
2.1 Main Control IC
The core controller of the system is PIC16F18855-I/SO, which manages:
- External circuit control
- Sensor signal acquisition
- Data processing and counting logic


Through embedded firmware programming, the MCU enables:
- Cup placement detection
- Automatic water discharge
- Full-cup stop logic
- Usage statistics collection
2.2 Sensor Components on the PCB
The sensor subsystem integrates:
- VSMF2890RGX01: High-speed infrared emitting diode
- VCNL4020X01-GS08: Proximity and ambient light sensor


These components form the core sensing circuit on the sensor PCB, enabling short-distance object detection and environmental compensation.
3. PCBA Structure and Mechanical Assembly Description
The PCBA system consists of:
- Main control PCB
- Sensor sub-board (sensor PCB)
- External housing and shading module

The sensor PCB is installed behind a shading cover and aligned with a front detection window. Mechanical tolerance and PCB assembly accuracy play a critical role in sensing performance.
4. Failure Phenomenon Description
After power-on, the following abnormal behavior was observed:
- Device fails to enter standby-ready state
- Green indicator LED does not turn on
- Red alarm LED remains active
However, when a cup is manually placed in the water dispensing area, the system immediately switches to the ready state and the green LED lights up.
After cross-testing and board swapping, the issue was isolated to the sensor PCB assembly, confirming it as the root cause.

5. Root Cause Analysis and PCB-Level Solutions
5.1 Infrared LED (LD1) Placement Offset on PCB
Problem Analysis
Inspection revealed that the infrared LED (LD1) was not centered in the PCB through-hole. The LED showed lateral displacement after reflow soldering.
Further analysis showed:
- PCB pad size was larger than recommended in the component datasheet
- During solder paste printing and reflow, surface tension caused the LED to shift
- Misalignment resulted in deviation between the sensor emitter and the shading cover
- Infrared signal path was partially blocked, reducing sensing accuracy

PCB Design Optimization Solution
- PCB land pattern was redesigned according to the datasheet
- Pads on both sides were reduced by 0.2 mm inward
- Reflow stability was significantly improved
After PCB modification, component placement accuracy improved and sensor consistency increased. However, intermittent standby failures still occurred, indicating additional contributing factors.
5.2 Mechanical Interference Between PCB and Housing Structure
Problem Analysis
During assembly inspection, the following issues were identified:
- Electrolytic capacitor leads were excessively long after manual soldering
- Capacitor pins interfered with the plastic housing
- Sensor PCB could not sit flush against the shading module
- PCB was installed at a slight tilt angle, reducing effective detection range


Structural and Assembly Improvement Measures
- Assembly Process Control
- Strictly limit retained lead length during soldering
- Enforce IPC-compliant lead trimming standards
- Mechanical Design Modification
- Redesign the sensor module housing
- Add a dedicated recessed slot for the electrolytic capacitor
- Ensure the PCB and shading cover fit tightly without obstruction


After structural optimization, false sensor failures were effectively eliminated. The overall product pass rate increased to over 90% during functional testing.
5.3 SMT Stencil Thickness Causing IC Solder Bridging
Failure Description
The remaining ~10% failure rate was traced to abnormal behavior during testing. AOI inspection revealed solder bridging on IC U1 pins.
Root Cause Investigation
- Solder paste storage and handling were verified and found compliant
- Post-print inspection showed excessive solder volume
- Solder paste thickness measurement averaged 0.15 mm
Given that:
- The PCB contained no large components
- IC pin pitch was relatively fine
A 0.15 mm stencil thickness was determined to be excessive.
SMT Process Optimization Solution
- New stencil fabricated with 0.12 mm thickness
- Solder paste volume significantly reduced
- Reflow soldering defects eliminated
Updated internal guidelines were established:
- No large components: stencil ≤ 0.12 mm
- IC pitch < 0.5 mm or Mini-BGA designs: stencil ≤ 0.10 mm
- Stencil thickness must match PCB layout and component density
6. Results and Lessons Learned for PCB Assembly Projects
Through combined improvements in:
- PCB footprint design
- Mechanical structure compatibility
- SMT stencil and solder paste control
The sensor malfunction issue was fully resolved. The project highlights the importance of holistic PCBA engineering, where electrical design, mechanical structure, and manufacturing processes must be optimized together.
Partner with a Professional PCB & PCBA Manufacturer
Sensor-related failures in automatic equipment are often caused by subtle PCB design or assembly details. Choosing an experienced PCB and PCBA manufacturing partner can help identify risks early and reduce costly revisions.
If you are developing or manufacturing:
- Sensor control PCBs
- Automatic dispenser electronics
- Industrial or consumer electronic assemblies
Contact us today to discuss your project requirements. Send us your Gerber files or BOM, and our engineering team will provide professional PCB fabrication, PCBA assembly, and DFM optimization support.
We look forward to supporting your next electronics project.