MAX6675 Thermocouple

A SPI digital thermometer

Hello World

Import programmax6675


Import programmax6675





Reading The Temperature

#include "mbed.h"
#include "max6675.h"

SPI spi(p11,p12,p13);
max6675 max(spi,p18);

Serial pc(USBTX,USBRX);

int main() {

    while (1) {
        float temp = max.read_temp();
        printf("\n\rT: %f",temp );


K Type Thermocouple


A bit about the K Type thermocouple (Extract from Wikipedia, link below)

Type K (chromel–alumel) is the most common general purpose thermocouple with a sensitivity of approximately 41 µV/°C, chromel positive relative to alumel.[6] It is inexpensive, and a wide variety of probes are available in its −200 °C to +1350 °C / -328 °F to +2462 °F range. Type K was specified at a time when metallurgy was less advanced than it is today, and consequently characteristics vary considerably between samples. One of the constituent metals, nickel, is magnetic; a characteristic of thermocouples made with magnetic material is that they undergo a step change in output when the magnetic material reaches its Curie point (around 354 °C for type K thermocouples).


You need to log in to post a discussion