<?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>Arduino Analog Input scaling</title><link>/products/arduino/b/blog/posts/arduino-analog-input-scaling</link><description>Working on a project using analog inputs for temperature feedback. 
The Arduino code and calcs all looked OK, but the displayed values of temperature (on an SSD1315 OLED) were off by 5-10F.
The working temperature range used analog feedback of 5...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Arduino Analog Input scaling</title><link>https://community.element14.com/products/arduino/b/blog/posts/arduino-analog-input-scaling</link><pubDate>Wed, 19 Mar 2025 10:20:35 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:aa174ea6-9e0e-446b-8567-e50de7058d83</guid><dc:creator>JWx</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;according to the datasheet, internal voltage reference of RA4M1 is more like 1.4V than 1.5V&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://www.renesas.com/en/document/dst/ra4m1-group-datasheet" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://www.renesas.com/en/document/dst/ra4m1-group-datasheet&lt;/a&gt;&amp;nbsp;p. 95&lt;/p&gt;
&lt;p&gt;Internal reference voltage input channel (min, typ, max)&lt;br /&gt;1.36 1.43 1.50 V&lt;/p&gt;
&lt;p&gt;the same issue is when using Atmega328 (Vmin = 1V, Vtyp = 1.1V, Vmax=1.2V)&lt;/p&gt;
&lt;p&gt;I have even built Arduino calibrator once to increase measurement precision when using internal reference...&lt;/p&gt;
&lt;p&gt;maybe some external reference of known value is needed to avoid calibrating the code for given reference voltage of the given MCU?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28775&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino Analog Input scaling</title><link>https://community.element14.com/products/arduino/b/blog/posts/arduino-analog-input-scaling</link><pubDate>Wed, 19 Mar 2025 02:15:08 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:aa174ea6-9e0e-446b-8567-e50de7058d83</guid><dc:creator>kmikemoo</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&amp;nbsp;[mention:626e6e27c407492d81c7e989443cdd1c:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp;So... span error based upon the expected voltage.&amp;nbsp;&amp;nbsp;I don&amp;#39;t think you&amp;#39;re measuring anything incorrectly.&amp;nbsp; You are just experiencing compounding tolerances of components. IMHO.&amp;nbsp; It sounds like your span error is consistent.&amp;nbsp; You can correct the displayed reading with a minor correction factor in the Arduino code.&amp;nbsp; It&amp;#39;s the temperature version of you tuning your servos for your robots.&amp;nbsp; If the span error is consistent between the two Arduinos, at least you know the culprit lies in the circuitry you are connecting - and it should remain consistent enough to use the same code in different microprocessors.&amp;nbsp; If it is different when you go back to the Nano, it&amp;#39;s internal to the Arduino and each microprocessor will need to be &amp;quot;tuned&amp;quot; for the sensing circuit.&lt;/p&gt;
&lt;p&gt;Or I&amp;#39;m misunderstanding the problem completely.&amp;nbsp; I wouldn&amp;#39;t rule that out.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28775&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>