MAX31855
v1.0.6
Arduino Library to read temperatures from a thermocouple using the MAX31855 chip
|
Class definition header for the Maxim MAX31855 Cold-Junction Compensated Thermocouple-to-digital converter. The MAX31855 datasheet is located at https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf and describes the relatively simple interface. The MAX31855 uses SPI to communicate and only outputs data. It writes a sentence of 32 bits which include device failure information, the ambient temperature and the thermocouple probe temperature in degrees Celsius.
The most recent version of the MAX31855 library is available at https://github.com/Zanduino/MAX31855 and the documentation of the library as well as example programs are described in the project's wiki pages located at https://github.com/Zanduino/MAX31855/wiki
The MAX31855 is a specialized chip that uses SPI to send a sentence of 32 bits on demand. This contains the ambient temperature and probe temperature in degrees Celsius as well as some status bits indicating fault conditions. It does not have any data inputs apart from checking the state of the CS pin.
This library is built with the standard "Doxyfile", which is located at https://github.com/Zanduino/Common/blob/main/Doxygen. As described on that page, there are only 5 environment variables used, and these are set in the project's actions file, located at https://github.com/Zanduino/MAX31855/blob/master/.github/workflows/ci-doxygen.yml Edit this file and set the 5 variables - PRETTYNAME, PROJECT_NAME, PROJECT_NUMBER, PROJECT_BRIEF and PROJECT_LOGO so that these values are used in the doxygen documentation. The local copy of the doxyfile should be in the project's root directory in order to do local doxygen testing, but the file is ignored on upload to GitHub.
Part of the GitHub actions for CI is running every source file through "clang-format" to ensure that coding formatting is done the same for all files. The configuration file ".clang-format" is located at https://github.com/Zanduino/Common/tree/main/clang-format and this is used for CI tests when pushing to GitHub. The local file, if present in the root directory, is ignored when committing and uploading.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Written by Arnd Arnd@ at Zand uino. Comhttps://www.github.com/SV-Zanshin
Version | Date | Developer | Comments |
---|---|---|---|
1.0.6 | 2022-10-31 | A. Demuri | Issue #11 - Added initialization to SPI variables |
1.0.5 | 2020-11-30 | SV-Zanshin | Reformatted with clang-format, compacted library code |
1.0.4 | 2019-02-02 | SV-Zanshin | Issue #5 - Convert comments and style to Doxygen |
1.0.2 | 2017-09-17 | SV-Zanshin | Issue #2 - Invalid values |
1.0.1 | 2017-09-10 | SV-Zanshin | Added error return codes for begin(). Added reverse switch in begin() and corrected speed issue and sporadic errors |
1.0.0 | 2017-08-12 | SV-Zanshin | Ready for release |
1.0.0a | 2017-08-11 | SV-Zanshin | Started coding |