Closed baonguyen21 closed 3 years ago
Ok seems like you want to take reference water level on demand. Easy thing to do.
The outflow pump is hooked up to TPIC0, valve 6
The outflow pump is hooked up to TPIC0, valve 6
You mean pin 6 (0-indexed)?
The outflow pump is hooked up to TPIC0, valve 6
You mean pin 6 (0-indexed)?
Yes!
A new flow measurement device has been detected! We need to allocate one analog pin for reading interrupt and then count the # of interrupt over 1 sec for Hz. The eq has been provided to Kawin for an easier Hz to mL/min conversion
The outflow of the system use an MS580302BA01 barometric sensor. This sensor has the worst resolution (over sampling ratio 256) to be 0.13mbar which equal roughly 1.3mm of water column. Best resolution (over sampling ratio 4096) is 0.24 mm of water column.
The old method is to use two sensor, one in air (0x76) and one in the outflow cylindrical measurement container (0x77). Due to the accuracy of the sensor, we are not getting the same atmospheric pressure when both is open to air.
Since we are only interested in measuring water depth in the container, only one sensor should be used. Here are the steps: