Welcome! Log In Create A New Profile

Advanced

Temperature (ADC) Calibration

Posted by johneato 
Temperature (ADC) Calibration
August 29, 2014 05:21AM
Quote
DC42
1. I have added optional parameters L and H to the M301 (set hot end PID parameters) and M304 (set bed PID parameters) commands. These allow the offset and gain errors inherent in the SAM3X ADC to be corrected. The values you set are stored to flash memory, so they survive power down cycles and resets, but not re-flashing the firmware (which sets both values to zero). You can use positive or negative values, integer or fractional. The H parameter affects mostly the low-temperature readout, and the L parameter affects mostly the high-temperature readout. To determine the correct values for your Duet board:

(a) Simple method: with the hot end at room temperature and a thermometer to tell you the temperature, send command M301 Hnn for various values of nn until you discover the value of nn that gives the correct temperature readout. Do not set the L parameter.

(b) More accurate method: replace the hot end thermistor by a 100K 1% resistor and adjust the H parameter to get a reading as close to 25C as possible (you probably won't manage exactly 25.0C because the DAC quantum is about 0.6C at this temperature). Then substitute a 220 ohm 1% resistor and adjust the L parameter to get a reading of 260.1C. Then change the resistor back to 100K, check you are still getting a reading close to 25C, and fine-tune the H parameter if necessary.

The parameters you use for the hot end should also be correct for the bed, so when you have determined the correct hot end parameters, send an M304 command with the same H and L parameters. However, you can use different M301 and M304 parameters if you wish.

EDIT: the values you end up with should be between about -100 and +100. For my own Duet I am using H18.2 L-14.

EDIT 2: changed above to use a 100K resistor instead of 220K.
I want to upgrade to two nozzles and have just upgraded from a very stable DC 0.58e to DC's latest software 78o, all went well and a few tweaks here and there and the printing is back to its normal quality. I had to trawl back through lots of posts to find all the changes.
The only bit I am not happy with is the command M305 P1 H0 L0 , trying to find the correct H L values. I am using DC's Mk1 ir sensor. I found an old post about calibration, detailed above, and wondered if it was still valid. M301 doesn't seem to work anymore, but I could set the two calibration points by using G305. Is this correct with the Mk 1 & 2 boards. Apologise if this has been covered but I can't find a later reference in the posts.
Re: Temperature (ADC) Calibration
August 29, 2014 05:57AM
Hi John, yes that's all correct. The ADC calibration has nothing to do with what hot end or z probe board you are using. The parameters have been moved from the M301 command to M305 by agreement with RepRapPro. The same H and L parameters you used with the M301 command (if you were using any) should be the correct ones to use with the M305 command, assuming you are using the same Duet board.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Temperature (ADC) Calibration
August 29, 2014 06:07AM
Quote
DC
Hi John, yes that's all correct. The ADC calibration has nothing to do with what hot end or z probe board you are using. The parameters have been moved from the M301 command to M305 by agreement with RepRapPro. The same H and L parameters you used with the M301 command (if you were using any) should be the correct ones to use with the M305 command, assuming you are using the same Duet board.
Thanks David, clearly a bit of brain fade, on my part, with regards the ir sensors and temperature sensor.
Sorry, only registered users may post in this forum.

Click here to login