A program to measure the temperature using the Max6675 board. The temperature is shown on 8x8 Max7219 matrix display and it is saved on SD as well.

Dependencies:   MAX7219 SDFileSystem mbed

Fork of MAXREFDES99_demo by Maxim Integrated

The program measures the temperature using the Max6675 board designed for Arduino. The temperature is shown on Max7219 8x8 matrix display (designed for Arduino as well) as text marque from right to left. The fonf size is 5x7 so the last row is used to show some info:

- All leds off: Normal temperature measuring - Leds shifting: Saving on SD card - Leds blinking: SD card missing or damaged

The Blue "user button" is used to save measured temperature on SD card. First click start saving, the second stop the process. Together the temperature is saved also the time. The time is reset when the process start. Connecting the USB to PC it's possible to see instant temperature and all saved data on SD.

Committer:
lore71
Date:
Thu Oct 04 11:37:43 2018 +0000
Revision:
12:1bd4a9f09a8d
A program to measure the temperature using the Max6675 board.; The temperature is shown on 8x8 Max7219 matrix display and it is saved on SD as well.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lore71 12:1bd4a9f09a8d 1 #ifndef MAX6675_h
lore71 12:1bd4a9f09a8d 2 #define MAX6675_h
lore71 12:1bd4a9f09a8d 3
lore71 12:1bd4a9f09a8d 4 #include "mbed.h"
lore71 12:1bd4a9f09a8d 5
lore71 12:1bd4a9f09a8d 6 class max6675
lore71 12:1bd4a9f09a8d 7 {
lore71 12:1bd4a9f09a8d 8 SPI& spi;
lore71 12:1bd4a9f09a8d 9 DigitalOut ncs;
lore71 12:1bd4a9f09a8d 10 public:
lore71 12:1bd4a9f09a8d 11
lore71 12:1bd4a9f09a8d 12 max6675(SPI& _spi, PinName _ncs);
lore71 12:1bd4a9f09a8d 13 void select();
lore71 12:1bd4a9f09a8d 14 void deselect();
lore71 12:1bd4a9f09a8d 15
lore71 12:1bd4a9f09a8d 16 float read_temp();
lore71 12:1bd4a9f09a8d 17 private:
lore71 12:1bd4a9f09a8d 18 PinName _CS_pin;
lore71 12:1bd4a9f09a8d 19 PinName _SO_pin;
lore71 12:1bd4a9f09a8d 20 PinName _SCK_pin;
lore71 12:1bd4a9f09a8d 21 int _units;
lore71 12:1bd4a9f09a8d 22 float _error;
lore71 12:1bd4a9f09a8d 23 };
lore71 12:1bd4a9f09a8d 24
lore71 12:1bd4a9f09a8d 25 #endif