<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Make Your Own Thermometer! -- The Learning Circuit 15</title><link>https://community.element14.com/challenges-projects/element14-presents/thelearningcircuit/w/documents/3741/make-your-own-thermometer----the-learning-circuit-15</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Make Your Own Thermometer! -- The Learning Circuit 15</title><link>https://community.element14.com/challenges-projects/element14-presents/thelearningcircuit/w/documents/3741/make-your-own-thermometer----the-learning-circuit-15</link><pubDate>Wed, 04 Jul 2018 07:24:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ff3c68ff-bd7d-4dad-b79f-932cf38d53d7</guid><dc:creator>Matt</dc:creator><comments>https://community.element14.com/challenges-projects/element14-presents/thelearningcircuit/w/documents/3741/make-your-own-thermometer----the-learning-circuit-15#comments</comments><description>Current Revision posted to Documents by Matt on 7/4/2018 7:24:00 AM&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;background-color:#c4e3ed;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="3" style="padding-top:10px;padding-left:8px;vertical-align:top;"&gt;&lt;a href="/e14/assets/legacy/2017/BHlearningCir.png" data-e14adj="t"&gt;&lt;img alt="image" class="nolightbox" src="/e14/assets/legacy/2017/BHlearningCir.png"  /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td rowspan="3" style="vertical-align:top;padding:10px 13px 13px 8px;"&gt;&lt;p style="margin:0;font-size:18px;line-height:18px;font-weight:bold;padding-bottom:6px;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/" data-e14adj="t"&gt;element14&amp;#39;s The Ben Heck Show&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:6px;line-height:18px;"&gt;Join Karen as she shares her enthusiasm for teaching STEM subjects, gives you what you need to know to get started on electronics projects, and more.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="/challengesprojects/element14-presents/benheck/" data-e14adj="t"&gt;Back to The Ben Heck Show homepage &lt;img loading="lazy" alt="image" src="/e14/assets/legacy/gen/LinkArrow.gif"  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding:8px 10px;background-color:#004156;vertical-align:middle;" width="30%"&gt;&lt;a class="" href="https://www.element14.com/community/community/experts/benheck/thelearningcircuit?ICID=TLC-episodedoc-topban" target="_blank" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;The Learning Circuit&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:8px 10px;background-color:#005973;vertical-align:middle;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/ben-heck-exclusive/" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;Featured Bonus Content&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:8px 10px;background-color:#006f91;vertical-align:middle;"&gt;&lt;a class="jive-link-wiki-small" href="/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/9678/the-ben-heck-show-episode-archive" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;See All Episodes&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table style="width:80%;margin:0px auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="padding-bottom:12px;"&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=Ri5ZQrSeSYk"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="margin:0;border:1px solid #b8d7e5;background-color:#e9f6fc;padding:8px;max-width:634px;"&gt;DaftMike builds a thermometer using an Arduino and a thermistor.&amp;nbsp; He’ll write some Arduino code, build a circuit, and then convert the values into a temperature reading.&amp;nbsp; He’ll use an NTC thermistor as a sensor. &lt;span style="background-color:#e9f6fc;"&gt;This is a special type of resistor whose resistance changes with temperature. &lt;/span&gt;In order to read it with an Arduino he’s going to build a circuit on a breadboard.&amp;nbsp; This will require some wire and a 100K resistor.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;center&gt;&lt;p style="margin:0;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:12px;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;span style="font-weight:bold;font-size:14pt;font-family:inherit;font-style:inherit;"&gt;Make Your Own!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:12px;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;span style="font-weight:bold;font-size:12pt;font-family:inherit;font-style:inherit;"&gt;Parts &amp;amp; Products:&lt;/span&gt;&lt;/p&gt;&lt;table border="1" class="jiveBorder tablesorter tablesorter-default" style="border:1px solid #000000;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;thead style="border:0px;font-style:inherit;font-family:inherit;"&gt;&lt;tr class="tablesorter-headerRow" style="border:0px;font-style:inherit;font-family:inherit;"&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;Product Name&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;UK Part No&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;US Part No&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;Part Link&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style="font-style:inherit;font-family:inherit;"&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;Arduino Micro&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;2285194&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;63W3544&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;span&gt;&lt;span class="e14-init-shown e14-product-link-buynow" id="addProduct-q2OFIxpl-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;Buy Now&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-q2OFIxpl-unlinked"&gt;Buy Now&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;Thermistor&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;2112935&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;10M5320&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;span&gt;&lt;span class="e14-init-shown e14-product-link-buynow" id="addProduct-p3ZFvxmu-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=10M5320&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=10M5320&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;Buy Now&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-p3ZFvxmu-unlinked"&gt;Buy Now&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/center&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="0px" class="jiveBorder" style="border:0px solid #ffffff;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border:0pxpx solid black;border:0px solid #ffffff;width:50%;padding:6px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/908x325/__key/communityserver-wikis-components-files/00-00-00-03-35/0726.contentimage_5F00_108021.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/03/35/0726.contentimage_108021.png-907x325.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ZHVhkTyVnZ%2BgE78bP24Ohlekx2KKKVdTfnopyzMGW5k%3D&amp;amp;se=2026-05-08T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=kwXdpNXvE5g+OjgOotK52Q==" style="max-height: 325px;max-width: 907px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border:0pxpx solid black;border:0px solid #ffffff;width:50%;padding:6px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/318x321/__key/communityserver-wikis-components-files/00-00-00-03-35/7673.contentimage_5F00_108022.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/03/35/7673.contentimage_108022.png-318x320.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=yu8QIypID6ExZ67nYamuI9FZ0fixv%2FxviKtXW3I7bHQ%3D&amp;amp;se=2026-05-08T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=9J+I510u2cTTThKefp8uJQ==" style="max-height: 320px;max-width: 318px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;"&gt;&lt;br /&gt;For this project, DaftMike will use an &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-QYq8IAGS-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;Arduino Micro&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-QYq8IAGS-unlinked"&gt;Arduino Micro&lt;/span&gt;&lt;/span&gt; because it plugs directly into the breadboard but you can use any Arduino you like. He uses wire to connect 5 volts to the top power rail and ground to the bottom power rail. There are usually multiple ground pins (marked ‘GND’).&amp;nbsp; You can connect to any of these.&amp;nbsp; He connects the &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-uDjvLuu3-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=63W3544&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=63W3544&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank" data-e14adj="t"&gt;thermistor&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-uDjvLuu3-unlinked"&gt;thermistor&lt;/span&gt;&lt;/span&gt; to 5V and in the same column he connects the resistor to ground.&amp;nbsp; It doesn’t matter which way around these components go, they work either way.&amp;nbsp; Finally, you connect midpoint to analog pin p0.&amp;nbsp;&amp;nbsp; You can now write some code:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;********************************************* 
    element14.com/thelearningcircuit
    Episode 15: Make Your Own Thermometer
 *********************************************/


// Parameters for the voltage divider equation
const int Vin = 1023;
const long R2 = 100000;                         // measure this resistor and update this value for better accuracy


// Parameters for the Steinhart?Hart equation
const float T0 = 298.15;
const int B = 3974;
const long R0 = 100000;


const int thermistorPin = A0;


const int numReadings = 10;                     // number of readings to average
int readings[numReadings];                      // array to store thermistor readings




void setup() {
  Serial.begin(9600);                           // setup serial monitor
}




void loop() {


  float Vout;
  for (int i = 0; i &amp;lt; numReadings; i++) {
    readings[i] = analogRead(thermistorPin);    // read from the thermistorPin into the array
    Vout += readings[i];                        // sum the readings so far
    delay(10);                                  // allow the ADC to settle between loops
  }

  Vout /= numReadings;        // divide the running total by the number of readings to get an average




// Voltage Divider equation to calculate R1
  float R1;
  R1 = (R2 * (Vin - Vout)) / Vout;




// ? parameter equation: https://en.wikipedia.org/wiki/Thermistor#B_or_%CE%B2_parameter_equation
  float T;
  T = (1.0 / ((1.0 / T0) + (log((R1 / R0)) / B))) - 273.15;     // T is in Celcius




// Celcius to Farenheit conversion
  float Tf;
  Tf = (T * 9.0) / 5.0 + 32;




// Print the temperature in Celcius and Farenheit to the serial monitor
  Serial.print(T); Serial.print(&amp;quot;C | &amp;quot;);   Serial.print(Tf); Serial.println(&amp;quot;F&amp;quot;);
  
  delay(10);


}&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;He names the thermistor pin and sets up an array to store a bunch of readings so that you can take an average to sort out the data.&amp;nbsp; He uses a line to set up the serial monitor.&amp;nbsp; In the main code he declares the output as a float and then uses a for loop to calculate the average.&amp;nbsp; A thermistor reading is stored in the array, added to a running total, and then delayed for a while to give the ADC a chance to settle before it runs through the loop again.&amp;nbsp; ADC stands for analog to digital convertor.&amp;nbsp; It converts voltage on the analog pin into a discrete signal.&amp;nbsp; Outside that loop, the code divides the running total by the number of readings to get an average.&amp;nbsp; You can then print it to the terminal.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;DaftMike gives a diagram of the circuit. It’s a voltage divider where R1 is the thermistor and R2 is 100K. The equation for voltage dividers is Vout = Vin *R2/(R1+R2).&amp;nbsp; Vout is what we measured in the code, Vin is 5 volts, R2 is 100K, and R1 is what we are solving for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: analog pin, temperature reading, ardbeginner, stem_projects, tlc, ground pins, voltage divider, arduino_vcp, arduino micro, arduino ide, power rail, arduino_tutorials, breadboard, thermistor, analog to digital converter, 100k resistor, gnd, adc, thelearningcircuit, e14presents_daftmike&lt;/div&gt;
</description></item><item><title>The Learning Circuit 15: Make Your Own Thermometer!</title><link>https://community.element14.com/challenges-projects/element14-presents/thelearningcircuit/w/documents/3741/make-your-own-thermometer----the-learning-circuit-15/revision/1</link><pubDate>Fri, 18 Jan 2019 16:01:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ff3c68ff-bd7d-4dad-b79f-932cf38d53d7</guid><dc:creator>tariq.ahmad</dc:creator><comments>https://community.element14.com/challenges-projects/element14-presents/thelearningcircuit/w/documents/3741/make-your-own-thermometer----the-learning-circuit-15#comments</comments><description>Revision 1 posted to Documents by tariq.ahmad on 1/18/2019 4:01:34 PM&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;background-color:#c4e3ed;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="3" style="padding-top:10px;padding-left:8px;vertical-align:top;"&gt;&lt;a href="/e14/assets/legacy/2017/BHlearningCir.png"&gt;&lt;img alt="image" class="nolightbox" src="/e14/assets/legacy/2017/BHlearningCir.png"  /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td rowspan="3" style="vertical-align:top;padding:10px 13px 13px 8px;"&gt;&lt;p style="margin:0;font-size:18px;line-height:18px;font-weight:bold;padding-bottom:6px;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/"&gt;element14&amp;#39;s The Ben Heck Show&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:6px;line-height:18px;"&gt;Join Karen as she shares her enthusiasm for teaching STEM subjects, gives you what you need to know to get started on electronics projects, and more.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="/challengesprojects/element14-presents/benheck/"&gt;Back to The Ben Heck Show homepage &lt;img loading="lazy" alt="image" src="/e14/assets/legacy/gen/LinkArrow.gif"  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding:8px 10px;background-color:#004156;vertical-align:middle;" width="30%"&gt;&lt;a class="" href="https://www.element14.com/community/community/experts/benheck/thelearningcircuit?ICID=TLC-episodedoc-topban"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;The Learning Circuit&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:8px 10px;background-color:#005973;vertical-align:middle;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/ben-heck-exclusive/"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;Featured Bonus Content&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:8px 10px;background-color:#006f91;vertical-align:middle;"&gt;&lt;a class="jive-link-wiki-small" href="/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/9678/the-ben-heck-show-episode-archive"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;See All Episodes&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table style="width:80%;margin:0px auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="padding-bottom:12px;"&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=Ri5ZQrSeSYk"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="margin:0;border:1px solid #b8d7e5;background-color:#e9f6fc;padding:8px;max-width:634px;"&gt;DaftMike builds a thermometer using an Arduino and a thermistor.&amp;nbsp; He’ll write some Arduino code, build a circuit, and then convert the values into a temperature reading.&amp;nbsp; He’ll use an NTC thermistor as a sensor. &lt;span style="background-color:#e9f6fc;"&gt;This is a special type of resistor whose resistance changes with temperature. &lt;/span&gt;In order to read it with an Arduino he’s going to build a circuit on a breadboard.&amp;nbsp; This will require some wire and a 100K resistor.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;center&gt;&lt;p style="margin:0;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:12px;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;span style="font-weight:bold;font-size:14pt;font-family:inherit;font-style:inherit;"&gt;Make Your Own!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:12px;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;span style="font-weight:bold;font-size:12pt;font-family:inherit;font-style:inherit;"&gt;Parts &amp;amp; Products:&lt;/span&gt;&lt;/p&gt;&lt;table border="1" class="jiveBorder tablesorter tablesorter-default" style="border:1px solid #000000;font-family:Verdana, &amp;#39;Verdana Ref&amp;#39;, Geneva, Tahoma, sans-serif;color:#333333;"&gt;&lt;thead style="border:0px;font-style:inherit;font-family:inherit;"&gt;&lt;tr class="tablesorter-headerRow" style="border:0px;font-style:inherit;font-family:inherit;"&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;Product Name&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;UK Part No&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;US Part No&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;th class="tablesorter-headerUnSorted tablesorter-header" scope="col" style="border:1px solid black;border:1px solid #000000;border:0px;background-position:no-repeat no-repeat;background-color:#6690bc;color:#ffffff;font-family:inherit;font-style:inherit;border:1px solid #000000;padding:2px;" valign="middle"&gt;&lt;p class="tablesorter-header-inner" style="margin:0;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;"&gt;&lt;strong&gt;Part Link&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style="font-style:inherit;font-family:inherit;"&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;Arduino Micro&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;2285194&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;63W3544&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;span&gt;&lt;span class="e14-init-shown e14-product-link-buynow" id="addProduct-q2OFIxpl-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank"&gt;Buy Now&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-q2OFIxpl-unlinked"&gt;Buy Now&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;Thermistor&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;2112935&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;"&gt;&lt;strong&gt;10M5320&lt;/strong&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;span&gt;&lt;span class="e14-init-shown e14-product-link-buynow" id="addProduct-p3ZFvxmu-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=10M5320&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=10M5320&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank"&gt;Buy Now&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-p3ZFvxmu-unlinked"&gt;Buy Now&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/center&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="0px" class="jiveBorder" style="border:0px solid #ffffff;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border:0pxpx solid black;border:0px solid #ffffff;width:50%;padding:6px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/908x325/__key/communityserver-wikis-components-files/00-00-00-03-35/0726.contentimage_5F00_108021.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/03/35/0726.contentimage_108021.png-907x325.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ZHVhkTyVnZ%2BgE78bP24Ohlekx2KKKVdTfnopyzMGW5k%3D&amp;amp;se=2026-05-08T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=kwXdpNXvE5g+OjgOotK52Q==" style="max-height: 325px;max-width: 907px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border:0pxpx solid black;border:0px solid #ffffff;width:50%;padding:6px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/318x321/__key/communityserver-wikis-components-files/00-00-00-03-35/7673.contentimage_5F00_108022.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/03/35/7673.contentimage_108022.png-318x320.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=yu8QIypID6ExZ67nYamuI9FZ0fixv%2FxviKtXW3I7bHQ%3D&amp;amp;se=2026-05-08T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=9J+I510u2cTTThKefp8uJQ==" style="max-height: 320px;max-width: 318px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;"&gt;&lt;br /&gt;For this project, DaftMike will use an &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-QYq8IAGS-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2285194&amp;amp;nsku=63W3544&amp;amp;COM=noscript" target="_blank"&gt;Arduino Micro&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-QYq8IAGS-unlinked"&gt;Arduino Micro&lt;/span&gt;&lt;/span&gt; because it plugs directly into the breadboard but you can use any Arduino you like. He uses wire to connect 5 volts to the top power rail and ground to the bottom power rail. There are usually multiple ground pins (marked ‘GND’).&amp;nbsp; You can connect to any of these.&amp;nbsp; He connects the &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-uDjvLuu3-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=63W3544&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=63W3544&amp;amp;nsku=2112935&amp;amp;COM=noscript" target="_blank"&gt;thermistor&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-uDjvLuu3-unlinked"&gt;thermistor&lt;/span&gt;&lt;/span&gt; to 5V and in the same column he connects the resistor to ground.&amp;nbsp; It doesn’t matter which way around these components go, they work either way.&amp;nbsp; Finally, you connect midpoint to analog pin p0.&amp;nbsp;&amp;nbsp; You can now write some code:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;********************************************* 
    element14.com/thelearningcircuit
    Episode 15: Make Your Own Thermometer
 *********************************************/


// Parameters for the voltage divider equation
const int Vin = 1023;
const long R2 = 100000;                         // measure this resistor and update this value for better accuracy


// Parameters for the Steinhart?Hart equation
const float T0 = 298.15;
const int B = 3974;
const long R0 = 100000;


const int thermistorPin = A0;


const int numReadings = 10;                     // number of readings to average
int readings[numReadings];                      // array to store thermistor readings




void setup() {
  Serial.begin(9600);                           // setup serial monitor
}




void loop() {


  float Vout;
  for (int i = 0; i &amp;lt; numReadings; i++) {
    readings[i] = analogRead(thermistorPin);    // read from the thermistorPin into the array
    Vout += readings[i];                        // sum the readings so far
    delay(10);                                  // allow the ADC to settle between loops
  }

  Vout /= numReadings;        // divide the running total by the number of readings to get an average




// Voltage Divider equation to calculate R1
  float R1;
  R1 = (R2 * (Vin - Vout)) / Vout;




// ? parameter equation: https://en.wikipedia.org/wiki/Thermistor#B_or_%CE%B2_parameter_equation
  float T;
  T = (1.0 / ((1.0 / T0) + (log((R1 / R0)) / B))) - 273.15;     // T is in Celcius




// Celcius to Farenheit conversion
  float Tf;
  Tf = (T * 9.0) / 5.0 + 32;




// Print the temperature in Celcius and Farenheit to the serial monitor
  Serial.print(T); Serial.print(&amp;quot;C | &amp;quot;);   Serial.print(Tf); Serial.println(&amp;quot;F&amp;quot;);
  
  delay(10);


}&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;He names the thermistor pin and sets up an array to store a bunch of readings so that you can take an average to sort out the data.&amp;nbsp; He uses a line to set up the serial monitor.&amp;nbsp; In the main code he declares the output as a float and then uses a for loop to calculate the average.&amp;nbsp; A thermistor reading is stored in the array, added to a running total, and then delayed for a while to give the ADC a chance to settle before it runs through the loop again.&amp;nbsp; ADC stands for analog to digital convertor.&amp;nbsp; It converts voltage on the analog pin into a discrete signal.&amp;nbsp; Outside that loop, the code divides the running total by the number of readings to get an average.&amp;nbsp; You can then print it to the terminal.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;DaftMike gives a diagram of the circuit. It’s a voltage divider where R1 is the thermistor and R2 is 100K. The equation for voltage dividers is Vout = Vin *R2/(R1+R2).&amp;nbsp; Vout is what we measured in the code, Vin is 5 volts, R2 is 100K, and R1 is what we are solving for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: analog pin, temperature reading, ardbeginner, stem_projects, tlc, ground pins, voltage divider, arduino_vcp, arduino micro, arduino ide, power rail, arduino_tutorials, breadboard, thermistor, analog to digital converter, 100k resistor, gnd, adc, thelearningcircuit, e14presents_daftmike&lt;/div&gt;
</description></item></channel></rss>