Skip to content

auto_convert: set/unset bias, + use in read_rtd #32

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

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

emmanuelthome
Copy link
Contributor

I was able to enable auto_convert with this small patch:

  • enable the bias when setting the auto_convert mode
  • in read_rtd, actually use the auto conversion functionality.

This should alleviate the concern raised by #28

Source: https://datasheets.maximintegrated.com/en/ds/MAX31865.pdf , which says:

When automatic (continuous) conversion
mode is selected, VBIAS remains on continuously

Actually, I observed that the microcontroller must set VBIAS by itself, the device doesn't seem to do it automagically. If VBIAS is not set by the microcontroller, then there is no continuous update of the resistance readings

@emmanuelthome emmanuelthome force-pushed the enable_auto_convert branch from 2f43d6b to 6bf5b78 Compare May 25, 2021 19:48
@evaherrada evaherrada changed the base branch from master to main June 7, 2021 15:51
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this successfully using the simpletest with Feather RP2040, it seems to behave as expected.

I don't fully understand what the auto_convert or bias configurations are doing. But did confirm the version from this branch does use the new code as expected when auto_convert is true.

@FoamyGuy FoamyGuy merged commit eb8e72c into adafruit:main Jan 17, 2022
@FoamyGuy FoamyGuy mentioned this pull request Jan 18, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 18, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX31865 to 2.2.11 from 2.2.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX31865#33 from emmanuelthome/expose_polarity_and_phase
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX31865#32 from emmanuelthome/enable_auto_convert
  > update rtd py version

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font to 1.5.4 from 1.5.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_Bitmap_Font#54 from tekktrik/hotfix/fix-attribute-error
  > update rtd py version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants