1. First recognize the problem: raw sensor values cannot be turned directly into app numbers

In water purifiers, water dispensers, coffee machines, smart water bottles and pet water dispensers that use conductivity/TDS as the detection basis, a common misconception often appears: pass the raw values read from the probe or interface chip straight through to the cloud, and the app simply displays a number. In fact, conductivity changes with water temperature; the same water sample may read very differently at 10°C and 35°C; bubbles on the probe surface, water flow fluctuations, assembly structure and cable capacitance all introduce short-term jumps. If the device does not perform temperature compensation, unit conversion and status labeling, the "TDS suddenly rising" shown in the app may well be an illusion caused by lower water temperature or bubbles.

Therefore, the design goal of the water quality data link for smart water appliances is: upload the "interpretable measured values" that have undergone temperature correction, unit conversion and timestamp alignment inside the device, rather than exposing the raw ADC or conductivity frequency directly to the user. AtomBit's BA121 and BA234 interface ASICs can complete preprocessing such as conductivity detection, automatic temperature correction and bipolar probe excitation on the sensor side, significantly reducing the parsing burden on the upper-layer MCU and app.

2. Data link layering: the ASIC as a trusted preprocessing node

It is recommended to divide the link into five layers: probe, interface ASIC, MCU/communication module, cloud platform and app. The responsibility of each layer must be clear; otherwise anomalies will propagate across layers.

LayerMain responsibilityAtomBit-related capabilities
ProbeContacts the water path to form a stable measurement structureCompact probe, customizable by structure, wiring harness and interface
Interface ASICProbe excitation, sampling, temperature correction, outputBA121 single-channel conductivity/water temperature, automatic temperature correction, bipolar probe drive; BA234 single-channel dual-probe, automatic NTC compensation, UART digital output
MCU/moduleFiltering, unit conversion, state machine, timestamps, communication protocolImplemented by product firmware
Cloud/AppAggregation, trends, anomaly interpretation, reminders, privacy controlsDesigned by the product team

BA121 is aimed at compact smart water products, featuring minimal external components and automatic temperature correction, and is suitable for space-constrained products such as water purifiers, smart water bottles and pet water dispensers.BA234 provides automatic NTC temperature compensation, bipolar pulse excitation, simple control commands and 9600 bps UART digital output on the basis of single-channel dual-probe measurement, and is suitable for products such as water dispensers and coffee machines that need quick UART integration.In actual selection, the probe structure, water path location and host interface must also be confirmed; chip parameters alone are not enough.

3. App data model: design the six elements clearly

1. Data units

Conductivity is usually expressed as μS/cm, and temperature as °C. TDS is generally converted from conductivity using an empirical coefficient into mg/L (or ppm); it is not a direct weighing of all dissolved solids in the water and can only serve as a trend reference. It is recommended that the App explicitly use wording such as "approximately xx mg/L, estimated based on conductivity", do not mix μS/cm with TDS ppm, and do not create the misunderstanding for users that "this number is the laboratory total dissolved solids".

2. Timestamps and sampling

A device's local RTC is often unreliable due to power loss or lack of network synchronization. It is recommended to use the cloud receive time as the primary timestamp; when the device reports, it should carry the device serial number, a relative sequence number, and the sampling time; when re-uploading after a network outage, sort by relative sequence number and then align uniformly on the cloud side. Frequent reporting of raw values is meaningless; it is recommended that the device side first perform a moving average or median filter, then report stable values at a period of 1–5 minutes, and aggregate historical trends by hour/day.

3. Status and anomalies

Do not mix status into values. It is recommended to define an independent state enumeration, for example: 0 normal, 1 maintenance recommended/filter warning, 2 sensor anomaly, 3 out of range. Anomalies can be distinguished using a warn bitmask: temperature compensation failure, probe dry, calibration expired, rapid jumps, etc. After the App receives an anomaly, it should provide an actionable natural-language prompt, for example "the probe may have scale buildup; please clean it and recalibrate", rather than only displaying an error code.

4. Historical trends

Plotting high-frequency raw data directly as curves will cause users to misinterpret it. It is recommended that the App display moving averages, time-segmented aggregation, or level ranges; express filter life using remaining days and percentage, rather than directly triggering "filter failure" from a single-point TDS jump. Trend pages should be marked "estimated on the device side, for maintenance reference".

5. Privacy and minimization

The water quality data pipeline should not collect permissions unrelated to water quality. In principle, only upload the device serial number, firmware version, necessary sensor readings, status, and anomaly codes. Do not collect unrelated information such as precise location, contacts, or microphone; if an account system is involved, provide data deletion and authorization withdrawal. Cloud-side retention policies and purposes should be explained in the privacy policy, and user water quality data should not be used for advertising profiling.

6. User comprehensibility

The App should not display raw μS/cm, ADC, or internal register values. Convert them into levels users can understand: normal/attention needed/maintenance needed, with a brief explanation. For example: "TDS trend is stable, filter has 30 days remaining" is more suitable for home scenarios than only displaying "TDS 125".

BA121 Conductivity Sensor Interface ASIC
BA121 product physical unit and integration reference

A minimal uplink field design can be defined as follows:

FieldUnit/TypeRecommendation
tsms epochBased on cloud receive time; device retransmissions carry a relative sequence number
condμS/cm25°C temperature-compensated value
tdsmg/LEstimated value converted from conductivity; the App labels it as a trend reference
temp°CUsed to compensate the display and to judge anomalies
stateenum0 Normal, 1 Maintenance, 2 Sensor fault, 3 Over range
warnbitmaskTemperature compensation failure, dry probe, expired calibration, etc.
sequintIncremented within the device, used for deduplication and retransmission ordering

IV. Selection and integration steps for smart small home appliances

Selection judgment

  • If the product form factor is very compact and the main controller already has analog or simple communication capability, BA121's automatic temperature correction, bipolar probe drive and minimal external component characteristics can help eliminate a complex analog front end; however, before integration, its output interface should be confirmed against the main controller through official documentation.
  • If you want the ASIC to directly provide UART digital output and reduce the MCU's excitation/sampling/temperature correction code, BA234 is a more direct candidate; its 9600 bps UART and simple commands are suitable for rapid prototyping and mass-production maintenance.

Implementation steps

  1. Clarify detection goals and boundaries : Confirm that the product only provides trend indication, filter life reminders and water temperature feedback, and does not perform laboratory compliance or medical judgment.
  2. Confirm probe and water path structure : Water purifiers/water dispensers/coffee machines/water cups/pet water fountains differ greatly in water path flow rate, temperature, bubbles and installation space; AtomBit OEM/ODM compact probes and structural harness customization should be used to avoid flow resistance, residue or unstable signals caused by general-purpose probes.
  3. ASIC integration and calibration : Design the schematic according to the interface definition of the selected BA121 or BA234; calibrate with multi-point standard solutions covering the range, and perform temperature cycling to verify automatic compensation. Note that calibration coefficients need to be written into the product firmware, and must not simply be multiplied by a coefficient on the App side.
  4. Firmware and communication protocol : Implement unit conversion, filtering, state machine, timestamps, serial numbers and exception bits; use a stable JSON or binary protocol for uplink to ensure field backward compatibility.
  5. App/cloud adaptation : Define fields, hierarchy, trends and privacy rules according to Chapter 3; provide test stubs and simulated data to facilitate early development integration.
  6. Mass-production verification : Sample inspection for reading consistency, long-term drift, communication stress, exception injection and user comprehension testing.

V. Verification methods and acceptance criteria

Verification itemMethodPass condition
Reading accuracyTest using at least 3 standard conductivity solution points covering the rangeThe deviation after temperature compensation is within the product-defined error
Temperature compensationMeasure the same standard solution during an 5–45°C temperature cycleThe fluctuation of the compensated reading does not cause misgrading in the App
Long-term driftSimulate the filter element lifecycle and run continuous immersionDrift is within an acceptable range, and the App provides cleaning/calibration prompts
Communication reliabilitySimulate offline reconnection, out-of-order retransmission, and duplicate reportingTimestamps and serial numbers are correctly deduplicated, with no duplicate curves
Fault injectionDisconnected probe, short circuit, over-range, NTC faultApp status and alert text match the design
User understandingNon-technical users view the trend page and restate its meaningCorrectly judge normal/needs maintenance, without misreading transient fluctuations

VI. Limitations and engineering boundaries

Conductivity/TDS is a proxy indicator for the total amount of ions in water, not an identification of pollutant types, and it cannot directly derive the concentration of bacteria, heavy metals, pesticide residues or disinfection by-products. BA121 and BA234 are conductivity/temperature detection interface devices and cannot replace laboratory analysis or regulatory testing. If a product also integrates optical water-quality sensing, the optical channel should be treated as an independent trend dimension, and device data should not be directly labeled as COD/TOC/UV254 laboratory values. The App should not display unverified conclusions such as "certified for direct drinking" or "sterilization rate xx%"; all reminders should state "device estimate, for maintenance reference only."

VII. FAQ

1. Can BA121 and BA234 directly output TDS? cannot. Documentation shows that BA121 provides conductivity and water temperature detection with automatic temperature compensation; BA234 provides single-channel dual-probe measurement, NTC compensation and UART output. TDS is an estimated value converted from conductivity at the upper layer, not a statutory parameter directly output by the chip.

2. The device's local time is unreliable; how should timestamps be handled? uses the cloud receive time as the primary timestamp, and the device carries only a relative sequence number and sampling interval; during offline retransmission, the cloud sorts by sequence number and receive time to avoid disorder.

3. What should users do if they see TDS suddenly rise? The App should not warn immediately. First check temperature, status and exception bits; if there is no abnormality and it is only a short-term jump, display it according to the aggregated trend and give a prompt to "continue observing" or "check the probe for bubbles/scale."

4. 如何避免把实验室结果和家用设备混淆? 在产品文案和 App 界面都使用“趋势参考”“设备估算”等限定语,不显示“检测报告”“合规值”等暗示实验室结果的字样。

5. 集成 BA234 时 UART 协议要注意什么? 根据资料,BA234 提供 9600 bps UART 和简单控制命令,但产品侧仍需要定义状态机、超时重试、异常码和版本兼容,不能只靠默认命令完成完整水质功能。

Conclusion

水质传感器数据接入智能家电 App,难点不在“传一个数”,而在于把物理量、温度修正、设备状态和时间上下文组合成用户能理解、产品能维护、隐私可控制的完整数据链路。利用 BA121 或 BA234 等接口 ASIC 把电导率检测和温度修正做在设备前端,再在 MCU 和云端统一单位、时间戳、状态、异常、趋势和隐私规则,才能让净水器、饮水机、咖啡机、智能水杯和宠物饮水机的水质功能既不吓到用户,也不误导用户。