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

Adafruit_MAX31865::Begin does not initiate the "Fault Detection Cycle" #27

Open
tho1010 opened this issue Sep 29, 2020 · 3 comments
Open

Comments

@tho1010
Copy link

tho1010 commented Sep 29, 2020

According to the MAX31865 data sheet (page 14) a manual or automatic fault detection cycle must be run at startup.
Without that the startup of the MAX31865 behaves arbitrarily and can prevent data reading, which in occurred to me at every second boot cycle.

I solved this issue by adding the following code at the beginning of my local copy of Adafruit_MAX31865::Begin to enable "Automatic fault detection":

#define MAX31865_CONFIG_AUTO_FAULT_DETECT 0b10010101
uint8_t t = readRegister8(MAX31856_CONFIG_REG);
t |= MAX31865_CONFIG_AUTO_FAULT_DETECT;
writeRegister8(MAX31856_CONFIG_REG, t);

I recommend to extend the begin function accordingly by defining a new "Fault detection" function, ideally configurable for automatic or manual fault detection.

MAX31865.pdf

@ladyada
Copy link
Member

ladyada commented Sep 29, 2020

OK! - wanna add it and send in a PR ? :)

@AnHardt
Copy link
Contributor

AnHardt commented Sep 30, 2020

Related to #5 .

@caternuson
Copy link
Contributor

According to the MAX31865 data sheet (page 14) a manual or automatic fault detection cycle must be run at startup.
Without that the startup of the MAX31865 behaves arbitrarily and can prevent data reading,

Where is this in the datasheet? Read page 14, but not seeing where it indicates this behavior. Writing to the config register is needed initiate a manual or automatic fault detection cycle. But not seeing where it indicates the cycle must be run at startup.

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

No branches or pull requests

4 participants