Hi, welcome to Arduino tutorial from Robojax. in this video I'm going to
show you how we can use this max6675 thermocouple module it with
this k-type thermocoupler sensor to read the temperature and see it in Celsius and
Fahrenheit using Arduino. you can get the code for this by clicking on
which is blue the description which will take you to
www.Robojax.com/learn/arduino let's get started with this.
My name is Ahmad Shamshiri and I am presenting this tutorial from Canada
you will need to use for example a k-type thermocouple sensor and read the
data using this MAX6675 without Arduion (microcontroller)The code that I am providing
here will work with all versions of Arduino. and I will explain
also the wiring. if you are interested to you to display the temperature on a
LCD1602 on LED display or on multiple displays I have separate videos with
separate code all the link will be provided inside the description below
this video.
Hardware Explained
when you receive the module this will be without the K type so I'm adding K-type
sensor together. This has two terminals here plus and minus. and your your k- type has
maks, put it this way otherwise you have to flip it the other way until you read
the data. this is ground VCC and then serial clock (SCK) chip select (CS) and serial output (SO).
and here is a data sheet that's from Maxim Integrated. and it can measure from
0 to 1024 degrees Celsius the resolution is 12bits. it uses SPI communication.
operating voltage is from -3 to +6 volts. I will provide you the link for
this in case if you want to look further. the K type could be this way because
justice for different application would not and also you can have this type of K
type sensor this is the sensor at the top. both of these will work with chip.
length of the module is 32.1 millimeter width is 15.6mm
millimeter and the depth is 16.3 millimeters.
Wiring Explained
now let me explain the wiring. from this side the ground the yellow this is the
ground is connected to the ground of Arduino. the orange is the VCC it has
been connected to 5 volts here. doesn't matter you can get it from other sources
Arduino is very convenient. so this has been corrected to pin 4. and then we have
CS chip select the chip select is connected to pin 5 the gray wire here.
connected to pin 5. and then we have serial clock CSK which is white one this
has been corrected to pin 6. so we have used pins 4 5 6.
Code explained
let me explain the code. the original source can be downloaded from here but I
would provide you at the length that you can download directly from our website
or from there's. let me explain the code the original source can be downloaded
from here but I would provide you at the length that you can download directly
from our website or from there's. this MAX6675 include it means
include this file which is part of the library which will be provided a zip
file so when you download it either put it directly in the library folder inside
arduino or go to Sketch-> Include library and from here select add zip library.
then from this point pointed to the zip file wherever you downloaded. in my case
inside this folder this is an example something.zip. select open and then it
will be installed in your library and then you can see it here. Click on File-> examples
and you will see MAX6675 with these two examples. but
After installing the library, close Arduino IDE and re-open it
I've modified the code to make it easy. this is how it looks and I've changed
these parameters so they reflect whatever is on the module. and then SO
that serial out that is written on the module. and then I put pin serial out pin
I'm connected I get to pin 4. and then this is chip select CS, connecting into 5
five and then serial clock pin connecting it to pin 6. I've also written
them here. once you define all this than 4, 5 and 6 then we create an
instance of this class and we call it robojax. and it takes these three
arguments so clock pin, CS pin , SO pin. you must put them in this order if you
switch them it will not work. so it must be in this order. after that inside the
sub setup() we initialize the serial monitor with 9600 baud. and we print this
text. this 9600 baud is the value that is set here that's 9600. and after that we go
inside the loop() inside the loop. we just print see the serial monitor and
this one C equal sign with a space that's the space and an equal sign and
then we when we want to read the Celsius we say robojax
because we have created that here we see robojax.readCelsius this is the
value that is shown here 19.25 and then we put a space
here this is a space between a value and F and we put F Fahrenheit and this is
the Fahrenheit. it's just reading our temperature and we wait 1000
milliseconds or one second and the loop continues. each line is one element of a
loop. and if you want to do something based on some temperature you will do
something like this. let's say you want to check if the temperature is over 60
degrees do something. IF so we say let's say this is Fahrenheit and you
could use ever the temperature is over 86 degrees
then you can do something. this is opening and this is closing .and do something here you
turn on something. let's say the temperature increases and you want to
turn on a fan to cool down something. or the temperature decreases if it's below
this and you want to turn on a heater turn it on in here.
Measuring temperature demonstration
let me now demonstrate that this is the temperature that this thermocouple
sensor is read by this module and it's displaying here. the Celsius and
Fahrenheit. and I'm going to use this heat gun this is the Mastercraft from
Canadian Tire. so let's just
so it got very hot now it's 125 degrees Celsius here. and this is the reading in
Fahrenheit
now it's cooling down and the reading is I set it for one second so if you want
to read faster just change the value of
this to less than once I can make it a hundred millisecond or something like
that
thanks for watching this was how to use this MAX6675 temperature
reader with this k-type thermocouple .if you have comment or question please post
it in the comment section below the video and if you learn something already
use this code please thumb up 👍 and I appreciate it and if you subscribe you
can get updates of my upcoming videos please leave the notification on.
Subtitle typed/corrected on Sep 24, 2020 by Ahmad Shamshiri in , Canada
I did my part to help you learn. Now it is your turn.
You can subscribe to my channel, thumb up 👍 the video and type a comment by saying thank you.
If you don't skip ads it will also help you .
My PayPal Account link is in the description if you want to make cash donation. Thank you