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
0 comentários:
Postar um comentário