Welcome! Log In Create A New Profile

Advanced

Marlin reading wrong analog inputs? (RAMPS14)

Posted by curator23 
Marlin reading wrong analog inputs? (RAMPS14)
April 30, 2020 11:56AM
Hi,


I'm having difficulty configuring temperature input for a heated bed on a Ramps 1.4 board.

The extruder input works correctly, but the bed input tracks the extruder input with a small offset.

I know from experience that this means the analog input being sampled is electrically isolated and the ADC is measuring the residual charge from the previous channel instead.

I have verified the electrical connection from the thermistor inputs to the analog inputs A13-A15 on the Arduino, and that the voltages are correct for the temperatures being read.

I've also checked Marlin to ensure that the correct board configuration is selected ( RAMPS_14_EFB ) and that the thermistor pin assignments in this configuration are A15, A13, A14.

I've also uploaded a simple program to read each of those ports and print the values to serial. The values read are correct.

Hardware is correct, firmware appears to be configured correctly, so why is Marlin giving complete bogus temperatures for the heated bed?


Cheers
Re: Marlin reading wrong analog inputs? (RAMPS14)
April 30, 2020 12:50PM
Through trial and error, I've found that selecting channel A1 gives the correct reading for a thermistor connected to A13.

This is with Marlin v1.1.9 btw.

Edited 2 time(s). Last edit at 04/30/2020 01:01PM by curator23.
Sorry, only registered users may post in this forum.

Click here to login