OPEnSLab-OSU / eDNA-Server

Backend Application for eDNA Genomic Sampler
1 stars 1 forks source link

Adding volume measurement devices #10

Closed baonguyen21 closed 3 years ago

baonguyen21 commented 4 years ago

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:

kawinie commented 4 years ago

Ok seems like you want to take reference water level on demand. Easy thing to do.

baonguyen21 commented 4 years ago

The outflow pump is hooked up to TPIC0, valve 6

kawinie commented 4 years ago

The outflow pump is hooked up to TPIC0, valve 6

You mean pin 6 (0-indexed)?

baonguyen21 commented 4 years ago

The outflow pump is hooked up to TPIC0, valve 6

You mean pin 6 (0-indexed)?

Yes!

baonguyen21 commented 3 years ago

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