<p>Thermistors, commonly used as temperature sensors on 3D printers and other DIY things, work by changing their internal resistance depending on the temperature.</p>

<p>On the analog ports, the microcontroller can determine the voltage of the connected signal.</p>

<p>To actually measure the resistance - and thus temperature - of the thermistor, you need to build a voltage divider:</p>

<p><a href="https://i.sstatic.net/UIeHS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UIeHS.png" alt="Voltage Divider. Source: circuitdigest.com"></a></p>

<p>Most, if not all, 3D printer control boards use a resistor of 4.7 kOhms and a capacitor to build this voltage divider:</p>

<p><a href="https://i.sstatic.net/OU0HW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OU0HW.png" alt="RAMPS schematic. Source: reprap.org"></a></p>

<p>You'll need at least this 4.7 kOhm resistor to get your thermistors working on any analog pin, if the three thermistor ports on the MKS Gen L don't suffice for you needs.
You could also use other temperature sensors, especially for the case, like the DHT11 or DHT22, however I couldn't find whether they're supported by Marlin yet.</p>

CC BY-SA 4.0
2019-08-29T09:39:49.943Z
For those not having a great background in electrical engineering, you might want to explain to others why the RAMPS 1.4 shield doesn't use 2 resistors for the divider (like in your picture), but a 2 resistors (including the thermistor) and a small 10 uF capacitor (infinite resistor), please explain.
0scar
CC BY-SA 4.0
2019-08-29T09:51:53.000Z
@0scar The thermistor takes the place of R2. The capacitor may be for smoothing the output signal. I don't think it's intended use is to pull the voltage low for a short time when the unit is switched on, although it will have that effect. Or maybe it is, because the signal will end up at Vcc and the software could use that to detect if there is no thermistor connected.
Andrew Morton
CC BY-SA 4.0
2019-08-29T10:48:04.113Z
@AndrewMorton I understand, but thanks for filling in the blanks for others, the comment was meant for the author to update the answer, you can also add this information by updating the answer. Comments are meant for questions so that the answer can be updated.
0scar
CC BY-SA 4.0
2019-08-29T12:58:08.267Z
@0scar Do you happen to *know* the purpose of the capacitor, so I could make a correct update to the answer?
Andrew Morton
CC BY-SA 4.0
2019-08-29T13:50:15.707Z
I don't totally understand how it is smoothing the signal either. I wanted to say it is acting as a low-pass filter, but after looking at the circuit, the resistors/capacitor is divided over the signal.
K Mmmm
CC BY-SA 4.0
2019-08-29T06:20:38.953Z
2019-08-29T09:28:31.630Z
2019-08-29T09:28:31.630Z
towe
<p>Temperature is showing about 680&nbsp;&deg;C at room temperature. When I make it "hotter" by holding my thumb and index finger on it, the temperature does increase. So it is responding to temperature changes.</p>

<p>I'm trying to add some thermistors to my MKS GEN L v1.0 board:</p>

<p><a href="https://i.sstatic.net/YlGDW.png" rel="nofollow noreferrer" title="MKS GEN L v1.0 schematics"><img src="https://i.sstatic.net/YlGDW.png" alt="MKS GEN L v1.0 schematics" title="MKS GEN L v1.0 schematics"></a></p>

<p>I'm using the <code>A11</code> pin and <code>GND</code> in the picture above. </p>

<p>The thermistor works correctly when plugged into the <code>HE1</code> temperature pin. So the thermistor is fine hardware-wise.</p>

<p>The thermistor is set to be the "Chamber" thermistor in Marlin 1.1.x. This just means it is supposed to record the temperature of the enclosure. I don't know if there is some kind of volatility issue with the chamber constant in Marlin.</p>

<p>The thermistor has the same settings in Marlin for both <code>HE1</code> and the chamber one. They are both set to "thermistor 11" for the 3950 type of thermistor. So the most visible setting implies they should be treated the same firmware-wise.</p>

<p>I've also tried the other extra Analog pins in the AUX-2 port.</p>

<p>What could be the issue here? </p>

<p>If these are the only available analog pins, how can I add more thermistors to my set-up so that they're available in Marlin?</p>

<p>Is there any way I can use the AUX-1 port?  It doesn't seem to be an analog pin like in the photo for this particular version of RAMPS. I tried pin <code>A3</code> but it didn't work.</p>

CC BY-SA 4.0
2019-08-31T11:39:51.583Z
In my experience I had reading of about 700 degree when thermistor was somehow shorted to aluminium block together with heater cartridge. Basically the screw that hold thermistor is pushing too hard on thermistor wires.
Serge Rabyking
<marlin><thermistor>
Weird temperature reading using thermistor on MKS GEN L v1.0 AUX-2 analog pins
K Mmmm
# Weird temperature reading using thermistor on MKS GEN L v1.0 AUX-2 analog pins

(Asked by: username_0 on 2019-08-29)

Temperature is showing about 680 °C at room temperature. When I make it "hotter" by holding my thumb and index finger on it, the temperature does increase. So it is responding to temperature changes.

I'm trying to add some thermistors to my MKS GEN L v1.0 board:

[![MKS GEN L v1.0 schematics](https://i.sstatic.net/YlGDW.png "MKS GEN L v1.0 schematics")](https://i.sstatic.net/YlGDW.png "MKS GEN L v1.0 schematics")

I'm using the `A11` pin and `GND` in the picture above.

The thermistor works correctly when plugged into the `HE1` temperature pin. So the thermistor is fine hardware-wise.

The thermistor is set to be the "Chamber" thermistor in Marlin 1.1.x. This just means it is supposed to record the temperature of the enclosure. I don't know if there is some kind of volatility issue with the chamber constant in Marlin.

The thermistor has the same settings in Marlin for both `HE1` and the chamber one. They are both set to "thermistor 11" for the 3950 type of thermistor. So the most visible setting implies they should be treated the same firmware-wise.

I've also tried the other extra Analog pins in the AUX-2 port.

What could be the issue here?

If these are the only available analog pins, how can I add more thermistors to my set-up so that they're available in Marlin?

Is there any way I can use the AUX-1 port? It doesn't seem to be an analog pin like in the photo for this particular version of RAMPS. I tried pin `A3` but it didn't work.

**Tags:** marlin, thermistor
> **Comments:**
> **username_1**: In my experience I had reading of about 700 degree when thermistor was somehow shorted to aluminium block together with heater cartridge. Basically the screw that hold thermistor is pushing too hard on thermistor wires.  

---

## 1 answers

### Answer by username_2 on 2019-08-29. Score: 2 | Accepted answer

Thermistors, commonly used as temperature sensors on 3D printers and other DIY things, work by changing their internal resistance depending on the temperature.

On the analog ports, the microcontroller can determine the voltage of the connected signal.

To actually measure the resistance - and thus temperature - of the thermistor, you need to build a voltage divider:

[![Voltage Divider. Source: circuitdigest.com](https://i.sstatic.net/UIeHS.png)](https://i.sstatic.net/UIeHS.png)

Most, if not all, 3D printer control boards use a resistor of 4.7 kOhms and a capacitor to build this voltage divider:

[![RAMPS schematic. Source: reprap.org](https://i.sstatic.net/OU0HW.png)](https://i.sstatic.net/OU0HW.png)

You'll need at least this 4.7 kOhm resistor to get your thermistors working on any analog pin, if the three thermistor ports on the MKS Gen L don't suffice for you needs.
You could also use other temperature sensors, especially for the case, like the DHT11 or DHT22, however I couldn't find whether they're supported by Marlin yet.

> **Comments:**
> **username_3**: For those not having a great background in electrical engineering, you might want to explain to others why the RAMPS 1.4 shield doesn't use 2 resistors for the divider (like in your picture), but a 2 resistors (including the thermistor) and a small 10 uF capacitor (infinite resistor), please explain.  
> **username_4**: @0scar The thermistor takes the place of R2. The capacitor may be for smoothing the output signal. I don't think it's intended use is to pull the voltage low for a short time when the unit is switched on, although it will have that effect. Or maybe it is, because the signal will end up at Vcc and the software could use that to detect if there is no thermistor connected.  
> **username_3**: @AndrewMorton I understand, but thanks for filling in the blanks for others, the comment was meant for the author to update the answer, you can also add this information by updating the answer. Comments are meant for questions so that the answer can be updated.  
> **username_4**: @0scar Do you happen to *know* the purpose of the capacitor, so I could make a correct update to the answer?  
> **username_0**: I don't totally understand how it is smoothing the signal either. I wanted to say it is acting as a low-pass filter, but after looking at the circuit, the resistors/capacitor is divided over the signal.  

---

