New MCP690X Thermocouple Component.

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 698
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 585 times
Been thanked: 149 times

Re: New MCP690X Thermocouple Component.

Post by jgu1 »

Hi Martin!

Working perfect. :D

Jorgen.

medelec35
Matrix Staff
Posts: 1610
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 567 times
Been thanked: 531 times

Re: New MCP690X Thermocouple Component.

Post by medelec35 »

That's excellent Jorgen.
Thanks for letting us know.
Martin

stefan.erni
Valued Contributor
Posts: 883
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 173 times
Been thanked: 203 times

Re: New MCP690X Thermocouple Component.

Post by stefan.erni »

Hi Martin Hi Jorgen

I use the sparkfun MCP9600 screw terminal board and an ESP32.
If I use I2C Softwaremode I can read the temp from the sensor correct.

but the K element gives me also some value but in the wrong direction
when I increase the temperature, the MCP9600 measures less.
In ic2 channel1 mode, it's not working. Always get 1931 as value.

I am still doing something wrong?

jgu1
Posts: 698
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 585 times
Been thanked: 149 times

Flowcode v10 Re: New MCP690X Thermocouple Component.

Post by jgu1 »

Hi Stefan Erni!

Sorry I have not mine connected up at the moment. I will try if I get time during the weekend. Could you please att. your project then I could give it a try. ;)

Br jorgen

stefan.erni
Valued Contributor
Posts: 883
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 173 times
Been thanked: 203 times

Re: New MCP690X Thermocouple Component.

Post by stefan.erni »

Hi Jorgen

I was able to solve one problem.
Until now, I always thought of the colour red as positive voltage and the colour yellow as ground, but not with the K-elements
The incorrect values are due to the different colours of the sensors wire. Red is not always the positive pin and yellow the negative.
So I have turned the sensor wires and the temperature is now measured in the correct direction.
2024-05-16_09-11-35.PNG
2024-05-16_09-11-35.PNG (343.62 KiB) Viewed 2731 times
An info about Thermocouple;
Thermocouple_Selection_Guide.pdf
(1021.17 KiB) Downloaded 157 times
a short description of my project:
My Board with a ESP32 and sd-card 4wire:
2024-05-16_09-35-19.PNG
2024-05-16_09-35-19.PNG (652.99 KiB) Viewed 2731 times
a few sensors
I have not yet decided whether I will use it for screwing or plugging
screw:
2024-05-16_09-42-05.PNG
2024-05-16_09-42-05.PNG (324.31 KiB) Viewed 2731 times
plug:
2024-05-16_09-43-11.PNG
2024-05-16_09-43-11.PNG (355.16 KiB) Viewed 2731 times
i have not decided yet if i will change the board with the addresses or use a multiplexer
2024-05-16_09-36-43.PNG
2024-05-16_09-36-43.PNG (465.27 KiB) Viewed 2731 times
I can give you parts of my software if you are interested

regards

Stefan

jgu1
Posts: 698
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 585 times
Been thanked: 149 times

Re: New MCP690X Thermocouple Component.

Post by jgu1 »

Hi Stefan!

40cm error :lol: nice it´s sometime so easy. Yes if not to much work, I will be happy to see what you have done in your program. ;)

Jorgen

medelec35
Matrix Staff
Posts: 1610
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 567 times
Been thanked: 531 times

Re: New MCP690X Thermocouple Component.

Post by medelec35 »

Hi Stefan.
I have just tested my MCP9600 on CH1 on Wroom-32 and is working as expected.
What pins are you using for data and clock?
Martin

stefan.erni
Valued Contributor
Posts: 883
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 173 times
Been thanked: 203 times

Re: New MCP690X Thermocouple Component.

Post by stefan.erni »

Hi Martin

on the Wroom_32
SDA A21
SCL A22

I used channel 1


2024-05-17_11-25-05.PNG
2024-05-17_11-25-05.PNG (25.16 KiB) Viewed 2699 times
2024-05-17_11-27-17.PNG
2024-05-17_11-27-17.PNG (13.17 KiB) Viewed 2699 times

medelec35
Matrix Staff
Posts: 1610
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 567 times
Been thanked: 531 times

Re: New MCP690X Thermocouple Component.

Post by medelec35 »

Thanks Stefan.
I have tried with CH1 on the Wroom-32 and with the same pins as you and it's working for me.
Martin

stefan.erni
Valued Contributor
Posts: 883
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 173 times
Been thanked: 203 times

Re: New MCP690X Thermocouple Component.

Post by stefan.erni »

Hi Martin

in the future i will create a simpler programme only with sensor i hope it will work for me too.

I think I'm on the right track to build a very good temperature logger with flowcode.
I have to build a logger which during 2 minutes
the temperature at 8 positions and record it.
During this time I measure with 10hz and expect a temperature of 20 degrees up to 50 degrees. I want to measure with a resolution of 0.1 degree

it's working at the moment. But there is still a small problem.
I do a simple test and touch the sensor

When I read out the 16 bit integer I get a resolution of 1 degree celsius. This is not useful.

If I read float I get much more accurate values. I use 10Hz samplerate
but even with float there are large jumps and the values remain the same during some measurements.
This MPC9600 has many settings. How can I adjust these or know what they are set to?

Samplerate and resolution:
2024-05-17_14-04-04.PNG
2024-05-17_14-04-04.PNG (100.26 KiB) Viewed 2706 times
read 16bit:
2024-05-17_13-00-02.PNG
2024-05-17_13-00-02.PNG (53.72 KiB) Viewed 2706 times
read Float:
2024-05-17_13-07-55.PNG
2024-05-17_13-07-55.PNG (51.34 KiB) Viewed 2706 times

Post Reply