<p>If there are 2 slots for temperature measurements, you don't need to solder anything, just plug the thermistor from one into the other and switch pins in the firmware. This board is basically a RAMPS 1.4 board, it includes the <code>pins_RAMPS.h</code> header file, so in order to switch the T0 with the T1 temperature port, you need to change:</p>
<pre><code>//
// Temperature Sensors
//
#ifndef TEMP_0_PIN
  #define TEMP_0_PIN                          13  // Analog Input
#endif
#ifndef TEMP_1_PIN
  #define TEMP_1_PIN                          15  // Analog Input
#endif
</code></pre>
<p>to:</p>
<pre><code>//
// Temperature Sensors
//
#ifndef TEMP_0_PIN
  #define TEMP_0_PIN                          15  // Analog Input
#endif
#ifndef TEMP_1_PIN
  #define TEMP_1_PIN                          13  // Analog Input
#endif
</code></pre>

CC BY-SA 4.0
2021-04-01T17:20:39.527Z
Ok, thanks. I had to solder the pins since there was no way to insert the cable directly into the board, i do not know how to explain it but f you see he inside of the Anycubic Mega you can understand it immediately. I have edited the firmware and build it but it bricked the printer, i think the board its faulty since previously also the bed heating probe stopped working. Thanks by the way.
Antonio Esposito
CC BY-SA 4.0
2021-03-31T23:19:58.477Z
2021-03-31T23:19:58.477Z
0scar
<p>The thermoresistor on my Anycubic Mega displays nonsense temperatures (e.g. 700 °C), since the resistor in the hotend is working fine the problem is 100 % in the board (Trigorilla RAMPS 1.4). Someone suggested switching the pin of the thermoresistor from <code>T0</code> to <code>T1</code>, so I soldered it this way. Now I have to cook a personalized firmware for making it work. I opened a custom firmware in VSCode but I do not know what parameter I have to change, any idea?</p>

<firmware><ramps-1.4><anycubic-i3-mega>
How to change pin of thermo sensor?
Antonio Esposito
# How to change pin of thermo sensor?

(Asked by: username_0 on 2021-03-31)

The thermoresistor on my Anycubic Mega displays nonsense temperatures (e.g. 700 °C), since the resistor in the hotend is working fine the problem is 100 % in the board (Trigorilla RAMPS 1.4). Someone suggested switching the pin of the thermoresistor from `T0` to `T1`, so I soldered it this way. Now I have to cook a personalized firmware for making it work. I opened a custom firmware in VSCode but I do not know what parameter I have to change, any idea?

**Tags:** firmware, ramps-1.4, anycubic-i3-mega


---

## 1 answers

### Answer by username_1 on 2021-03-31. Score: 2 | Accepted answer

If there are 2 slots for temperature measurements, you don't need to solder anything, just plug the thermistor from one into the other and switch pins in the firmware. This board is basically a RAMPS 1.4 board, it includes the `pins_RAMPS.h` header file, so in order to switch the T0 with the T1 temperature port, you need to change:

```
//
// Temperature Sensors
//
#ifndef TEMP_0_PIN
  #define TEMP_0_PIN                          13  // Analog Input
#endif
#ifndef TEMP_1_PIN
  #define TEMP_1_PIN                          15  // Analog Input
#endif

```

to:

```
//
// Temperature Sensors
//
#ifndef TEMP_0_PIN
  #define TEMP_0_PIN                          15  // Analog Input
#endif
#ifndef TEMP_1_PIN
  #define TEMP_1_PIN                          13  // Analog Input
#endif

```

> **Comments:**
> **username_0**: Ok, thanks. I had to solder the pins since there was no way to insert the cable directly into the board, i do not know how to explain it but f you see he inside of the Anycubic Mega you can understand it immediately. I have edited the firmware and build it but it bricked the printer, i think the board its faulty since previously also the bed heating probe stopped working. Thanks by the way.  

---

