Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
A dosing loop set to auto doses by itself once a minute, inside the same limits, and tests prove it never doses when it must not #619
Sign in to join this conversation.
From pull #604 (closed), the part of #586 that main does not have yet: main has
Doser.tick, but nothing calls it, soautonever acts. smith's branchsmith/586-close-the-loop-sensors-ph-ec-temperaturehas the relay wiring (doseEveryMs) to start from.Done when:
Doser.tickeverydoseEveryMs(one minute by default) and clears the timer on close.doseEveryMsor a fake clock:- a loop in
autodoses once on a tick, and the log book records it with causeauto; - a loop insuggestoroffnever moves a pump on a tick; - a halted doser never doses on a tick; - two ticks on the same reading give one dose, never two.suggest, and the README's dosing section says thatautonow pumps unattended, inside the per-dose and per-day limits.Files: src/relay.ts, src/doser.test.ts or src/care-dosing.test.ts, Software/so101/README.md. Risk: real pumps on a timer. The limits, the mixing wait and the halt must hold on the tick path exactly as they do on the owner's tap.