<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Soldering Tiny Temperature Sensors</title><link>/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><description>I&amp;#39;ve been experimenting with temperature sensors, and really liked Sensirion products, since they are pretty accurate and reasonably low cost, and have a sensible board-level interface, I2C. However, they are quite small!
The good thing, is that they</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Fri, 27 Oct 2023 21:12:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Just realized the STS40 temperature sensor has the same footprint, and same I2C commands as SHT40 (combined temperature and humidity sensor), which is useful in case one or the other is out of stock!&lt;/p&gt;
&lt;p&gt;The code for it is really easy. To start a measurement, just write a single byte 0xFD to the sensor:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;// start temperature measurement. Wait 10 msec before reading the result.&lt;br /&gt;void start_temp_meas(void) {&lt;br /&gt;    uint8_t buf;&lt;br /&gt;    buf = 0xFD; // hi-res measurement command&lt;br /&gt;    i2c_write_blocking(i2c_port, TEMP_SENSOR_I2C_ADDR, &amp;amp;buf, 1, false);&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To read the temperature:&lt;/p&gt;
&lt;pre&gt;// read temperature measurement&lt;br /&gt;float read_temp_degc(void) {&lt;br /&gt;    uint8_t buf[3];&lt;br /&gt;    uint16_t raw;&lt;br /&gt;    float degc;&lt;br /&gt;    i2c_read_blocking(i2c_port, TEMP_SENSOR_I2C_ADDR, buf, 3, false);&lt;br /&gt;    raw = buf[0] &amp;lt;&amp;lt; 8 | buf[1];&lt;br /&gt;    degc = ((float)raw) / 65535.0;&lt;br /&gt;    degc = degc * 175.0 - 45.0;&lt;br /&gt;    return degc;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve run some tests, and the measurements are super-granular.&amp;nbsp;Each of these measurements were taken half a second apart.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="293" src="/resized-image/__size/248x586/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ca8cda91-6d7e-4622-99b4-c8361a5870a5/example_2D00_meas.png" width="123" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Although all this is fine for board temperature measurements, measuring ambient temperature is a different kettle of fish. It really needs the sensor to be very far from any circuitry even if it&amp;#39;s slightly warm, and there are the following &lt;a href="https://media.digikey.com/pdf/Data%20Sheets/Sensirion%20PDFs/HT_AN_SHTxx_STSxx_Design%20Guide_V1.1_D1.pdf" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;guidelines in a PDF&lt;/a&gt;&amp;nbsp;(screenshot below). My measurements&amp;nbsp;are higher than&amp;nbsp;room temperature by almost exactly 1.0 degree C, if the board is kept&amp;nbsp;a couple of inches away from the microcontroller,but I think even conduction through pin headers is making an impact. If the board is closer to the microcontroller board (pi pico), then the measurements are 2.5 degrees C higher. Amazing what a difference that distance makes, considering the Pico isn&amp;#39;t consuming a lot of power. This is without any enclosure so far.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="425" src="/resized-image/__size/1238x850/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ca8cda91-6d7e-4622-99b4-c8361a5870a5/rules.png" width="618" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve decided to try to &amp;#39;decouple from heat sources&amp;#39; (point 4 in the guidelines above) by making the traces even thinner and to narrow the PCB bottleneck a bit further.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to address&amp;nbsp;points (1) and (3) by clearing up more space for any enclosure to be shaped around it and&amp;nbsp;to provide decent access.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="553" src="/resized-image/__size/1222x1106/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ca8cda91-6d7e-4622-99b4-c8361a5870a5/sensor_2D00_render.png" width="610" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The STS40 could be powered down between readings, if it were powered from a GPIO pin rather than from 3.3V. However, I think a separate I2C interface (e.g. software I2C implementation) might be needed as well,&amp;nbsp;to set the I2C bus low during power-down, which is no good on a single I2C bus if other&amp;nbsp;peripherals need to be accessed. I&amp;#39;ll consider that if the improvements described so far do not help as much as hoped.&lt;/p&gt;
&lt;p&gt;It is definitely&amp;nbsp;a bit of a challenge getting good ambient temperature measurements. Anyway, at least now I know that with&amp;nbsp;first board layout and with no enclosure, the error is approximately 1 degree C provided the sensor is kept a couple of inches distant away from the Pico board.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Wed, 25 Oct 2023 19:45:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>beacon_dave</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The thickness of the PCB in those close-up photos really illustrates the scale you are working with.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Interesting to see the different techniques as components keep getting smaller.&lt;/p&gt;
&lt;p&gt;I was interested in Katie&amp;#39;s mini hot plate technique in one of her element14 presents videos.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ca8cda91-6d7e-4622-99b4-c8361a5870a5/pastedimage1698262420188v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Looks like it could be a useful technique for some projects.&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Wed, 25 Oct 2023 15:35:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>genebren</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nicely done!&lt;/p&gt;
&lt;p&gt;I noticed that the silk screening on the PCB might be slightly lifting the component.&amp;nbsp; I find that on some tiny parts, I either leave off the component outline or enlarge it sufficiently keep it from allowing the part to drop through and make good contact to the PCB.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Tue, 24 Oct 2023 21:59:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>cstanton</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Wow they do be smol&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Tue, 24 Oct 2023 20:40:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>misaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Good job. Last year I did something similar with even smaller temperature sensor, but I used different technique.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;[mention:541d694fc61b4231b244a9d5ad74bb83:f7d226abd59f475c9d224a79e3f0ec07]&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Tue, 24 Oct 2023 20:03:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Good job.&lt;/p&gt;
&lt;p&gt;These SMD components are just too small for me to see, even with my flip down magnifying lenses.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Soldering Tiny Temperature Sensors</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/soldering-tiny-temperature-sensors</link><pubDate>Tue, 24 Oct 2023 19:59:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca8cda91-6d7e-4622-99b4-c8361a5870a5</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I first thought that you should have put a landing pad for the centre pad. But that was a wrong assumption:&lt;/p&gt;
&lt;p&gt;&lt;img height="325" src="/resized-image/__size/450x650/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ca8cda91-6d7e-4622-99b4-c8361a5870a5/pastedimage1698177522274v1.png" width="225" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27086&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>