So I just found out why my Ultimaker temp measurements are off. Turns out some idiot thought referencing the ADC to USB +5V was a good idea.
-
-
Replying to @marcan42
Typical arduino coder: why use the built-in accurate voltage reference when you can use USB VBUS? Yeah, let's do that.
7 replies 6 retweets 35 likes -
Replying to @marcan42
Are you sure your used firmware doesn't switch to the internal bandgap reference (ACBG bit in ACSR)? Of course you should also decouple AVCC witch a LC lowpass from VCC for better preformance but a fixed reference for AVCC is definitely not mandatory.
1 reply 0 retweets 0 likes -
Replying to @Andreas90469014
Yes, I am sure. I read the code, and confirmed that bumping up VBUS to 5V fixes the temperature issue. By "built-in accurate voltage reference" I meant that internal bandgap. ACBG is for the comparator, BTW. You want REFSn in ADMUX for the ADC.
1 reply 0 retweets 1 like
There is no easy firmware only fix because the reference is 2.56V, which means the maximum temperature you can measure is 256°C with the 10mV/°C AD597. They should've divided down the input with e.g. a 2:1 resistor divider first, or used an external accurate vref.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.