• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Spice simulation models

Not open for further replies.


Well-Known Member
Most Helpful Member
When running spice simulations, while helping on other threads, I found it convenient to have models of thermistors and resistors whose values could be changed on-the-fly.
In case they would be useful to others I offer them here.



Well-Known Member
Most Helpful Member
Hello there alec,

That looks interesting.

If you would like to model the thermistor with the curve we usually see on the data sheets, you can incorporate this formula:

This is the standard curve for a thermistor without the extra 'C' constant which is usually not necessary. This will generate the same curve as seen on data sheets.

In the above, Ro is the resistance as measured at temperature To, and To is that temperature in degrees C.
B is a constant for the particular part number of the thermistor as given by the manufacturer, or can be calculated from a test of the thermistor.
Tc is the actual temperature of the thermistor also in degrees C.
Rx is the calculated resistance at temperature Tc.
Of course e=2.718281828459.

So for example with a typical B of 4000 and resistance at 20 degrees C of 10k, we have:

and so at the new temperature Tc=30 degrees C we get:

Rx=6372.73090938 Ohms.

You'll have to make three user parameters:
Ro, B, and To

so that users can change their thermistors to match the data sheet of the particular thermistor.


Well-Known Member
Most Helpful Member
Thanks Mr Al. That's a more elegant solution than mine. I only needed a rough-and-ready model, but I appreciate others may want a more realistic one. I'll rework the model and post it in due course.


Well-Known Member
Most Helpful Member
Thanks Eric.
Here's the revised NTC thermistor model (.asc, .asy and a Test .asc)



Well-Known Member
Most Helpful Member
Hello again,

Yes that's interesting too, and you'll notice i left off the 'C' constant because it is usually not needed, but even more to the point is it rarely shows up on data sheets for thermistors. So i figure the shorter version is just as good :)
Also makes solving for the constants a little easier.

You're welcome, and if your users cant find the data for their thermistor (the two constants Ro and B) they can be calculated from two measurements taken at two different temperatures Tc1 and Tc2 (which yield two resistances Rx1 and Rx2):


(To is usually taken to be 20 or 25 degrees C)



and so:

The formula for lnRo is much simpler if we use Kelvin and ln(R) for all the resistances instead of just R:

where R1 and R2 are in units of natural log Ohms, and T1, T2, and To are in Kelvin,

but probably nobody likes doing it that way :)
Last edited:
Not open for further replies.

Latest threads

EE World Online Articles