Tuya RS485 Sensor PCB


I can build this as a separate proof-of-concept project: 12 VAC input, protected rectifier/power supply, Tuya Wi‑Fi module, isolated/protected RS‑485 interface, one power LED, and one pairing/reset button on a simple long narrow PCB.
The PDFs could not be text-extracted in Chat mode, so I need Agent mode to inspect the protocol/registers, create the new project, select parts, build and verify the schematic, then make the basic PCB. Click Continue in Agent Mode and I’ll proceed; I’ll only stop for clarification if the sensor’s wire pinout or required measurement variant cannot be established from the attachments.
Continue in Agent Mode
I’ll extract the sensor wiring/protocol, create a separate proof-of-concept project, build and verify the schematic, then make a simple long narrow PCB layout.
Created a thread, a project
Tuya Inline Chemical Sensor POC

Tuya Inline Chemical Sensor POC

Proof-of-concept long narrow Tuya Wi-Fi interface board for a 4-wire chemical sensor using MODBUS-RTU over RS-485. Powered from external Class 2 12 VAC, with...

24 days ago

·

Build chemical sensor POC schematic
Starting...
View Thread
The sensor interface is confirmed: 9–24 VDC probe power, yellow/green RS‑485, and MODBUS‑RTU at 9600‑8‑N‑1. The new project is created, and I’m finishing the power and communications schematic verification now.
The verified 39-component schematic is complete in Tuya Inline Chemical Sensor POC. It uses 12 VAC input, rectified probe power, a 3.3 V buck, Tuya CBU, protected RS‑485, one power LED, and one pairing/reset button.
For the first PCB, I propose a simple 2-layer rectangular board around 100 × 25 mm, components on both sides, cable connections at opposite ends, and the CBU antenna at the outer edge. I’ll also correct the CBU footprint’s undocumented center pad before placement—confirm this layout plan and I’ll proceed.

Mechanical Architecture
Deferred for the active build: The pressure swivel, permanent pigtail, IP68 seals, serviceability split, two-board/FPC packaging, and production enclosure described below are not part of the current benchtop engineering sample. They remain preserved as future production-development inputs. The current build uses one exposed 50 × 100 mm PCB, accessible J1/J2 connectors, an external sensor, and no weatherproof enclosure.
Decision Status
Preferred conditional architecture: use an inline Mosmatic DGVI 32.752 pressure rotary union between the fixed pool-filter port and the rotating sensor/electronics assembly. Mosmatic identifies DGVI as a complete-stainless-steel, single-bearing family supporting live rotation under maximum pressure. Mosmatic rotary unions Exact 32.752 dimensions and configuration are commercially published, but production release remains conditional on a Mosmatic controlled drawing and written application approval for the seal, −20 °C, chlorinated pool water, loads and orientation-only duty.
Preferred Pressure Path
  1. Stationary process interface: the DGVI male 1/4-18 NPTM inlet threads directly into the pool filter.
  2. Rotating pressure boundary: the DGVI female housing rotates around the stationary male shaft.
  3. Sensor interface: the Honeywell MIPKN1XX100PSAAX (or approved MIPAN1XX100PSAAX fallback) male 1/4-18 NPT port threads into the DGVI female 1/4-18 NPTF outlet.
  4. Body retention: the enclosure mechanically captures the MIP sensor's 22 mm wrench hex/metal body. The sensor, enclosure, display, PCB and cables rotate together; no electrical cable crosses the rotary interface.
  5. No ordinary loose nut, cable gland, NPSM hose-end swivel, or enclosure gasket is credited as the pressure swivel.
Sourced DGVI 32.752 Data
Published configuration for 32.752: inline male 1/4 in NPTM × female 1/4 in NPTF, 1/4 in nominal passage, complete stainless-steel body and inner part, 50 MPa / 7,300 psi maximum pressure, 120 °C / 250 °F maximum temperature, 30 rpm maximum, one thrust ball bearing, NBR O-ring with optional EPDM or FKM, pH 3–12 medium, 10 μm filtration, and compressed air up to 20 bar / 290 psi. Dimensions are overall length L1 2.60 in (66.04 mm), male-thread projection L2 0.39 in (9.91 mm), wrench sizes SW1 0.94 in (23.88 mm) and SW2 0.75 in (19.05 mm), and weight 5.2 oz (147 g). DGVI 32.752 commercial product data
Mosmatic's own family page confirms DGVI complete stainless construction, single-bearing system and live rotation under maximum pressure. Mosmatic DGVI family evidence The product pressure range is 0–100 psi, but the 73:1 catalog pressure ratio is not a product proof/burst claim. Published evidence reviewed does not provide the selected part's minimum temperature, proof factor, burst pressure, side-load limit, rotation torque or chlorinated-pool-water qualification.
Installation and Rotation Rules
  • Depressurize, drain and verify zero pressure before installing, removing, or intentionally rotating the electronics body.
  • Apply thread sealant approved for the actual medium, plastics/metals and temperature; prevent sealant from entering the pressure passage.
  • Tighten the DGVI male shaft only into the filter using the designated wrench flats; never use the enclosure, sensor cable or rotating housing as the tightening lever.
  • Install the Honeywell sensor into the DGVI female port using the sensor's metal hex. Honeywell specifies two to three turns from finger-tight for its N1 1/4-18 NPT port. Honeywell MIP analog datasheet
  • After both NPT joints are leak-tight, rotate the complete enclosure/sensor assembly to the viewing orientation while depressurized. Any detent or friction feature must be outside the pressure boundary and must not clamp the swivel.
  • Production instruction: no intentional rotation while pressurized. Although DGVI is designed for live rotation, this product uses it only as an installation/orientation joint until product-level dynamic qualification is complete.
  • Do not exceed one slow hand orientation operation per installation/service event until qualification establishes a permitted count and torque.
  • Support the enclosure so plumbing vibration, cable pull and user loads do not impose sustained bending moment on the MIP port or DGVI shaft.
Seal and Pool-Water Position
Mosmatic offers NBR, EPDM and FKM, but the reviewed manufacturer material does not qualify any DGVI seal for chlorinated pool water. The preferred supplier request is an EPDM option, because specific proprietary EPDM compounds exist with manufacturer testing for chlorine/chloramine pool service; that evidence does not establish compatibility of Mosmatic's unspecified EPDM. Trelleborg Pool Water EPDM FKM remains an alternative for Mosmatic to evaluate. No compatibility claim is made until the exact compound and pool chemistry are approved and tested.
Considered Commercial Alternatives

Table


CandidateEvidenceDisposition
Mosmatic DGVI 32.752Inline 1/4 NPTM × 1/4 NPTF, complete stainless, 7,300 psi, 30 rpm, 66.04 mm overall, optional EPDM/FKMPreferred conditional: correct inline geometry and compact wrench envelope; requires controlled manufacturer evidence
Mosmatic DGV 32.552Same inline ports/dimensions, 4,000 psi; nickel-plated brass body with stainless inner partLower-cost fallback, but less preferred for outdoor pool-water corrosion uncertainty
Mosmatic WDEI 43.481Stainless, 725 psi, optional EPDM/FKMRejected for preferred slim inline architecture: WDEI is an angular/90° hose-reel style; useful only if a perpendicular pressure path is accepted
Super Swivels male NPTF × female NPTF1/4 in catalog part, 5,000 psi, 0.250 in bore, multiple materials/sealsCredible second-source study, but published selected configuration/material evidence is less clear. Super Swivels product
DSTI SPS-5210Inline 1/4 NPT male shaft/female housing, 600 psi, 38.1 mm diameter × 60.45 mm longStated suitable medium is air/gas; water requires consultation and diameter is larger. DSTI SPS
Ordinary NPT/NPSM pipe swivel adapterNPSM nut and 30° seat assembly connectionRejected: not credited as a retained live rotary union for post-installation body rotation
Pressure-Passage and Sensor-Performance Controls
  • Keep the passage clean and full-bore; no sealant strings or debris may reach the MIP diaphragm.
  • Added trapped volume should not create static offset, but may affect transient response. Verify alarm response and damping with air and water.
  • Provide drainage/winterization. Trapped water can freeze and exceed sensor or swivel limits.
  • Keep swivel and sensor outside the dry electronics cavity; direct any leakage away from the window, pigtail and user.
Production Release Blockers
  1. Mosmatic written approval for DGVI 32.752 at 0–100 psi water/air, −20 to +60 °C, outdoor wet exposure, orientation-only duty and specified radial/axial loads.
  2. Current controlled Mosmatic drawing and exact orderable EPDM/FKM configuration; resolve the differing regional part identifiers seen for nominally similar metric versus NPT variants.
  3. Exact seal compound identity and chlorine-treated pool-water evidence; minimum-temperature rating.
  4. Breakaway/running torque versus pressure/temperature, permitted side load, service life/cycle count, leakage limit, proof pressure and burst pressure.
  5. Confirmation that the male shaft may be fixed in the filter while the female housing carries the MIP sensor/enclosure, including approved wrenching and mounting method.
  6. Pressure-boundary drawing with thread engagement, wrench access, enclosure capture, drainage and load path; enclosure tolerances must not lock the rotating member.
  7. Prototype leak, torque and pressure-response tests at −20/room/+60 °C; chlorine aging; freeze/thaw; vibration; side-load; thread abuse; impulse; guarded product proof/burst and misuse testing.
  8. Certification-lab agreement on pressure test factors, markings and service restrictions.
Custom Fallback — Not Released
If no commercial swivel receives written approval, use a custom retained spindle only as a mechanical-engineering program: fixed 1/4-18 NPT male stainless spindle, protected axial passage, two independently spaced radial seals with an inter-seal telltale/weep path, corrosion-resistant bearing surfaces, and positive thrust retention such as a captured shoulder plus rated retaining ring or threaded retainer with secondary locking. Pressure thrust, extrusion gaps, tolerances, finish, galvanic pairs, wear, side loads and containment require calculation and design review. This fallback requires professional mechanical engineering, applicable pressure analysis, proof/burst and fatigue tests, chlorine/freeze/environmental testing and certification; it is not an assumed-safe finished design.
  • Decision Status

  • Preferred Pressure Path

  • Sourced DGVI 32.752 Data

  • Installation and Rotation Rules

  • Seal and Pool-Water Position

  • Considered Commercial Alternatives

  • Pressure-Passage and Sensor-Performance Controls

  • Production Release Blockers

  • Custom Fallback — Not Released