I'm trying to use an LM2596 chip to step down about 35V DC into the 5V to 12V range to control the speed of a fan that will be cooling an electronic device. And I want to use a thermistor to keep the device at a target temperature of say 50C degrees.

I might use one of the cheapo LM2596 boards that sell on Ebay and come with a 330 ohm resistor in place of R1, and a 10K ohm trimpot for R2.
And according to the formula provided with the LM2596 I would need a thermistor with a resistance range of 1K to 3K ohms to get the desired voltage range. So at 1K ohms the output voltage will be 5V, and 12V at 3K ohms. I obviously do not want to stall the fan either, and not go below 5V no matter how low the temperature is.
I have some 10K ohm thermistors that will read about 1K ohms at 50C degrees.
What would be an elegant solution/circuit to bring the thermistor output into the range LM2596 needs in this scenario?


I might use one of the cheapo LM2596 boards that sell on Ebay and come with a 330 ohm resistor in place of R1, and a 10K ohm trimpot for R2.
And according to the formula provided with the LM2596 I would need a thermistor with a resistance range of 1K to 3K ohms to get the desired voltage range. So at 1K ohms the output voltage will be 5V, and 12V at 3K ohms. I obviously do not want to stall the fan either, and not go below 5V no matter how low the temperature is.
I have some 10K ohm thermistors that will read about 1K ohms at 50C degrees.
What would be an elegant solution/circuit to bring the thermistor output into the range LM2596 needs in this scenario?
