MCP960X thermocouple add read/write register

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 1046
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

MCP960X thermocouple add read/write register

Post by stefan.erni »

Hi Ben

I use the componeten MCP960X thermocouple to read the temperature.
I have 12 K-elements connected to the I2C bus and it works very well.
What I still need is to read or write the registers.
So that I know how the MCP9600 is configured and that I can change that.
Would it be possible to add read write registers commands like the others I2C components?

Add:
2024-06-28_16-44-14.PNG
2024-06-28_16-44-14.PNG (16.73 KiB) Viewed 6037 times

medelec35
Matrix Staff
Posts: 2028
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: MCP960X thermocouple add read/write register

Post by medelec35 »

Hi Stefan.
Can you see if the attached works for you.
Attachments
MCP960X_Thermocouple.fcpx
(5.88 KiB) Downloaded 277 times
Martin

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: MCP960X thermocouple add read/write register

Post by stefan.erni »

Hi Martin

Yes the commands are there, but I can not compile it on ESP32 wroom.

Here the msg file:
L24_1.msg_error.txt
(153.04 KiB) Downloaded 323 times

medelec35
Matrix Staff
Posts: 2028
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: MCP960X thermocouple add read/write register

Post by medelec35 »

Thank Stefan, ESP is so fussy.

Can you try this version please.
Attachments
MCP960X_Thermocouple.fcpx
(5.89 KiB) Downloaded 268 times
Martin

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: MCP960X thermocouple add read/write register

Post by stefan.erni »

Hi Martin

Perfect! It's working fine.

I set in register 5 (SENSOR CONFIGURATION REGISTER) to value 6 (Filter Coefficient) then I read the register 5 and send it to USB C.
Even if i use two I2C multiplexer board it's working nice.

Program:
2024-07-02_12-14-40.PNG
2024-07-02_12-14-40.PNG (159 KiB) Viewed 5980 times
result in a terminal program:
2024-07-02_12-13-50.PNG
2024-07-02_12-13-50.PNG (11.28 KiB) Viewed 5980 times

medelec35
Matrix Staff
Posts: 2028
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: MCP960X thermocouple add read/write register

Post by medelec35 »

That's great, thanks for letting me know.
I will add the component to the release folder so it can be pushed to the update system.
Martin

medelec35
Matrix Staff
Posts: 2028
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 680 times

Re: MCP960X thermocouple add read/write register

Post by medelec35 »

Hi Stefan.
The updated component should available via the library now.
Martin

Post Reply