How to display temperature reading to Matlab via Arduino UNO

A temperature module called MAX6675, which is used for measuring the temperature of K-type thermocouple is connected to the Arduino Uno. The MAX_6675 library can be downloaded from Arduino and it is working well in Arduino, but now i would like to let the temeparature reading display on MATLAB. (From my previous understanding, I need to let the MATLAB to connect to the arduino, and used readVoltage(A0) to display the voltage of my equipment).

However, I have not direction for this MAX6675 module. The temperature reading way is different from my understanding, it used SPI to read the temperature (I'm not an EE student, so I don't really understand about the SPI thing).

I guess I need to first update the MAX_6675 library (a header file and a c code) to the Matlab. So that, the thermocouple.readCelcius() function can be used on Matlab? Am I going into right path? Anyone could give me some direction?

Ant suggestion will be appreaciated. Thank you.

if you are already using the MATLAB Function block , i.e. to call readVoltage(A0) it sounds like you need to add functionality for the MAX6675, e.g. have a look at Deploy Arduino Functions to Arduino Hardware Using MATLAB Function Block

1 Like

Actually, I am not using simulink, I would like to display it on MATLAB GUI.

if you have the temperature displaying on the Arduino serial monitor

  1. close the serial monitor
  2. run Matlab open the arduino serial port parse ethe temperature reading and dissplay it

have a look at Matlab Read Streaming Data from Arduino Using Serial Port Communication

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.