Arduino with 2 Thermocouples and 2 Digital Displays

what’s up guys this is chase from chase’s
workshop in this video we’re going to use an Arduino board to get two separate
temperature readings from two separate thermocouples and display those
temperatures on to two separate digital displays thats a lot I know but
basically all this is going to be is just we’re have we’ve got two
thermocouples hooked up to our Arduino board and they’re gonna read out as two
separate readings on our Arduino board our digital displays and I spent all
morning this morning trying to figure out how to how to do this I watched a
video from Robo Jack’s about how to hook up one of these things and I couldn’t
figure out how to do – I spent all morning working on I couldn’t find any
information online I did look through a lot of Arduino chat rooms and stuff and
found found some some stuff that help me fix some of the things but we’re gonna
be using two max 66 75 thermocouples and it’s just this guy right here it’s just
a $6 on Amazon I’ll link all the parts in the description down below or you can
just go you’re gonna click on them and buy them if you want and then when using
the digital display it’s just a four digit digital display and then we’re
actually using a mega 2560 r3 Arduino board I don’t know if I’m saying Arduino
right I’m southern and it comes out sent and fine to me so if it comes out
sounding hilarious to you here welcome on that I think it’s funny I don’t feel
like I’m saying it right at all but anyways if that sounds like something
two interests you stick around I’m gonna go through all the code how I did
everything and how I got this to work or in the future you can you can do it too
if you enjoy it give me a like and if you liked it go ahead and subscribe
thanks for watching guys I guess I’m just gonna go over the parts right quick
one more time just so you can get a picture of them this is the thermocouple
it’s a Mac 66 75 thermocouple and like I said it was six dollars on Amazon and
like I said I’d lock my link it link it all in the description so you can go
back and and find it and now on if you want to the board we’re using is
the mega 2560 and like I said the mega gives you all these extra pin outs over
here and that’s how I had the room to hook up the southern thermocouple so
here’s other thermocouple this number couples sending the the reading to this
guy and then this one sending it to this one if I can get it up here to where you
can see it I just sent in the reading to that one so we’re gonna go through all
the different all the code stuff of the house sell this up and all the pin outs
and stuff so if you have one of these boards or if you buy one like this you
should be able to take my code the code I’ve edited and loaded tears and it
worked just the same so let’s go to the code right quick and we’ll come back and
hook all this stuff up alright guys so here’s the code and the first two things
we’re going to do is we’re going to get our libraries and let’s see the max 66
75 library you just go to github and go to max 66 and 5 library you’re gonna
click on this to download once you click on it just going to download zip once
you download it you’re gonna open it and then you’re gonna right click on it or
always just right click and then our extract 2 and then you’re going to come
in here to your documents almost have a trouble finding documents on here for
some reason my documents and you’re gonna go to arduino right there and then
are doing those libraries and you’re gonna right click on that or just
highlight that and then hit OK and it’s gonna it’s going to add that file to
your library we’re gonna do the same thing with the Arduino the team 1637 that’s for our
display someone do the same thing we’re gonna click on this download open
extract to the libraries photo in arduino ide alright guys so this is how
I got the code for the project I went to Robo Jack’s comm slash line ordering
Arduino I’ll put this link in description we can come here to this
same page and here’s the video from rebel Jack’s that shows how to hook up
one of these guys with the relay we’re going to take the relay out of the coat
the sketch so you come down here and this first one is for without relays
it’s just for the thermocouple then you’ve got with the thermocouple or with
the relay with no display and this bottom one has adrenal code
maxie 675 thermocouple k type with relay and display so this is the one we want
so what I did here was I came here and I highlighted all of this and copied it
and then I came into my IDE which I’m using just their Arduino IDE and pasted
it into a empty sketch and then here is the sketch there is the code that I’m
using for the project so this is the one that I edited to get it to work for for
having two displays and you can use use it for 3 for as many as your board can
hold pretty much as long as you keep at them the way I’m doing it
and so what it did was is this is the copy from rebel Jack’s that I just
showed you how to get and then this one’s for the actual one that I finished
that I’m that I’m using so as you can see right here it comes with this first
set of integers which the thermo do for thermo cs5 their most clock six so I did
the same thing that I just copied that and pasted this underneath it and so I
added a two to the thermo D be able to see us too and clock to right here and
then I set the Pens to 45 47 49 and if I understand this correctly you don’t have
to use separate pens for all these dioz you can actually share the do and the
see okay I might be wrong on that like I said I’m brand new to this so I’m not
gonna but the ones you do have to share is these is your CSP and so you could
technically connect six and 45 to the same pen and four and forty nine and
then actually have two separate CES pens here I kind of want this one just plug
that into boards that’s why I did it this way and then for the code for
displayed I copied this right here into my code and I changed these the first
two o’clock o’clock is nine and you drone out out is 11 and that’s the same
as the code there then I came in here and I copied that
and pasted it again right below it and gave me a CLK 229 and a DI 231 so
basically is for the second display first display second display and then
it’s got the amount of time in milliseconds between tests so two
seconds here and then here’s the display one settings which this one I added that to this to here I added the
team 1 637 display because display 1 because I’m gonna use two separate
displays and then this is where I was having trouble that when I was trying to
get this to work was this this is how it looks when I wrote when I wrote all
right when I found this part and I was trying to add my display 1 display to to
this part well that’s referring to my library and
it wouldn’t work and finally I found somewhere on chat room somewhere where
they said to add your one to your displays and set it to what you’re
naming them so and that that worked good and then of course I got a CLK at a Dao
here for the first display and then I see okay – in a DI OH – for the second
display alright then you got the next time a couple needs for the further pins
to be a voltage and ground pins we just set up the integer and I believe that
one’s actually right here so use that part there came back copied it and
pasted it right below it and then changed everything from thermocouple to
thermocouple to hear time o’clock to time OCS – and thermal do – and then
give it boat to Japan – and ground pin – instead of just BCC pin 3 and grandpa – all right not put this in here in case
you wanted to since the first display isn’t using it is a plugin directly into
the board I’m actually pulling the voltage in the ground from the five
votes and the ground pin on the actual board so I’m gonna happen to set up a I
pin my wood all right set the VCC pins in the Grampian like I didn’t own
the first one are further on this one right here because this for my display
display too so if you want to you can unblock these comments right here and
you can use it and just add whatever you want to call it like if you want to call
it go to BCC pin for here BC ground pin for what pin you want here and then
here’s the actual pin out for the voltage pin and ground pin for the
second display and I changed CC okay to di or to there which is so I have these right here now that we
have these these voltage pin set is three and ground is to go to spin – so
this fifty-one ground pin – 53 and then VCC pin three and ground pin three said
here we have to come to here and set our pin out so we set our first pin out
which I copied from right here and just pasted it into this code or it was
already here actually when I started the code but you know it gives it VCC pin
output and digital rights PCC pin high to give us power there and then opposite
for the ground giving us an output and low and that’s feeding the power to our
first thermocouple right there two and three I’m never going to make one for
the BCC pin – and the ground pin – so we come copy that paste it right below it
add a two to the VCC pin attitude of the VCC pin here and two to the ground and
two to the ground here and we basically it’s it’s the pin outs for that one and
it may be the same thing for this third for the display 33 and 35 we did the
same thing VCC pin three matches that VCC pin 3 here and ground pin 3 much
it’s grown 3 pin here same thing here and then I set this up here we can if
you want to use despite one with about a BCC pin or a ground pin you can you can
just come here and undo this and then do the same thing you did right here
whatever name you put here but here whatever pin our anybody here put here
to here and here when you got the serial print line make 66 75 test and he’s got
the same thing here right here okay then you get into
display brightness I copied all of this yes and put it in here and then this
integer right here was for the first display somebody that copied from here
up and I changed that to a four tip everything else was the same and to make
this is for our first display so it’s gonna set it display brightness one
display one brightness to this letsplay one dot segments that data data delay
one one thousandth of a second and then we have the temp that equals the temp on
the display there and make sure you put display one there too so they say I copy
what he put in here and I had to come back into add since I have made a
display one up here I had to put display one here and just play one here and just
play one here and just play to it didn’t I copied all this and paste it right
below it changed the one to a to 1 to a 2 here and 1 to 2 here now this is where
I was I was when I first set this up I was getting the same code or the same
readout on both of my displays and the reason why the reason why was because
these temps right here were still said is just temp and so it was reading the
second display but it was pulling the temp all these were the same
I had temp temp temp temp here so when I change these to attempt to and at empty
right here it heard the program that I had a nother display in the to put temp
2 into that into that one display and you can sit
here – this is the first time a couple because I have thermocouple right here
like I do up top you know I got thermocouple here and then for the
second one I put in the thermocouple – which we put in writes see there’s
thermocouple one it’s gonna be the code though right here maxi’s 695
thermocouple VCC pin it was three ground pin it was – I mean the same thing here
for this one so there’s a couple – in thermocouple I could have put a
thermocouple one on if I wanted to probably would have put more than more
than to these displays and thermocouples on here all
right then all this is is sterile printing to my computer screen so if I
come here and click on this it’ll start feeding this data that data into a
serial port and then this one does it for thermocouple number two if you want
to use Celsius for this all you have to do is delete these two guys right here
and block these two right here then you have to change these to Celsius read
instead of read Fahrenheit to be read Celsius and here thermocouple or said
read fair not read Celsius if you could if you can leave all these on all that’s
going to do is it’s going to print both for each thermocouple in two years so
your serial port so your monitor see right monitor on your IDE when I’m buddy that’s pretty much it
it’s like I said I’m brand new to this and there’s probably some stuff on here
that I’ve done wrong if there is let me know I really like think rubble Jax for
showing me how to do all this and then I kind of figured out how to add all this
put all this back in here for that for the second one bit all this codes gonna
be in the description for download the code that I’m using right here the one
that I’m using for this project so if you if you don’t want to do all this
work to it you can just download it and use it you just stick back for the next
part ok guys so now all I’ve got here is I’ve got the board here and all this is
doing is sending ground in five votes to my breadboard here where I’ve got one of
my displays hooked up and if you look at the display on the back of the display
you get a clock it’s the first one and VI was the second and since this is
going to be for our first display we’re gonna hook it up we go back to our code
and look at our display it’s gonna be clocks gonna be pin nine so clock is
gonna go to pin 9 and clock is going to pin 9 and the aisle is going to 11 so we
go to 10 to 11 there alright so and then this is just sending power to here and
then we’ve got voltage coming off here and jump into these pins it’s on our
actual board here and that’s why I didn’t have to set up another pin mode
for this one because I’m just I’m taking power straight from from the board right
here and going to that one now the other ones are a little bit simpler to hook up
this let’s do the second display the second display was let me see if I can
find it here second display was pluck was 29 31 and so on the back
of this right here you see 29 and 31 that right next to clock do and then our
voltage was a 33 and 35 if you look at the code so we had to set that to pin
mode out 33 was the voltage in and 35 was the was the ground so 33 so 29 to 35
right there so that one’s hooked up 29 to 35 all right now thermocouples hookup
just just as easy if you look at the first time a couple it goes voltage and
ground the ground is 2 the voltage pin is 3 thermal clocks for the CS is 5 and
the do is 6 so it just goes on in line here and these are a little different
they say you know VCC s CK instead of C okay CES is the same and then the do is
actually soo on these if you buy one like I like I’ve got here so basically
all that’s going to do is just go through from pen to to pin 6 and hook in
just like that and then the other one is our voltage ground forces and ground is voltage pin is 51 ground pins 53 so our
ground pins first so we have 51 as our voltage 53 is our ground so 5351 and then 49 and
47 should be 5351 and then we have 49 47 and 45 so it plugs in just like that so
if you have if you have the same few about these same boards everything that
I have here you should just be able to hook all this up just like I just did
and use the same code that I put on it and everything and it should work fine
just plug it up and see what happens well our guys I figured out what I did
wrong I had these two pans right here swapped with each other so it was
causing this screen not to come on so I guess if I put something aside some blue
pen who jumpers I’d probably it’d probably help out
vini who so now we’ve got both sensors reading different temperatures I just
had this one right here on the heater for a few minutes just to see let it
just show a difference on it so we’ve got 81 on this one I know this
one’s hard to see but it says it says 73 on it 74 well guys I hope you enjoyed
the video and if you have any questions about it I leave them I’ll do as best I
can do to attach from like I said I just started doing this stuff so there’s
prime not not a lot I can help you with if there’s something I’ve done that that
you know that I could do different to make it a lot easier for me to run this
program let me know live in the comments see me and send me an email or anything
I hope you liked the video if you did give me a lot and if you liked it please
subscribe thanks for watching guys


Add a Comment

Your email address will not be published. Required fields are marked *