Skip to content

Support DFR0553 ADC water monitor readings#33

Merged
rockets-cn merged 2 commits into
KnowFlow:masterfrom
rockets-cn:codex/add-dfr0553-adc
May 26, 2026
Merged

Support DFR0553 ADC water monitor readings#33
rockets-cn merged 2 commits into
KnowFlow:masterfrom
rockets-cn:codex/add-dfr0553-adc

Conversation

@rockets-cn
Copy link
Copy Markdown
Contributor

Add a local ADS1115/DFR0553 I2C ADC driver and wire pH, EC, and ORP readings through it with analogRead fallback. Keep the enhanced WaterMonitor services in the same commit because the sketch references them and the verified build depends on them.

Constraint: DFR0553 support must not add a new external ADS1115 dependency

Rejected: Depend on the DFRobot ADS1115 library | a compact local driver keeps Arduino setup simpler

Confidence: high

Scope-risk: moderate

Directive: Keep DFR0553 channel mapping centralized in ArduinoUnoDo/WaterMonitor/config.h

Tested: git diff --cached --check

Tested: arduino-cli compile --fqbn esp32:esp32:esp32 ArduinoUnoDo/WaterMonitor

Not-tested: Physical DFR0553 wiring and sensor readings on hardware

Add a local ADS1115/DFR0553 I2C ADC driver and wire pH, EC, and ORP readings through it with analogRead fallback. Keep the enhanced WaterMonitor services in the same commit because the sketch references them and the verified build depends on them.

Constraint: DFR0553 support must not add a new external ADS1115 dependency

Rejected: Depend on the DFRobot ADS1115 library | a compact local driver keeps Arduino setup simpler

Confidence: high

Scope-risk: moderate

Directive: Keep DFR0553 channel mapping centralized in ArduinoUnoDo/WaterMonitor/config.h

Tested: git diff --cached --check

Tested: arduino-cli compile --fqbn esp32:esp32:esp32 ArduinoUnoDo/WaterMonitor

Not-tested: Physical DFR0553 wiring and sensor readings on hardware
Merge the current KnowFlow master into PR 33 and reconcile the overlapping ArduinoUnoDo configuration, README, and sensor hub changes. The conflict resolution keeps upstream's unified sensor numbering and ESP32 additions while preserving the DFR0553 ADC path for pH, EC, and ORP.

Constraint: PR 33 must merge into KnowFlow/master without conflict

Rejected: Drop upstream config unification | required by the target branch

Rejected: Drop DFR0553 wiring | it is the purpose of PR 33

Confidence: high

Scope-risk: moderate

Directive: Keep ArduinoUnoDo sensor indexes based on SensorNumber enum and DFR0553 channel mapping in config.h

Tested: rg '<<<<<<<|>>>>>>>' README.md ArduinoUnoDo/WaterMonitor ArduinoESP32 Firmware ArduinoUnoGravityDo .github .cursor

Tested: git diff --check -- README.md ArduinoUnoDo/WaterMonitor/config.h ArduinoUnoDo/WaterMonitor/WaterMonitor.ino ArduinoUnoDo/WaterMonitor/GravitySensorHub.h ArduinoUnoDo/WaterMonitor/GravitySensorHub.cpp

Tested: arduino-cli compile --fqbn esp32:esp32:esp32 ArduinoUnoDo/WaterMonitor

Not-tested: Hardware DFR0553 readings
@rockets-cn rockets-cn merged commit 178f25c into KnowFlow:master May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant