Skip to content
Discussion options

You must be logged in to vote

@SCiunczyk I never got around to document the calibration process, but I explained it a little bit in #79 (comment) and #79 (comment).

What you're seeing there, for example:

  • 3.08;324

Means that at 3.08V, the 10-bit adc is reading 324 when fully wet. The point is to collect many of such pairs and fit a 2nd degree poly. This is the "wet" sensor model. The same can be done for the dry model.

I used this spreadsheet for the regression:

You can copy and update it with your own data.

The negative value is just how the 2nd degree poly happened to fit the data. It doesn't mean that the function will evaluate to negative values in the real-world battery range.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SCiunczyk
Comment options

Answer selected by SCiunczyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants