I've been trying to nut out how to use the TC-08 serial version through python on windows. The device works fine in pico log.
Opening the device and setting up the channels appers to be okay (those functions return '1'), but I can't for the life of me figure out how to use get_temp..
The cold junction returns a value of ~2490, which seems about right sitting in my office, but get_temp always returns zero
Are there any python gurus out there who have acheived serial TC-08 glory on windows? Any pointers would be fantastic
Here's a basic version of what I've been fiddling with:
#tc-08.py
import ctypes as ct
## Interface with the dll
tc08 = ct.windll.LoadLibrary('tc0832')
If you call get_temp outside a loop you'll get 0 returned as it seems the pico needs to run through a few cycles before it starts returning temperatures.
I have attached a "How to use the serial TC-08 with python" script for anyone else who might be interested in getting their serial version to work with python in windows.