Nanoshield_Thermocouple¶
This is the Arduino software library to access the Thermocouple Nanoshield (MAX31855 IC) from Maxim Integrated.
- Source code: https://github.com/circuitar/Nanoshield_Thermocouple
- Documentation: http://nanoshield-thermocouple.readthedocs.org/
- Reference board: `Termopar Nanoshield`_ from Circuitar_.
Library features include:
- Get internal temperature.
- Get external temperature.
- Check errors (shorted to vcc, shorted to ground and open circuit).
To install, just click Download ZIP and install it using Sketch > Include Library... > Add .ZIP Library in the Arduino IDE.
Class Documentation¶
-
class
Nanoshield_Thermocouple
¶ Public Functions
-
Nanoshield_Thermocouple
()¶ Constructor.
Creates an object to access one Termopar Nanoshield.
-
void
begin
(uint8_t cs)¶ Initializes the module.
Initializes SPI and CS pin.
- Parameters
cs
-Chip select pin to access Termopar Nanoshield.
-
void
read
()¶ Reads internal and external temperatures.
-
double
getInternal
()¶ Gets the last internal temperature read.
- Return
- The last internal temperature read.
- See
- read()
-
double
getExternal
()¶ Gets the last external temperature read.
- Return
- The last external temperature read.
- See
- read()
-
bool
isShortedToVcc
()¶ Checks if is shorted to VCC.
The sensor is connected to VCC.
- Return
- True if shorted to VCC. False otherwise.
-
bool
isShortedToGnd
()¶ Checks if is shorted to GND.
The sensor is connected to GND.
- Return
- True if shorted to GND. False otherwise.
-
bool
isOpen
()¶ Checks if open circuit.
The sensor circuit is open.
- Return
- True if open circuit. False otherwise.
-
bool
hasError
()¶ Checks if there are errors.
- Return
- True if any of shorted to VCC, shorted to GND or open circuit errors occurred. False if no errors.
- See
-
This documentation was built using ArduinoDocs.