element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experimenting with Thermistors
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Thermistors
  • More
  • Cancel
Experimenting with Thermistors
Challenge Blog Thermistors for Thermostats - Bonus Blog Post
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 19 Sep 2022 11:20 PM Date Created
  • Views 4882 views
  • Likes 6 likes
  • Comments 6 comments
  • molex
  • winners
  • thermostat
  • thermistor
  • Molex thermistors
  • experimenting with thermistors
Related
Recommended

Thermistors for Thermostats - Bonus Blog Post

ntewinkel
ntewinkel
19 Sep 2022
Thermistors for Thermostats - Bonus Blog Post

One of the backburner thoughts through this challenge was whether or not I could use a thermistor in a simple circuit to control my humming bird feeder heater.
So I did a little bit of extra experimenting...

Spoiler alert: it's not that simple.

Here was the thought: I could use a voltage divider with the thermistor, just as we have done when using it as a temperature sensor for microcontrollers, but use the output to control a transistor. I could use the 5 volt input from a USB phone charger that runs the heater to also run the circuit that would control it.

The first tricky bit I ran into is that transistors don't seem to just turn on and off with a voltage threshold - they kind of fade on and off as the voltage goes up or down.

I thought I could solve that by using a zener diode.

By using a zener diode rated for 4.7 volts, I could choose my voltage divider bias resistor to match such that the Vout of the voltage divider would be under 4.7 volts (=OFF) for temperatures higher than, say, 15 degrees C, and over 4.7 volts (=ON) for lower temperatures - that could then be used to control the transistor to turn on and off the 5v USB-powered hand-warmer heater I'm using to keep my hummingbird feeder from freezing.

I used an online voltage divider calculator to figure out that I could use a roughly 5.6 kOhm resistor for the bias resistor, and it should work to get the correct voltages to control the transistor, and thus the heater. I'm using an LED as a simple test, and I realize that once I got it running I would likely need a second transistor to control the heater, rather than having this one power it directly.

Here is a picture of my notes... noticeably erased and rewritten several times over before I got it sort of right :D

It includes my theoretical circuit too.

my scribbles

I then proceeded to build it on a little breadboard to try it out:

image

But when I turned it on...

image

Hmmm....

It's definitely not under 15 degrees in here :/
And touching the thermistor didn't turn it off either.

I then measured the input voltage going to the breadboard and I realized at least one of my assumptions was wrong: the input voltage is not exactly 5 volts. In fact, depending on which charger I use to power the board, it can vary from 5 volts to 5.2 volts. I think all of that is within the USB standard.

Checking the voltage divider calculator, I noticed that a small voltage change like that can have a huge impact on the trigger point of the circuit. Sigh.

It's very possible I messed up something in the way I built the circuit, but it does seem to be very sensitive to input voltage, regardless of whether that's an issue.

So then I guess I have a few options - I could possibly use a 3.3v regulator to power the voltage divider circuit, but then I'd have to use a different zener diode. I'm not sure if that would work, but it will definitely add more complexity to the circuit.
The other option is that I've noticed people using OpAmps for this kind of control circuit, which I think takes care of issues with voltage fluctuations, but I'm not sure.

I've also read that PTC thermistors, which increase their resistance with temperature, could be used (almost?) directly in line with the heater - as the temperature rises, the extra resistance will keep reducing the amount of current, and thus the amount of heating. Unfortunately, the kit only included NTC thermistors, so I wasn't able to try that out.

Conclusion:

Using a thermistor as a thermostat control circuit is not as easy as it first seemed!
The easiest option for me, at this point, is to stick with the bi-metallic thermostat that I'm currently using. It's a bit rough but does the trick of keeping the nectar warm while not letting it get too warm.
I do intend to check out a few chip-style temperature switches in the future too, as those are small, and it appears I could use one to control a transistor with much better accuracy than I have now.
I was hoping to keep the heating separate from the monitoring, but I guess another possibility could be to use the same microcontroller that monitors the temperatures to also control the heater. Those little ESP-based controllers I'm using have been VERY reliable. I've had to reset the Raspberry Pi server a few times, but never those sensors, so that would probably be a trustworthy enough option.

  • Sign in to reply

Top Comments

  • scottiebabe
    scottiebabe over 3 years ago +1
    Using the thermistor in a bridge configuration make life easy! For some critical temperature you either look up or calculate the thermistors resistance. Then create a second voltage divider using that…
  • rsjawale24
    rsjawale24 over 3 years ago

    Hey! Great idea. I have used an opamp to realise the same circuit that you are trying to achieve. You can set the trigger point and sensitivity using a potentiometer. 

    I'm using a voltage divider for setting the reference voltage however the voltage divider using resistors is not a good implementation because the resistance tends to vary as the resistor heat up due to current flow and this will change the reference voltage.

    Another method to set a fixed voltage reference is to use a zener diode or best possible method is to use a bandgap voltage reference. There are many ICs available for this and a bandgap voltage reference is temperature independent! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube