adafruit_max31855
¶
This is a CircuitPython driver for the Maxim Integrated MAX31855 thermocouple amplifier module.
- Author(s): Radomir Dopieralski
Implementation Notes¶
Hardware:
- Adafruit MAX31855 Thermocouple Amplifier Breakout (Product ID: 269)
Software and Dependencies:
- Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
-
class
adafruit_max31855.
MAX31855
(spi, cs)[source]¶ Driver for the MAX31855 thermocouple amplifier.
Parameters: Quickstart: Importing and using the MAX31855
Here is an example of using the
MAX31855
class. First you will need to import the libraries to use the sensorimport board from digitalio import DigitalInOut, Direction import adafruit_max31855
Once this is done you can define your
board.SPI
object and define your sensor objectspi = board.SPI() cs = digitalio.DigitalInOut(board.D5) # Chip select of the MAX31855 board. sensor = adafruit_max31856.MAX31855(spi, cs)
Now you have access to the
temperature
attributetemperature = sensor.temperature
-
reference_temperature
¶ Internal reference temperature in degrees Celsius.
-
temperature
¶ Thermocouple temperature in degrees Celsius.
-
temperature_NIST
¶ Thermocouple temperature in degrees Celsius, computed using raw voltages and NIST approximation for Type K, see: https://srdata.nist.gov/its90/download/type_k.tab
-