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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Diodes and Bipolar Junction Transistors (BJTs) - Measuring the Temperature Coefficient
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 6 Oct 2018 6:55 PM Date Created
  • Views 4528 views
  • Likes 12 likes
  • Comments 5 comments
  • 2n3904
  • lm334
  • current source
  • bc547
  • temperature sensor
  • temperature sensors
  • milliohm measurement
  • temperature coefficient
  • bjt
Related
Recommended

Diodes and Bipolar Junction Transistors (BJTs) - Measuring the Temperature Coefficient

shabaz
shabaz
6 Oct 2018

Introduction

Diodes (or p-n junctions) make extremely low-cost temperature sensors! They are convenient, especially since they can be included on the silicon as part of larger designs into integrated circuits (ICs) - it costs almost nothing to include one : )

There are many dedicated ICs of course too, that use a p-n junction as a temperature sensor, and wrap an analog-to-digital converter (ADC) and a simple interface such as I2C around it. Again they are low-cost, and it is not unusual in large designs to have several of these or maybe a dozen or more inside a chassis! They provide great information about the state of the surrounding hardware, so that fans can kick in, or devices can produce alerts if something goes wrong.

 

All p-n junctions have a forward voltage drop, known as VF. That voltage drop is approximately 0.6-0.7V, but it reduces as temperature rises, by a few millivolts per degree C! That's the secret to using such junctions as temperature sensors.

 

A discrete diode, or a couple of legs of a discrete transistor, can also be used as a temperature sensor too, but it is not very common these days, because it would cost more to add the additional circuitry (to amplify up the few millivolts signal), compared to buying a chip. However, they can also be used as a form of analog compensation for circuits that drift with temperature. If a circuit has a positive temperature coefficient, then a diode could be used to null it out! This was the motivation (and see Even More on Current Sources and a Kelvin (4-Wire) Milliohm Meter  for more information) to try and better understand the VF behaviour. This blog post briefly discusses an experiment that was done to try to find out more precisely how much VF shifts by, as temperature changes.

 

Measuring VF

The forward voltage, as mentioned, varies with temperature, and that's the key to it being used as a temperature sensor. However, VF also changes depending on the amount of current passing through the p-n junction. And then just to make things worse, it could changes from one device to another. According to jc2048 a typical value recorded in many older books is to expect -2.5mV/degC change in the forward voltage, as temperature changes. The aim of this blog post is to find this value experimentally.

To measure VF, a constant current is passed through the junction, and the voltage is measured across it. For the test, current values of 1,2,3,4,5,6 mA were used.

I decided to test at room temperature, and at close to 100 degrees C, and then use these values to work out the VF gradient over the temperature range, which would be the temperature coefficient. The reason to select these temperatures is because I could achieve them with stability for long enough to take measurements. I'm not an expert in this, as I understand the experts would use scenarios involving glycol and refrigerators.

 

Selecting Components

I initially picked a 1N457 diode, because a Texas Instruments LM334 PDF document happened to mention its temperature coefficient was -2.5mV/degC. But I also chose some popular transistors, because a Diode Based Temperature Measurement PDF document, also from TI, suggested that using a BJT was better because it has a more consistent temperature coefficient.

These were the selected devices:

 

RefPartMnfrFarnell Code
A2N3904Nat Semi
B2N3904TA2N3904TAOn Semi9846743
CBC547BTFBC547BTFOn Semi2453790
DBC547CZL1GBC547CZL1GOn Semi9558578
EBC547CFairchild
F1N4571N457On Semi1467558

 

It was a deliberate decision to try to pick components from different manufacturers, so see if this made a difference. All parts were from reputable sources (the ones without a Farnell code were either purchased from Farnell or from Future Electronics, but I cannot track those any more, I'd had those for many years). The photo shows the assembled parts from right-to-left, A-F. The base and collector were shorted as the TI document had them in their schematics.

image

 

Building the Testbed

Epoxy glue (Araldite Rapid) was put on the component legs, in an aim to waterproof the joints. After it had set it was repeated for a total of 4 layers, to have confidence that all was sealed. A PT100 probe was also attached to the assembly, just to confirm water temperature. Next, tests were done at room temperature (see further below).

 

After the room temperature tests, further tests at 100 degrees C were needed. The assembly was attached to a stick and suspended inside a pan/pot. A PT100 temperature probe was also attached.

image

For the current source, a process calibrator was used, since these are portable and easy to move into a kitchen. For the VF measurement and temperature measurement, handheld multimeters were used. The PT100 provides a resistance that varies with temperature, so a normal multimeter set to ohms range can be used, and there are tables (and online calculators) to convert to a temperature reading.

image

 

Running the Tests

The procedure was to clip the current source and multimeter set to Volts together in parallel, and then connect to each component in turn, and record the measurement. For the 100 degree C test, the water was boiled, and kept on a medium heat. The PT100 probe confirmed that the temperature was close to 100 degrees C (to within about 0.2 degrees C) throughout the test.

image

 

Results

The results that were captured are recorded here:

image

 

 

VF (V)
Current (mA)ABCDEF
temperature:24.5
10.67340.6760.63510.63560.60930.674
20.69160.69450.65380.65440.62780.708
30.70250.70550.6650.66570.63880.728
40.71030.71360.67320.6740.64680.7424
50.71640.71990.67970.68060.65310.7536
60.72150.7250.68510.68620.65830.7626
temperature:99.82
10.5220.52480.47440.47520.44360.5355
20.54510.54860.49820.49940.46610.577
30.55920.56240.51250.51460.48070.6014
40.56860.57190.52220.5270.49030.6185
50.57630.58080.52930.5390.49880.6321
60.58390.5870.5370.54940.50530.6434

 

The temperature coefficient was the difference in VF, divided by the difference in temperature:

 

Current (mA)

A

2N3904

Nat Semi

B

2N3904TA2N3904TA

On Semi

C

BC547BTFBC547BTF

On Semi

D

BC547CZL1G

On Semi

E

BC547C

Fairchild

F

1N457

On Semi

1-2.01-2.01-2.13-2.13-2.2-1.84
2-1.95-1.94-2.07-2.06-2.15-1.74
3-1.9-1.9-2.02-2.01-2.1-1.68
4-1.88-1.88-2-1.95-2.08-1.64
5-1.86-1.85-2-1.88-2.05-1.61
6-1.83-1.83-1.97-1.82-2.03-1.58

 

The TI document referred to earlier had this chart for a typical transistor:

image

It can be seen that the experimental results were similar, they are very close.

The forward voltage versus current was also plotted, just for interest:

image

As expected, the VF value increased as the current through the p-n junction was increased.

 

Summary

The results show that for the two BC547 series diodes from On Semi (components C and D) had very similar behavior, especially at the lower currents, whereas the BC547 from Fairchild had a difference.

Surprisingly, the two 2N3904 devices from different manufacturers (Nat Semi and On Semi) had near identical behavior!

Also, it showed that perhaps -2.5mV/deg C is no longer as close an approximation as it could be; maybe -2mV/deg C is a more accurate general approximation.

Ideally more tests should be done, especially to see if there are any differences in many samples from one batch to another, and at different temperatures, but I hope the small bit of information here is nevertheless useful, or it might provide ideas for anyone who wishes to improve on the procedures. Thanks for reading! Also, thanks to fmilburn for working on a milliohm meter, which led to these measurements.

  • Sign in to reply

Top Comments

  • jc2048
    jc2048 over 6 years ago +5
    Good and useful stuff. I've had a look at a few more books and later ones did start to use "approximately -2mV/C", so what I wrote was slightly misleading (not deliberately, obviously). It might just be…
  • shabaz
    shabaz over 6 years ago in reply to 14rhb +3
    Hi Rod, Thanks! Almost proper : ) I forgot the lab coat
  • fmilburn
    fmilburn over 6 years ago +3
    Nicely done and great write up!
  • jc2048
    jc2048 over 6 years ago

    Good and useful stuff.

     

    I've had a look at a few more books and later ones did start to use "approximately -2mV/C", so what I wrote was slightly misleading (not deliberately, obviously).

     

    It might just be worth pointing out this is for silicon. Germanium, gallium nitride, and the various compound semiconductors used for LEDs may well be different.

     

    http://www.ti.com/ww/en/bobpease/assets/www-national-com_rap.pdf

    Page 113 "What's All This VBE Stuff, Anyhow?" is very good on temperature.

    Page 62 "What's All This Box Stuff, Anyhow?" is relevant too.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Very good experiment and data results.

     

    I agree, you need to look at multiple devices over different production run lots to see how consistent the manufacturing process is for these devices.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 6 years ago

    Nicely done and great write up!

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 6 years ago in reply to 14rhb

    Hi Rod,

    Thanks! Almost proper : ) I forgot the lab coat image

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 14rhb
    14rhb over 6 years ago

    Hi Shabaz,

     

    Proper experimentation and some squared graph paper as well. Top work, this is all really usefull  :-)

     

    Rod

    • Cancel
    • Vote Up +2 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 © 2025 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