SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-29T08:36:37-06:00SparkFun ElectronicsCustomer #1262119 on SPX-15413 - High Precision Temperature Sensor - TMP117 (Qwiic)Customer #1262119urn:uuid:f6fe2dff-f6e9-d3ea-c651-b68772b0a4ba2019-08-01T17:29:18-06:00<p>Thank you, very helpful tips!</p>
santaimpersonator on SPX-15413 - High Precision Temperature Sensor - TMP117 (Qwiic)santaimpersonatorurn:uuid:63b70aba-fc01-1d18-b679-728da4cf2e7c2019-07-31T16:24:32-06:00<p>Glad to hear that you were able to get everything working. A couple of tips on the Arduino development environment (since you are new):<ul>
<li>I personally avoid using the web editor. I know it is convenient, but from previous experiences, I have found that it usually has issues once you start using non-Arduino (branded) hardware and libraries. Also, most of the libraries also tend to be out-of-date or missing, unlike the IDE.</li>
<li>As far as the Arduino IDE concerned, I prefer to stick to more stable releases that have been out for a while (like 1.8.5). If you look at the release history, you will notice that Arduino will push a bunch of new releases back to back, those are usually due to major bugs. Perfect examples are the compiler issues that were in 1.8.6 and 1.8.7.</li>
</ul></p>
Customer #1262119 on SPX-15413 - High Precision Temperature Sensor - TMP117 (Qwiic)Customer #1262119urn:uuid:204c3853-e6f0-4750-d5b1-8e4854ee028c2019-07-30T20:24:05-06:00<p>This thing is pretty cool, but the basic readings example had some problems compiling.. Tied this to the microOLED and a Blackboard via QWIIC connectors (big fan of that idea), took a bit of screwing around with the code, but was able to get a nice realtime readout in both F and C. I am a beginner to this environment so if this is common sense to someone with some experience I apologize but figured it might save others a little hair pulling.<p>I was getting the error below compiling the examples in the web editor, switched to the IDE and it went away,
" /home/builder/opt/libraries/latest/sparkfun_high_precision_temperature_sensor_tmp117_qwiic_1_0_0/src/SparkFun_TMP117.cpp:36:39: fatal error: Sparkfun_TMP117_Registers.h: No such file or directory</p><p>I also got errors about some invalid conversion, commented out the section that says it is for development only and those went away..</p><p>The compiler also didn't like lines below, but i ended up just removing them anyway since i was printing to an OLED - just leaving the float sensor.read statements and printing tempF and tempC in a loop worked fine.</p><pre><code>Serial.print("Temperature in Fahrenheit: %d", sensor.readTempF());
</code></pre></p>
santaimpersonator on SPX-15413 - High Precision Temperature Sensor - TMP117 (Qwiic)santaimpersonatorurn:uuid:79a8e7f0-0773-ddcf-c7d3-a6a837f82fd92019-07-29T16:42:49-06:00<p>Thanks, I'll let the SparkX team know. I am not sure, but I think that might have been from the description (<em>Section 3 in the datasheet</em>):<blockquote>
<p>"The TMP117is a high-precision digital temperature sensor."</p>
</blockquote></p>
Customer #498156 on SPX-15413 - High Precision Temperature Sensor - TMP117 (Qwiic)Customer #498156urn:uuid:75010aa6-6fed-17da-ac55-0852aa0757eb2019-07-22T15:59:39-06:00<p>Precision is repeatability between readings, accuracy is closeness of mean of readings to correct value, and resolution is smallest measurable change. The data sheet calls this is a high-accuracy temperature sensor. It is also high precision and resolution, but since most of us do not have access to a NIST traceable temperature chamber (to convert precision to accuracy via calibration), the high accuracy is probably the most important feature. Anyway, my point is the vendor calls it a high accuracy sensor, you call it high precision, and the words have different meanings.<p>https://manoa.hawaii.edu/exploringourfluidearth/physical/world-ocean/map-distortion/practices-science-precision-vs-accuracy</p></p>