-
Notifications
You must be signed in to change notification settings - Fork 0
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
Preliminary thermistor abstraction implementation #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice start on reading a single value. We can take the issue in two steps if you feel adding multiple input pins (and multiple ADCs?) would be a big step, but would like to at least see the conversion equation.
748fa99
to
8b301f6
Compare
As mentioned in this comment, there are currently some issues with the thermistor's resistances not following what is shown on the datasheet. However, the code to read the values from the ADS1015 works, since we tested in lab with the multimeter. For now, I'll unlink #37 so that the issue doesn't get closed as completed when this PR is merged but I'll mark the first bullet point as completed when this PR gets merged. |
fbe2240
to
1a2e4e3
Compare
a0f2520
to
95485b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works out for now. As discussed, next step is adding the actual temperature conversion.
Resolves #37 through the following:
LimTemperature
abstraction incomponents/
demo.rs
that reads from the ADS1015To test the component individually, comment out the code in
demo.rs
that creates an instance ofPressureTransducer
, as not doing so will cause an I2C error. Build and run the pod operation executable on a Raspberry Pi 4B and observe the values being printed in millivolts.Note: A slight issue is that when the voltage drop across the thermistor approaches smaller values, the readings are off by a certain number of millivolts.