<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error</link><description>Hello, a follow-up/corresponding question to this topic: https://devzone.nordicsemi.com/f/nordic-q-a/4517/how-to-calibrate-the-nrf51-adc-to-correct-offset-and-gain-error/426557 after this thread is already 8 years old, have there been some changes with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2023 06:53:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error" /><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/430353?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 06:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c79fa9-8999-432d-ab36-9cf43d537bff</guid><dc:creator>PhilipSTT</dc:creator><description>&lt;p&gt;Hi Jared,&lt;br /&gt;&lt;br /&gt;no new news at the moment, I was off the last days. I will try to get some new results until next week.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Philip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/429603?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 14:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6bb84d-531f-42c1-ad64-29533d0f7727</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Philip,&lt;/p&gt;
&lt;p&gt;Did you have any new results?&amp;nbsp;&lt;/p&gt;
[quote user="PhilipSTT"] I think I would have to exchange nrF devices&lt;br /&gt;from us to the Devkit to get reliable results in this test.[/quote]
&lt;p&gt;Ok, you so you have the option of soldering off the nRF on the DK and then solder on a failing device? That would be a very good test &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/428249?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0784081-713f-497e-901b-435560ea3632</guid><dc:creator>PhilipSTT</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hi Jared,&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/428228"]What limits did you use?[/quote]
&lt;p&gt;&lt;br /&gt;For Limits we are already pretty wide open, 5mv to 30mV for a 23mV signal (because lower&lt;br /&gt;values are not critical for us, we can accept very low measurements as well)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here you can see the bell curve for around 200k. measurements taken, a lot of them are&lt;br /&gt;out of Limit (under 5mV or over 30mV)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/1v1eIukXsrFOlOSIIUW28LGhuvtpHT1Qx/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I cannot tell the exact values of all 700 fail PCBAs, but I have around 30pcs. here to play with.&lt;br /&gt;What I can say is that nrF51 devices with lower OFFSET and GAIN error values&lt;br /&gt;written to the memory are always more accurate, with or without error calibration by code.&lt;br /&gt;&lt;br /&gt;Which also can be seen on this measurement taken last week:&lt;/p&gt;
[quote userid="87058" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/427285"](Taken with the&amp;nbsp;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device)&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 510mV (DIFF.=7mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 512mV&amp;nbsp;(DIFF.=9mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 513mV&amp;nbsp;(DIFF.=10mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 511mV&amp;nbsp;(DIFF.=7mV)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I do this measurement with the&amp;nbsp;0x10000024: FFFF0001 ((GAIN=0, OFFSET=1) - device:&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 505mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 505mV&amp;nbsp;(DIFF.=2mV)[/quote]
&lt;p&gt;I can try to do measurements with more of this devices?&lt;br /&gt;This should bring up a lot of different OFFSET &amp;amp; GAIN errors stored to the devices memories.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/428228"]It would be nice if you were able to reproduce this with development kit, that way we could rule out any issues specific to your HW.&amp;nbsp;[/quote]
&lt;p&gt;I surely can try with the Devkit, but if the devkits nrF device has low OFFSET &amp;amp; GAIN error&lt;br /&gt;it will (probably) also create more reliable results. I think I would have to exchange nrF devices&lt;br /&gt;from us to the Devkit to get reliable results in this test.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/428228"]Also, it&amp;#39;s worth noting that nRF51 is a fairly outdated device, and several changes were applied for the nRF52 series when designing the new ADC, it was improved on several areas including introducing an internal calibration routine for the ADC.&amp;nbsp;[/quote]
&lt;p&gt;Sure yes, it&amp;#39;s already fairly outdated. But was always a very good option for us (we are using it since a decade at least).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/428228"]How is the sampled values for the 700 pcs, are they consisted with each other and closer to the real value without calibration?&amp;nbsp;[/quote]
&lt;p&gt;They are consistent if we are talking about ADC measurements, because if it has a higher ADC output&lt;br /&gt;(positive offset) it has it on all ADC readings (we are doing 5 different ADC measurements while testing)&lt;br /&gt;I can try this on the 30pcs. mentioned above, but will take some time.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/428228"]Are you testing this in the same temperature?[/quote]
&lt;p&gt;This could be something to consider, but as stated above, it correlates with the OFFSET and GAIN&lt;br /&gt;error values stored in memory. But I will test this as well, let&amp;#39;s see which effect it has on the device.&lt;br /&gt;&lt;br /&gt;best regards&lt;br /&gt;Philip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/428228?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fafa739-2c3a-4bff-b7a2-64ffaddd18b7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Philip,&lt;/p&gt;
[quote user="PhilipSTT"]Yes of course, also our FLUKE devices have some inaccuracy, but they are &amp;quot;freshly&amp;quot; calibrated and I have compared the measured values between FLUKE 8846A, 189 &amp;amp; 87 V - the differences are marginal.[/quote]
&lt;p&gt;Ok,&lt;/p&gt;
[quote user="PhilipSTT"]Can&amp;#39;t tell if the other 99300pcs. are shifting as well, but they have been at least inside limits we defined for testing.[/quote]
&lt;p&gt;What limits did you use?&lt;/p&gt;
&lt;p&gt;It would be nice if you were able to reproduce this with development kit, that way we could rule out any issues specific to your HW.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, it&amp;#39;s worth noting that nRF51 is a fairly outdated device, and several changes were applied for the nRF52 series when designing the new ADC, it was improved on several areas including introducing an internal calibration routine for the ADC.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How is the sampled values for the 700 pcs, are they consisted with each other and closer to the real value without calibration?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you testing this in the same temperature?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/427647?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 05:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f308fda-f5b6-40fd-b331-07663da31bab</guid><dc:creator>PhilipSTT</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/427538"]I think it&amp;#39;s difficult to evaluate these results as the FLUKE itself has some inaccuracy and it&amp;#39;s difficult to tell what the actual voltage is. &lt;strong&gt;But it&amp;#39;s clear that the calibration seems to shift the measurement from the average between the A, B, C, D.&lt;/strong&gt;[/quote]
&lt;p&gt;Yes of course, also our FLUKE devices have some inaccuracy, but they are &amp;quot;freshly&amp;quot; calibrated and I have compared the measured values between FLUKE 8846A, 189 &amp;amp; 87 V - the differences are marginal.&lt;br /&gt;&lt;br /&gt;Something is wrong with calibration, calibration calculation or the devices itself. Out of 100k PCBAs we got around 700pcs. with this problem. Can&amp;#39;t tell if the other 99300pcs. are shifting as well, but they have been at least inside limits we defined for testing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/427538"]This is much better, and I agree that it shows that the results without the calibration is better in this case and more consistent without calibration.&amp;nbsp; The ADC seems to be more accurate at higher voltage as expected.&amp;nbsp;[/quote]
&lt;p&gt;If I compare the measured values between measurement of the 23mV Voltage and the 500mV Voltage,&lt;br /&gt;there is improvement, but not much:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:115px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x230/__key/communityserver-discussions-components-files/4/pastedimage1685080413823v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/99981/correct-calibration-of-the-nrf51-adc-to-correct-offset-and-gain-error/427538"]Have you tested this on a nRF51 development kit as well, does it reproduce the same results?&amp;nbsp;[/quote]
&lt;p&gt;No I have not tested on the dev-kit until now, do you want me to do this?&lt;br /&gt;If yes, I will need to re-write software for the dev-kit.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;best regards&lt;br /&gt;Philip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/427538?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 13:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431da242-5dcf-42c7-9241-9af9a5f36b39</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="PhilipSTT"]&lt;p&gt;&lt;br /&gt;&lt;strong&gt;If I am measuring a higher voltage (in system,&amp;nbsp;WITH NO bench top supply):&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;OK, if I try to measure a Voltage at ~500mV I get the following results:&lt;br /&gt;(Taken with the&amp;nbsp;&lt;span&gt;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;FLUKE TRMS = ~485mV&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Measurement A) = 492mV (DIFF.=7mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;B) = 495mV&amp;nbsp;(DIFF.=10mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;C) = 494mV&amp;nbsp;(DIFF.=9mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;D) = 492mV&amp;nbsp;(DIFF.=7mV)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error seems to get a little less, but still, with error calibration in code the measurements has the most error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I do this measurement with the&amp;nbsp;0x10000024: FFFF0001 ((GAIN=0, OFFSET=1) - device:&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~485mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 486mV&amp;nbsp;(DIFF.=1mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 487mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 487mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 486mV&amp;nbsp;(DIFF.=1mV)&lt;br /&gt;&lt;br /&gt;Again, the device with less error written to&amp;nbsp;0x10000024 is the more accurate one, doesn&amp;#39;t change&lt;br /&gt;if error calibration is used in code, also it doesn&amp;#39;t really matter if TRMS measurement is done&lt;br /&gt;or not (software-wise).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I think it&amp;#39;s difficult to evaluate these results as the FLUKE itself has some inaccuracy and it&amp;#39;s difficult to tell what the actual voltage is. &lt;strong&gt;But it&amp;#39;s clear that the calibration seems to shift the measurement from the average between the A, B, C, D.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="PhilipSTT"]&lt;strong&gt;If I am measuring a higher voltage (in system,&amp;nbsp;WITH bench top supply):&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;OK, if I try to measure a Voltage at 500mV by bench top supply I get the following results:&lt;br /&gt;(Taken with the&amp;nbsp;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device)&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 510mV (DIFF.=7mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 512mV&amp;nbsp;(DIFF.=9mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 513mV&amp;nbsp;(DIFF.=10mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 511mV&amp;nbsp;(DIFF.=7mV)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I do this measurement with the&amp;nbsp;0x10000024: FFFF0001 ((GAIN=0, OFFSET=1) - device:&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 505mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 505mV&amp;nbsp;(DIFF.=2mV)[/quote]
&lt;p&gt;This is much better, and I agree that it shows that the results without the calibration is better in this case and more consistent without calibration.&amp;nbsp; The ADC seems to be more accurate at higher voltage as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Very good work :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested this on a nRF51 development kit as well, does it reproduce the same results?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/427285?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 14:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39b0aa5-a66b-484a-8b1d-7ab22a518b9f</guid><dc:creator>PhilipSTT</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;thats good at least&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;If I am measuring a higher voltage (in system,&amp;nbsp;WITH NO bench top supply):&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;OK, if I try to measure a Voltage at ~500mV I get the following results:&lt;br /&gt;(Taken with the&amp;nbsp;&lt;span&gt;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;FLUKE TRMS = ~485mV&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Measurement A) = 492mV (DIFF.=7mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;B) = 495mV&amp;nbsp;(DIFF.=10mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;C) = 494mV&amp;nbsp;(DIFF.=9mV)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Measurement&amp;nbsp;D) = 492mV&amp;nbsp;(DIFF.=7mV)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error seems to get a little less, but still, with error calibration in code the measurements has the most error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I do this measurement with the&amp;nbsp;0x10000024: FFFF0001 ((GAIN=0, OFFSET=1) - device:&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~485mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 486mV&amp;nbsp;(DIFF.=1mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 487mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 487mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 486mV&amp;nbsp;(DIFF.=1mV)&lt;br /&gt;&lt;br /&gt;Again, the device with less error written to&amp;nbsp;0x10000024 is the more accurate one, doesn&amp;#39;t change&lt;br /&gt;if error calibration is used in code, also it doesn&amp;#39;t really matter if TRMS measurement is done&lt;br /&gt;or not (software-wise).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;If I am measuring a higher voltage (in system,&amp;nbsp;WITH bench top supply):&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;OK, if I try to measure a Voltage at 500mV by bench top supply I get the following results:&lt;br /&gt;(Taken with the&amp;nbsp;0x10000024: FFFF0105 (GAIN=1, OFFSET=5) - device)&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 510mV (DIFF.=7mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 512mV&amp;nbsp;(DIFF.=9mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 513mV&amp;nbsp;(DIFF.=10mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 511mV&amp;nbsp;(DIFF.=7mV)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I do this measurement with the&amp;nbsp;0x10000024: FFFF0001 ((GAIN=0, OFFSET=1) - device:&lt;br /&gt;&lt;br /&gt;FLUKE TRMS = ~503mV&lt;br /&gt;&lt;br /&gt;Measurement A) = 505mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;Measurement&amp;nbsp;B) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;C) = 506mV&amp;nbsp;(DIFF.=3mV)&lt;br /&gt;Measurement&amp;nbsp;D) = 505mV&amp;nbsp;(DIFF.=2mV)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/427224?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 12:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39ee18f-a07e-4278-b498-87edbad8c08a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Philip,&lt;/p&gt;
&lt;p&gt;That looks correct,&lt;/p&gt;
&lt;p&gt;Do you see the same if you try to measure a set voltage from a bench top supply? What if you increase the voltage that you measure, does it become more accurate after applying the calibration then?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/426954?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 13:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d94d062-e4d8-4cf5-88f8-d2395d3d03f5</guid><dc:creator>PhilipSTT</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Yes, I tried to implement TRMS measurement to get better results, to be closer to the values measured by our FLUKE device. Because I use it as reference, the closer I get with my ADC measurement the better.&lt;br /&gt;&lt;br /&gt;Sure, here is my code:&lt;br /&gt;&lt;br /&gt;Setting ADC INPUT 3 on P0.02&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define ADC_U_STATE_PIN        		NRF_ADC_CONFIG_INPUT_3     // AIN 3 P0.02&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Defining DEFAULT CHANNEL&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static nrf_drv_adc_channel_t     ADC_U_STATE             = NRF_DRV_ADC_DEFAULT_CHANNEL(ADC_U_STATE_PIN);             // Channel instance. Default configuration used&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Which corresponds to this code (Set 10bit, full scale, ref_vbg)&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_DRV_ADC_DEFAULT_CHANNEL(analog_input)          \
{{{                                                       \
    .resolution = NRF_ADC_CONFIG_RES_10BIT,                \
    .input      = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE, \
    .reference  = NRF_ADC_CONFIG_REF_VBG,                  \
    .ain        = (analog_input)                           \
 }}, NULL}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Philip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct calibration of the nRF51 ADC to correct offset and gain error</title><link>https://devzone.nordicsemi.com/thread/426933?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 12:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54cfadbc-d94f-4b6d-93a4-5b94efbcc778</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I agree that, ideally the ADC result should be closer to the real value with calibration than without.&lt;/p&gt;
&lt;p&gt;Did you use TRMS so that it would be comparable with the measurement from your Fluke device?&lt;/p&gt;
&lt;p&gt;Could you share your initialization&lt;span&gt;&amp;nbsp;&lt;/span&gt;routine of the ADC?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>