Change hotend thermistor input in Marlin

6

I have a Marlin driven Prusa i3 clone, by accident I cut through both thermistor wires for the hotend while it was powered on. The Arduino reset and the hotend thermistor no longer work.

Since there is a spare thermistor input on the RAMPS board I was wondering if I can change the input pin assigned to the hotend thermistor in the software? I've looked around (the code and the internet) and so far have only found out how to assign the thermistor type for the spare input, not how to tell Marlin to make temp_sensor_2 be the input used for the hotend?

If anyone could help me figure out how to change the hotend thermistor input number I would be greatly appreciative!

user16708

Posted 2019-06-08T18:37:34.153

Reputation: 61

Answers

4

In pins_RAMPS.h you find which pins are used for which thermistor:

//
// Temperature Sensors
//
#define TEMP_0_PIN         13   // Analog Input
#define TEMP_1_PIN         15   // Analog Input

To use the other thermistor, you would need to swap the numbers:

//
// Temperature Sensors
//
#define TEMP_0_PIN         15   // Analog Input
#define TEMP_1_PIN         13   // Analog Input

0scar

Posted 2019-06-08T18:37:34.153

Reputation: 25 570

Thank you so very much! – user16708 – 2019-06-09T15:13:19.703

@user16708 You're welcome! At SE sites, appreciation is shown by upvoting an accepting answers. Welcome to 3D printing.SE! Please take the [tour] and browse the [help] section. Welcome on board :) – 0scar – 2019-06-10T19:54:52.733

Well I am having same problem, I changed the pin no and pin 15 is working but all other pin (12, 13, 14) are not working. I am using Anycubic Trigorilla... Can I use any other pin for this? – Wasif Shahid – 2020-08-23T09:03:57.073