# How a smart water bottle can use a miniature TDS sensing solution

If a smart water bottle only displays water temperature, users will soon regard it as a "Bluetooth-connected thermometer." What truly keeps users opening the App or checking the bottle screen is often lightweight screening of water quality: roughly what is the TDS of this water? Is it suitable for brewing coffee or mixing infant formula? How much filter cartridge life remains? These questions require a TDS sensing solution that is small enough, power-efficient enough, and able to make controlled contact with water.

From the perspectives of product managers, embedded engineers and hardware developers, this article discusses the engineering issues involved in using the AtomBit BA111 and BA311 miniature TDS interface chips in smart water bottles, including size, battery, probe contact, sealing, refresh frequency, display and cleaning. All product capabilities are based on publicly available database materials and do not involve fabricated certifications or experimental data.

1. Why smart water bottles need TDS, rather than a "water quality tester"

TDS (total dissolved solids) is a rough indicator of the total amount of ionic dissolved substances in water. It mainly reflects changes in conductivity and is suitable for judging: the low-ion background of reverse osmosis/distilled water, the relative differences of mineral water/mineralized water, the declining trend of filter cartridge retention effectiveness, and relative changes in ionic strength of water for coffee brewing. However, TDS is not comprehensive water quality testing; it cannot identify bacteria, viruses, types of heavy metals, organic matter or turbidity. TDS measurement in a smart water bottle is consumer-grade screening and trend feedback, not laboratory analysis.

For a smart water bottle, a reasonable product definition is:

  • Provide "low/medium/high TDS" grading or ppm value reference;
  • Combine water temperature and usage history to give prompts such as "recommend replacing the filter cartridge" and "suitable for brewing";
  • Do not claim "safety certification" or "direct drinking water compliance."

2. System composition and the positioning of the AtomBit solution

A usable water bottle TDS sensing subsystem usually includes:

  1. TDS interface chip: BA111 or BA311;
  2. Contact probe: two stainless steel electrodes, embedded into the bottle bottom or lid according to the structural design;
  3. Temperature sensing: water temperature measurement integrated inside the chip;
  4. MCU: reads data via UART or BURST Tx, drives Bluetooth/Wi-Fi and display;
  5. Power management: coin cell, small-capacity lithium battery or wireless charging;
  6. Structure and sealing: waterproof, contamination-resistant and corrosion-resistant around the probe.

Among them, BA111 is a single-channel TDS and water temperature measurement ASIC that provides a 0–3000 ppm TDS measurement range, TDS temperature correction, bipolar drive to reduce probe polarization, minimal external circuitry, and is controlled via UART. BA311 is a miniature TDS interface ASIC in a SOT23-6 package, also 0–3000 ppm, featuring an automatic 300 ms measurement cycle, a wide 3–5 V voltage range, bipolar drive, and BURST Tx data output. Both are suitable for space-constrained smart water bottles; the differences lie in control method, package and power strategy.

3. Size and board layout constraints

The PCB of a smart water bottle is often only coin-sized, and may even need to be bent or use a flexible board. Size pressure comes from:

  • The internal space diameter of the bottle bottom/lid is about 20–40 mm;
  • The battery, charging coil, LCD/OLED display, Bluetooth antenna, buttons, etc. already occupy a large amount of space;
  • The probe must protrude or be placed close to the liquid, but must not compromise the overall seal of the cup body.

Decision method:

  • If the main control MCU already has full UART resources and you want precise control over measurement start and depth configuration, prioritize BA111;
  • If space is extremely limited, you need to reduce external components, and you want low-power automatic measurement, prioritize BA311; the SOT23-6 package enables a smaller board area, and the automatic 300 ms cycle can reduce MCU wake-up frequency.

Implementation steps:

  1. Determine the probe position: prioritize the center of the cup bottom or the inside of the cup lid to reduce wire length and parasitic capacitance;
  2. Place the ASIC as close to the probe as possible to shorten analog traces and avoid digital signal interference;
  3. Evaluate the available PCB layer count and area to ensure the package pads and solder mask bridges meet mass-production process requirements;
  4. Reserve elastic contact or solder adapters for the probe contacts to avoid thermal stress.

Verification method:

  • Calibrate at different temperatures using standard TDS calibration solution or conductivity standard solution (e.g., 500 ppm, 1000 ppm, 2000 ppm);
  • Perform EMC testing on a high-density layout sample to confirm that UART/BURST signals are not disturbed by display refresh or Bluetooth RF.

4. Battery and power consumption design

Smart water cups usually cannot be charged frequently, and battery capacity is between 100–300 mAh. TDS measurement should not become a battery life killer. The key power consumption factors are:

  • Measurement cycle: users drink water 5–10 times a day, so continuous measurement is not needed;
  • Bipolar drive can reduce probe polarization, but it also means a brief drive current is required;
  • Data output method: UART polling occupies MCU time; BURST automatic transmission allows the main controller to sleep.

The BA311's automatic 300 ms measurement cycle has an advantage: the main controller can set a timed wake-up, or start only after detecting liquid level or cup lid opening/closing; the BA111 measures on demand via UART commands. Both approaches can keep average power consumption within an acceptable range.

Selection method:

  • If you need 'data updates as soon as the user picks up the cup', you can combine accelerometer/hall sensor triggering with a single BA111 UART measurement;
  • If you need 'record once per hour in the background and upload during sync', choose BA311, let it measure automatically and buffer BURST data, and have the main controller read it periodically;
  • Supply voltage 3–5 V. BA311 is suitable for direct power supply from a coin cell; if BA111 needs to operate at low voltage, confirm the main controller power supply.

Notes:

  • Do not extend the measurement interval beyond 30 minutes just to save power, otherwise the TDS data will lose relevance to drinking-water scenarios;
  • When the battery is low, insufficient electrode drive may cause measurement drift, so undervoltage protection must be provided.

5. Probe contact and sealing

The difficulty with a water cup is that the probe must contact the liquid without leaking, while also withstanding cleaning, drops and temperature cycling.

Common probe layouts:

  • Embedded in the cup base: two stainless steel electrodes pass through the inner bottom of the cup and are connected to the PCB behind via a silicone sealing ring. The advantage is that when the cup is upright, water naturally covers the probes; the disadvantage is that the bottom sealing area is large, making residue easy to leave during cleaning.
  • Probe extending down from the lid: the probe extends from the cup lid into the cup and contacts water only when the lid is closed tightly. The advantage is that the cup body structure is not changed and there are few sealing points; the disadvantage is that the probe is exposed when the lid is opened and must be protected from contamination.
  • Embedded in the side wall: less commonly used in water cups because sealing and mold-making are more difficult.

Key sealing points:

  • Use food-grade silicone or EPDM sealing rings to ensure there is no dead water zone between the probe and the cup body;
  • Probe material is recommended to be 316L stainless steel or titanium alloy, avoiding dissolution of copper, zinc, etc. that could affect measurement and taste;
  • Probe spacing, shape and surface roughness directly affect the conductivity cell constant. If the design changes, recalibration is required;
  • All solder joints and wiring harnesses must be insulated to prevent leakage current caused by condensation.

Verification method:

BA111 Single-channel TDS Sensor Interface ASIC
BA111 product photo and integration reference
  • Pressure/negative pressure test: simulate 80°C water temperature, inversion and vibration;
  • Salt spray/detergent test: soak in citric acid or baking soda water to confirm no corrosion or leakage;
  • Long-term contact test: soak continuously for 30 days and observe TDS reading drift.

6. Refresh frequency and data strategy

Users do not need to see TDS changes every second. Smart water cups should adopt a reasonable refresh strategy:

ScenarioRecommended refresh strategyDescription
Stationary standbyNo measurement or every 10–15 minutesMaintain low power consumption and record only environmental drift
Lid opened/water poured inComplete 1 measurement within 3–5 secondsTriggered by liquid level change
User-initiated viewMeasure and display immediatelyProvide instant feedback
Continuous drinking processMeasure once every 1–2 minutesObserve water temperature/TDS trend changes
Nighttime sleepTurn off measurementSave battery

Embedded logic suggestions:

  • Start TDS measurement only after a liquid level sensor or capacitive touch detection confirms "water present";
  • Apply a moving average or median filter to multiple measurements to eliminate bubbles and local concentration differences;
  • Record timestamps and temperature, and plot trend curves in the App to avoid misleading users with single readings.

7. Display and user feedback

The display on the water cup is divided into two types: the LED/LCD on the cup body and the mobile phone App.

Cup body display:

  • It is recommended to use a 1–3 digit/segment LCD to display the TDS level (low/medium/high) or a brief ppm value;
  • Do not display decimal places to avoid user misinterpretation;
  • If the water temperature is below 10°C or above 60°C, display "temperature compensation in progress" or a heating/cooling prompt;
  • Use colors to distinguish: for example, ≤50 ppm blue, 50–300 ppm green, >300 ppm orange, but it must be stated in the manual that this is only a relative classification.

App display:

  • Display historical curves, filter life estimation, and drinking reminders;
  • Clearly note that "the TDS readings of this device are for consumer-level screening only and cannot replace laboratory testing";
  • The temperature-compensated TDS value can be displayed in ppm, with the note "estimated from conductivity".

8. Selection comparison: BA111 vs. BA311

Based on product positioning, structural space, and power consumption, refer to the table below for your decision:

DimensionBA111BA311
Package/sizeRelatively larger, suitable for boards with UART resources and a need for flexible controlSOT23-6, suitable for compact designs with extremely limited space
Communication methodUART control, measurement on demandBURST Tx automatic output, automatic 300 ms cycle
Power supplyRefer to the datasheet; typically 3–5 V compatible3–5 V wide voltage, suitable for coin cells
Temperature correctionIntegrated TDS temperature correctionIntegrated TDS temperature correction
Probe driveBipolar drive, reduces polarizationBipolar drive, reduces polarization
Application scenariosProducts requiring fine control of measurement timing and deep integration with an MCUProducts requiring lower-power automatic sampling and minimal peripheral circuitry

> Note: The table above is an engineering selection reference and does not constitute a comparison of any undisclosed parameters. Decisions should be based on the latest datasheet and sample test results.

9. Implementation steps: from prototype to mass production

Prototype stage:

  1. Use the BA111/BA311 evaluation boards to quickly verify probe geometry and temperature compensation;
  2. Design 3–5 probe spacing/structure variants and test linearity with standard solutions;
  3. Conduct leak, condensation and drop tests in real cups and record TDS deviation.

Engineering verification phase:

  1. Determine the PCB stackup and flexible board routing to ensure probe signal integrity;
  2. Implement firmware: UART/BURST parsing, moving average, low-power modes;
  3. Calibrate each prototype: at least 3-point calibration (low, medium, high ppm), and record the temperature coefficient;
  4. Write the calibration coefficients into the MCU or ASIC non-volatile memory area.

Mass production phase:

  1. Include the probe conductivity cell constant in incoming inspection to control stainless steel batch variation;
  2. The test fixture automatically completes 3-point calibration and outputs a calibration log;
  3. Perform sampling inspection of 24-hour drift and temperature cycling to ensure batch consistency;
  4. State the measurement limitations in the packaging and the App.

10. Limitations and precautions

  • TDS is a value derived from conductivity; different types of dissolved salts have different response coefficients, so the absolute ppm will vary with water composition;
  • Temperature compensation only corrects within the common temperature range (for example, it works well from 0–50°C); extreme temperatures reduce accuracy;
  • Probe contamination, scale, coffee stains, etc. will change the surface state and cause reading drift, so regular cleaning is required;
  • A smart water cup is not a medical device or laboratory instrument and must not be used for regulatory compliance testing;
  • If the product needs to monitor turbidity, organic matter or microbial risk, an optical solution must be evaluated separately (such as the AtomBit optical water-quality sensing product line); TDS alone should not be relied on.

11. FAQ

Q1: Can the TDS in a smart water cup detect heavy metals? No. TDS only reflects ionic total dissolved solids and cannot distinguish the type or concentration of specific heavy metal ions. Heavy metal detection requires specialized chemical or spectroscopic methods.

Q2: The cup opening is very small; can the BA311 really fit? The BA311 uses a SOT23-6 package and is suitable for layouts with very limited space. However, the probe, sealing structure and PCB area must also be considered; it is recommended to first build a mock-up for verification.

Q3: Why does the reading jump when the water temperature changes? Conductivity is significantly affected by temperature. Both the BA111 and BA311 integrate TDS temperature correction, but readings should still be avoided immediately during rapid temperature changes; allow time for the internal temperature to equilibrate.

Q4: Can ordinary stainless steel be used for the probe? Food-grade 316L or a more corrosion-resistant material is recommended. Ordinary stainless steel may affect long-term stability due to leaching or changes in the passivation film.

Q5: How are mass-produced devices calibrated? Each device should be calibrated with at least 2–3 standard conductivity solutions, and the calibration coefficients written in. This can be automated with a mass-production fixture, and the temperature compensation parameters recorded.

Q6: Does the probe need cleaning? Yes. Users are advised to wipe the probe surface with a soft cloth and clean water every month; if scale appears, briefly soak it in diluted citric acid and then rinse. Avoid strong acids and strong bases.

Conclusion

A smart water bottle introduces a miniature TDS sensing solution not to pursue laboratory-grade accuracy, but to provide users with convenient water-quality trend feedback and filter management prompts at minimal size and power-consumption cost. BA111 and BA311 provide an integrable ASIC foundation for space-constrained smart water appliances; the key challenges lie in probe structure, sealing, calibration and user communication. Only by clearly defining the boundary of "consumer-grade screening" in the product definition and completing sufficient contact reliability, temperature cycling and mass-production calibration verification in engineering can the TDS function truly add value to smart water bottles.