hi welcome to an Arduino step-by-step course by Robojax
hi welcome to an Arduino tutorial from Robojax in this video I’m going to show you how we can
use this max 6675 chip module with the k-type thermocouple to display the temperature in
Celsius and Fahrenheit on this lcd-602 which has only four wires
you want to display temperature uh either as degrees Celsius or degrees Fahrenheit and this lcd
which has only four wires from this max x75 module and then k-type for that reason I’m prepared this
video because many people have asked for this I’m going to explain it uh for this module
and in the module we have two input that you connect this thermocouple sensor
these will have different specification usually 600 or maybe 800 or 1200 degrees Celsius
so you will connect it in here and on this side we have five wires
this is the ground and this one is the five volts and then we have three other pens
this is the wiring diagram for max 6675 thermocouple with lcd this portion is exactly the
same as before these three wires that is exactly the same as the circuit with the where there is no
display but in order to facilitate power for the lcd and for the module I have used
from this five volts I’ve brought a orange wire to the breadboard and from the ground I have to this
point now we have here five volts and the ground from five volts this orange is connected to vcc
from ground I have yellow connected to the ground for this module however for vcc I’ve used purple
to this point which is connected to 5 volts and ground of this screen is connected using
gray wire to the ground for the lcd because this wire was uh going to the breadboard the power I
brought also this one here from a4 which is sda I’ve brought a green wire to this point
and from a5 which is SCL pin for the I2C communication I brought blue to this point
now this is sda this is scl and then from sda I brought another green wire connected to sda of
this module and from scl from the clock I’ve brought a blue wire to this point it says so
this is the serial out after that we have cs this is a chip select and after that this uh
sc sck that's the serial clock so the tree pin will be connected respectively to pin four five
and six this will be attached to wherever you want to get the temperature perhaps in a liquid or in a
tank or wherever it is so you will just insert it this display we have four plans here we are using
Arduino uno and then then SCL is a5 and SDA is a4 an Arduino mega SDA is 20 and then SCL is 21 and
Leonardo and all of those are shown here . actually that chip and this is the max x75
it can measure up to 1024 degrees Celsius and in here I’ve connected from the last pin
is connected to four the next one is connected to five and the last one in here is connected to six
let me explain the code this is this is the max 6675.h include means include this file as part
of this program and this is part of the library which I’ll give you the link as and then you can
download the file as web file and then either put it directly in under the library folder inside
Arduino or the second way will be click on sketch and Arduino library and then add zip library
once this opened point it to the zip file for example this is a zip file just select and then
click open and it will be done
once you include it go to file
and then examples and then you will see mark 6675 library and they have uh example I have modified
that example here so I will provide you this code you can just run it but those examples will be
also be available this wire is part of the library that is included you don't have to worry about it
yeah and then after that I will also provide you the link for this liquid crystal display for the
lcd the same way as the other one just included with the library otherwise it will not work
for that reason I have another video that explains this one how it works I will suggest
I will provide you the length you have to go and run that you have to download that
code and run it and make sure that at least you display some kind of text on this screen
before coming to this because this is combination of temperature and this so you have to make sure
that this device works before connecting the thermometer or the k-type thermocouple sensor so
this is this will be part of the library that you download and then this line creates a an instance
of this class we call it lcd and it has three uh arguments the first one is the address this is 16
character and two line the address of your module might be different for that reason I will give you
a an I square c scanner and that one also has a I will provide you the link so you can get it
here I’m running it I’ve just tested it before I’m running it it's called ic I square c scanner
let me upload it code is uploaded you will see the address here it says
0x 3f this 0x means hexadecimal and 3f is the hexadecimal value so it just runs and
continuously every few seconds will give you the address so once you find this address
just put it here so this is the address for my module and your module will be different
and then we have this three pin serial out pin pen four chip select
pin five and then serial clock pin and six I’ve written it here after that we use this class
and we create an instance of that class and we pass these three parameters here
so this this will be argument for this object and that will take care of this inside the setup
we first initialize the lcd byte lcd dot begin and then lcd.backlight
which enables the backlight on after that we just if I uh reboot this you will see this text
now I’m rebooting Arduino by pressing the reset button and you will see that this
text is Robojax max 667.5 thermocouple this is the text after that I use the serial monitor
initializing the serial monitor serial monitor is this monitor here that displays some information
continuously whatever you see here it will be displayed as well there and that 9600
bar is the value that is here it must match 9600 otherwise you will not be able to read the data
and this is also the text at the beginning
we give three three seconds for the user to read this in case if you have
something special to display after that inside the loop this is serial print
it will print the temperature on this serial monitor which is this monitor
this is just printing Celsius and then Fahrenheit how it does is that we say thermocouple the one
that we have created the instance in here we just called thermocouple dot read Celsius will give you
Celsius so this is the value for the Celsius value that you read here
and this is the thermocouple dot read Fahrenheit that's a Fahrenheit value this was for the serial
monitor now we say lcd cleared because this is loop it goes every time and then clears
the previous value you need to have this and this one prints this first line here for us
and it says set cursor at zero zero that means character zero of line zero this is line zero and
that is line one so at line zero we say put temperature that is this text some pressure
and after that we go to lcd set cursor a character 0 line 1 that is character 0 of line 1 and then we
print the Celsius which is this value 21 now as you can see it and then we say go to character
five so zero one two three four five at five we say print this car twenty two two two three it
will print that uh Celsius after that we say go to six the next one and print this 6 so this is
just for Celsius and this is for Fahrenheit so we go to character 7 and we create empty space
we just say print this empty space and then we say go to character 8 which is starting from here
and then we print thermocouple dot Fahrenheit read Fahrenheit we'll print the Fahrenheit
after that that we have counted from here that will be six characters it will be 14. again we
can print the degree and after that that character 15 with a parent f so it will print f and then we
give the loop 1000 millisecond or one second and it will repeat that's why you will see it
changes every second if there is a change
we can see that the temperature is shown here exact same thing that you see here it will be here
on the monitor this is the k-type cup thermocouple and I have this mastercraft from Canadian tire
and I’m just blowing heat into this so you just read the temperature here
as you can see that's now this in Celsius it's slowly jumping
of course in your application you will not need to have both of this but in case if you
have if you want Fahrenheit and syllabus you can do it otherwise you can just use
one of them and that would be enough because as you can see there was two decimal places
and because I put this here that data shifted here one decimal place has disappeared because I did
not have enough room but for you just move this decimal place one more or two or more spots on
this side this degree sign and with a Celsius or degree cell with a Fahrenheit whichever you prefer
very hot
thanks for watching this was how to use this
max 6675 thermocouple sensor with k-type to display the temperature on this lcd
please make sure to subscribe by clicking at the subscribe button in here thank you
thank you for watching tutorial from Robojax if you learned something and found this useful
please thumb up as this will help my video in the search algorithm of YouTube
if you have comment or question please post it at the comment section below
I try to answer and reply and don't forget to subscribe so you get updates on my upcoming videos