-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always getting Nan output readings when using the TCTemp function for thermocouple setup #12
Comments
Hi @caldecy, |
Hi @leonardocavagnis, Thermocouple model: The code that I use is the Temp_probes_Thermocouples.ino And the result I get is "nan" for all channels' output. A forum on Arduino also has a similar issue. I reached out to Arduino support team and they have since feedback that they are also aware of this library's issue with K-type Thermocouples but a new version release is not expected soon. |
Thanks for reply! |
Yes I am using 1.0.1 when I first encountered the issue. I tried using 1.0.0 too but faced the same issue.
Sent from Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Leonardo Cavagnis ***@***.***>
Sent: Friday, May 10, 2024 10:50:20 PM
To: arduino-libraries/Arduino_PortentaMachineControl ***@***.***>
Cc: caldecy ***@***.***>; Mention ***@***.***>
Subject: Re: [arduino-libraries/Arduino_PortentaMachineControl] Always getting Nan output readings when using the TCTemp function for thermocouple setup (Issue #12)
Thanks for reply!
What library version are you using?
Please, verify you're using the latest (1.0.1).
—
Reply to this email directly, view it on GitHub<#12 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIB52GCP4PFZFHPM3DKC7P3ZBTNCZAVCNFSM6AAAAABHMA6SFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUG42DOMBVHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Did you also try the old version of Portenta Machine Control library? |
Yes, and that’s the only way that worked for my setup and project.
…________________________________
From: Leonardo Cavagnis ***@***.***>
Sent: Saturday, May 11, 2024 12:36 AM
To: arduino-libraries/Arduino_PortentaMachineControl ***@***.***>
Cc: caldecy ***@***.***>; Mention ***@***.***>
Subject: Re: [arduino-libraries/Arduino_PortentaMachineControl] Always getting Nan output readings when using the TCTemp function for thermocouple setup (Issue #12)
Did you also try the old version of Portenta Machine Control library<https://github.com/arduino-libraries/Arduino_MachineControl>?
(not suggested to use the deprecated one, but just for double checking)
—
Reply to this email directly, view it on GitHub<#12 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIB52GFBYEPIVQJXF2YCN5DZBTZP7AVCNFSM6AAAAABHMA6SFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUHEYDMOJUGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sorry, we don't support platform.io. If you can retry with the latest Arduino IDE or cli and report if the error still occurs we'll be able to help you. |
I am facing the same issue: Official Arduino IDE 2.3.2 Thermocouples read NaN using the Examples code, RTDs work fine, but are unfortunately not an option for my project. Old Arduino_MachineControl library works, reads correct TC temperatures. @leonardocavagnis could you reproduce the problem? |
Sorry for the late reply. |
Thanks for the reply! |
Hello, I am also facing the same issue. Version 1.2.1 of the library, Arduino IDE 2.3.4, MBED OS Portenta V4.2.1 I have one thermocouple (non-grounded) connected to channel 0 and the base example shows all NaN. I have also repeated this with the same response on two separate boards with the same wiring. Just uploaded my code using the old library and that is working as usual. Please let me know if you need anymore info. Thanks, |
Hi @SamThomasIaaps and @jonas-hagen, I’m currently unable to replicate the problem on my end, so I would need as many details as possible to assist you better. Could you please provide more information about the thermocouple? What is the model? Is it grounded or ungrounded? Is it Type J or Type K? Which channel are you using? Is your setup aligned with the connections shown below? If possible, please share a picture of your setup. Thanks |
Thanks for investigating further. We used:
|
@jonas-hagen thanks! The PMC you're using has this chip near the |
Yes, it has this chip as far as I can remember. Let me check on Monday. |
We are using non grounded type K thermocouples connected as in the diagram, here is the part number from RS Components 397-1264. I have tried these in all three channels. Also our board has the chip next to the temp probes label. Finally, I have tried a 3-wire PT100 on channel 0 with the same library and that is working as expected. Thanks, |
Hi, I tried compiling the sample code for Thermocouple and upon checking the serial monitor output, it only reads "nan". I've checked that the thermocouple is functional, connected properly to CH0 and supplied with adequate power. I'm using the Portenta AKX00032 device to read the thermocouple values. Any help would be appreciated! Thank you.
The text was updated successfully, but these errors were encountered: