Page 1 of 1
MCP960X thermocouple add read/write register
Posted: Fri Jun 28, 2024 3:59 pm
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 (16.73 KiB) Viewed 6177 times
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 8:37 am
by medelec35
Hi Stefan.
Can you see if the attached works for you.
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 9:52 am
by stefan.erni
Hi Martin
Yes the commands are there, but I can not compile it on ESP32 wroom.
Here the msg file:
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 10:19 am
by medelec35
Thank Stefan, ESP is so fussy.
Can you try this version please.
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 11:27 am
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 (159 KiB) Viewed 6120 times
result in a terminal program:

- 2024-07-02_12-13-50.PNG (11.28 KiB) Viewed 6120 times
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 11:41 am
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.
Re: MCP960X thermocouple add read/write register
Posted: Tue Jul 02, 2024 12:48 pm
by medelec35
Hi Stefan.
The updated component should available via the library now.