Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: PneumaticPressureLoader self-detect when sensors need calibration #58

Open
pbeaucage opened this issue Mar 19, 2024 · 0 comments
Open
Assignees

Comments

@pbeaucage
Copy link
Collaborator

The OCB100AZ liquid/gas presence sensors we use to detect if liquid is in the cell (and more/fancier things later) occasionally drift over long periods. They have a builtin calibrate routine that resets the diode drive power such that their photodiode reads mid-range (i.e, 2.5 V).

We currently push this "calibrate" button in the sample server every sample. This is pretty non-ideal if rinsing is marginal, because if you calibrate with liquid in the cell, you lose the ability to detect opaque liquids as the sensor will be at 0V with vapor in the cell.

A proposed solution:

- at the end of a rinseCell command, the loader should run a short sensor measurement and get the mean voltage
- if the mean is more than some value away from 2.5 (initial suggestion ± 0.3 V), but less than ~1 V away which would indicate residual rinse, trigger a calibrateSensor
- log this sensor data to tiled to diagnose loading.
@pbeaucage pbeaucage self-assigned this Mar 19, 2024
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

When branches are created from issues, their pull requests are automatically linked.

1 participant