Measuring temperatures from -250C to +1600C with AVR-T32U4 Arduino Leonardo and MOD-TC-MK2-31885 + thermocouple


Image

MOD-TC-MK2-31885 is UEXT module which uses MAX31885 and allow temperatures in range -250C to +1600C to be measured with proper thermocouple.

For this demo we use TC-K-TYPE which is low cost K-type thermocouple.

When the thermocouple is connected pay attention that it have polarity i.e. if your measurements start to decrease when you increase the thermocouple end temperature you have to swap the thermocouple wires to the connector.

Another issue we got with Arduino 1.0.4 is that Serial print from time to time stop working on Leonardo and several uploads usually solve the problem, we guess this is some USB port problem and Leonardo is not properly enumerated as CDC serial port every time.

Also I2C library on Leonardo sometimes beahve weird and in this case you have to decrease I2C speed a bit. So if the sketch do not work correctly just edit TWI_FREQ to 80000L in:

C:\arduino-1.0.4\libraries\Wire\utility\twi.h

#ifndef TWI_FREQ
 #define TWI_FREQ 100000L
 #endif

You can watch the demo at this video: http://www.youtube.com/watch?v=ltS5ZEJiCEM

As you can see there are two temperatures which are measured: the temperature on the thermocouple TC and the internal MAX31855 temperature INT (i.e. cold end thermocouple temperature).

Also MAX31885 recognize if the thermocouple is disconnected, shorted or connected to VCC.

The demo code is at GitHub: https://github.com/OLIMEX/DUINO/tree/master/AVR/MOD-TC-MK2-31885

6 Comments (+add yours?)

  1. Sebastian
    May 29, 2013 @ 15:06:03

    This is a fine solution, but I guess it would be even more convenient to use of the TC-MK2-31885 board had a receptacle for the thermocouple’s original plug.

    Reply

  2. adminVasi
    May 29, 2013 @ 18:31:55

    Great stuff, thank you!

    Reply

  3. Vasi
    May 29, 2013 @ 18:33:17

    Sorry about the ID, it was added by wordpress after asked me to log into my account…

    Reply

  4. thomaswolfgangschubert
    Jun 12, 2013 @ 12:41:02

    this looks interesting. the datasheet says the precision is 0.25°C. is there a way to increase the resolution? We want to measure skin temperature, and would appreciate a finer resolution.

    Reply

  5. Trackback: Churchill AVRE Mk-VII - Accurate Armour 4
  6. se
    Aug 16, 2014 @ 21:46:39

    can you share the schematic?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: