Skip to content

Nano RP2040 Connect temp reading never changes #9454

Discussion options

You must be logged in to vote

The line

    VRT = (3.3 / 1023.00) * VRT  # Conversion to voltage

should probably be

    VRT = (3.3 / 65535) * VRT  # Conversion to voltage

since read_u16() returns 0 .. 65535.

I have known-good thermistor code here that will need a little adaptation to your use case. I really should finish writing that generic thermistor module ...

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@pwl1821
Comment options

Comment options

You must be logged in to vote
2 replies
@pwl1821
Comment options

@scruss
Comment options

Answer selected by pwl1821
Comment options

You must be logged in to vote
2 replies
@pwl1821
Comment options

@pwl1821
Comment options

Comment options

You must be logged in to vote
2 replies
@pwl1821
Comment options

@scruss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants