Welcome! Log In Create A New Profile

Advanced

SOLVED:WHAT Im doing wrong - reading analog PIN port?

Posted by LacoD 
SOLVED:WHAT Im doing wrong - reading analog PIN port?
August 30, 2018 10:59AM
My board is MKS_GEN_L v 1.0

I added PT100 thermistor with amp. board.

I changed the thermistor type at configuration.h to TEMP_SENSOR_0 20 (for PT100)
I changed in pins.h the connected PIN to TEMP_0_PIN 11 (analog port 11)


When I check the status of this analog PIN with M43 command, I see, that the value is there
PIN:65 PORT: K3(A11) unused/unknown Analog In=252 Input 0 with connected PT100

When I disconnect the thermistor, there is value Analog In=780

But the desk is still reading the former original thermistor port .
When I connect to this port the 100k thermistor, Im getting correct value

The Marlin just refuses to use the analog port 11.
I can not tell Marlin to read the analog port 11

What Im doing wrong?

Edited 1 time(s). Last edit at 08/30/2018 12:06PM by LacoD.
Re: WHAT Im doing wrong - reading analog PIN port?
August 30, 2018 11:35AM
The MKS GEN L board uses the pins_ramps.h file, are you changing the temp_0 pin in there?
Re: WHAT Im doing wrong - reading analog PIN port?
August 30, 2018 11:52AM
eye popping smiley

No.
Going to try. Will report.
Thanks
Re: WHAT Im doing wrong - reading analog PIN port?
August 30, 2018 12:05PM
Now I have a second problem:

How I can deliver to you a smileys with beer

Thanks a lot
Its worked.

I spend a half day to try to figure out this mystery.

Thanks a lot.
Sorry, only registered users may post in this forum.

Click here to login