<?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>PPK2 in Ampere Meter mode: Auto-ranging spikes (1.23A) in raw Python API and baseline discrepancy vs. Power Profiler App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/129401/ppk2-in-ampere-meter-mode-auto-ranging-spikes-1-23a-in-raw-python-api-and-baseline-discrepancy-vs-power-profiler-app</link><description>Hello, 
 I am experiencing significant discrepancies when measuring current with a PPK2 in Ampere Meter mode using a Python API ( ppk2_api ) compared to the official Power Profiler app. 
 Hardware Setup: 
 
 
 Mode: Ampere Meter 
 
 
 Power Source: External</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2026 07:12:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/129401/ppk2-in-ampere-meter-mode-auto-ranging-spikes-1-23a-in-raw-python-api-and-baseline-discrepancy-vs-power-profiler-app" /><item><title>RE: PPK2 in Ampere Meter mode: Auto-ranging spikes (1.23A) in raw Python API and baseline discrepancy vs. Power Profiler App</title><link>https://devzone.nordicsemi.com/thread/572209?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2026 07:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55cd75e-16e8-4f02-aa15-3fc89c169405</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Switching noise&amp;nbsp;can occur on the sample when the ppk2 switches range. Although it shows a high value, the remainder of the following samples will be low.&lt;/p&gt;
[quote user=""]&lt;b&gt;Question 1:&lt;/b&gt; What is the specific filtering logic or algorithm the official app uses to discard or smooth out these hardware range-switching artifacts?[/quote]
&lt;p&gt;source code of the ppk application is available on our github. I would recommend to look specifically at this function:&amp;nbsp;&lt;a href="https://github.com/nordicsemi/pc-nrfconnect-ppk/blob/main/src/device/serialDevice.ts#L137"&gt;https://github.com/nordicsemi/pc-nrfconnect-ppk/blob/main/src/device/serialDevice.ts#L137&lt;/a&gt;&lt;/p&gt;
[quote user=""]&lt;b&gt;Issue 2: Baseline Measurement Discrepancy&lt;/b&gt; To work around Issue 1 in Python, I implemented a software filter to discard any sample above 10 mA. [/quote]
&lt;p&gt;I would not recommend to discard samples.&lt;/p&gt;
&lt;p&gt;If you rather include the sample in our average measurement; is the measurement then as-expected?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>