<?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>Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109699/connecting-the-npm1300-to-a-custom-board</link><description>Good Day. 
 I&amp;#39;m trying to run the &amp;quot;npm1300_fuel_gauge&amp;quot; example on a custom board (nRF52840), but I&amp;#39;m getting errors that I don&amp;#39;t know how to fix. 
 The first thing I did was to get the PMIC configuration overlay file (config.overlay) through nPM PowerUP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2024 08:23:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109699/connecting-the-npm1300-to-a-custom-board" /><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478893?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 08:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4252fc3b-ba41-4dfa-9ab5-23c12f30850e</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s what I wanted to know.&lt;/p&gt;
&lt;p&gt;But with this approach, I can never get to the point where charging stops as soon as the algorithm determines the charge level to be 100%.&lt;/p&gt;
&lt;p&gt;Let me give you an example.&lt;/p&gt;
&lt;p&gt;I have a device that shows the charge level on the display in % (according to the fuel_gauge algorithm), and a LED (CHG) whose state depends on the algorithm of the PMIC itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I constantly have the situation that the display shows 100% charge level, but the CHG LED does not go to off state because I(TERM) is still too high for the PMIC to finish charging.&amp;nbsp;And this behavior of the device can be misleading for the end user, as he will not know which indicator to trust (LED or display).&lt;/p&gt;
&lt;p&gt;I played around with the parameters in the overlay file (charge current and voltage), but I never managed to achieve a situation where the display shows 100% and the CHG LED turns off at the same time.&amp;nbsp;Either 100% on the display and the LED is still on, or charging is turned off (LED turns off) but the algorithm shows less than 100% on the display.&lt;/p&gt;
&lt;p&gt;Anyway, thanks Sigurd for your patience and help, you can consider this ticket closed as the existing problem is beyond the scope of this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478866?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 07:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24bd8294-8de1-4b92-bbae-2330d3360a1c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sigurd Hellesvik"]I think V(TERM) is usually between 4.1V and 4.2V, but to be sure I have asked our PMIC experts.[/quote]
&lt;p&gt;They say &amp;quot;&lt;span&gt;&lt;span dir="ltr"&gt;The overlay file looks correct for his battery. &lt;/span&gt;&lt;/span&gt;&amp;quot;&lt;br /&gt;And they add some bonus info: &amp;quot;&lt;span&gt;&lt;span dir="ltr"&gt;Once Vbat reaches 4.2V nPM1300 will keep charging in CV mode (Vbat 4.2V) until charge current drops to 0.1C (10% of Ichg), above the customer battery limit of 0.01C (1% of Ichg).&lt;/span&gt;&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;That is what you wanted to know, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478857?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 06:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d566cce9-679d-4439-b33c-e9094de852b6</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I got it. Thanks for your answers.&lt;/p&gt;
&lt;p&gt;This ticket can be considered closed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478853?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 05:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5702f0d6-a5b6-4730-9ed8-e6a233ed0228</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="backstreet.devisor"]So I need to specify a lower value of V(TERM) than 4.2V (according to the technical documentation of the battery)?&amp;nbsp;What is the usual value of V(TERM) set when charging such batteries?&amp;nbsp;[/quote]
&lt;p&gt;I think V(TERM) is usually between 4.1V and 4.2V, but to be sure I have asked our PMIC experts.&lt;/p&gt;
[quote user="backstreet.devisor"]When profiling the battery, I set the voltage to 4.2V and the charge current to 120mA. If I now change these parameters (voltage and current) in the overlay file for PMIC, will it affect the algorithm for calculating the battery charge?[/quote]
&lt;p&gt;I do not quite understand why you ask this?&lt;br /&gt;Myself, I do not know the algorithm, but it would make sense that changing the speed and max for a battery charge, you will affect the algorithm a bit. Like, it should show that you are done sooner if you choose 4.1V instead of 4.2V, no?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478637?ContentTypeID=1</link><pubDate>Sun, 14 Apr 2024 17:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be70a9e-fe6b-4ce5-8da5-4ca85c9f6998</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;One other thing I&amp;#39;m curious about...&lt;/p&gt;
&lt;p&gt;When profiling the battery, I set the voltage to 4.2V and the charge current to 120mA. If I now change these parameters (voltage and current) in the overlay file for PMIC, will it affect the algorithm for calculating the battery charge?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478499?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 09:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408ac817-c936-4aa4-87c7-63652b4371b1</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;1.&amp;nbsp;Measurement time about 50 minutes with an update period of 10 seconds.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;I am using a 600 mAh LiPo battery. The technical documentation says:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Normal Voltage - 3.7V&lt;/p&gt;
&lt;p&gt;Initial Voltage - 3.85-3.95V&lt;/p&gt;
&lt;p&gt;Limited Charge Voltage - 4.2V&lt;/p&gt;
&lt;p&gt;Standart Charging Current - 120 mA (0.2C)&lt;/p&gt;
&lt;p&gt;Standart Charging Time - 6-7 hours&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Standart Charging Method - 0.2C CC current charge to 4.2V, then CV charge till current declines to 0.01C.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is my overlay file with the PMIC charging settings:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;npm1300_ek_charger: charger {
			compatible = &amp;quot;nordic,npm1300-charger&amp;quot;;
			term-microvolt = &amp;lt;4200000&amp;gt;;
			current-microamp = &amp;lt;120000&amp;gt;;
			dischg-limit-microamp = &amp;lt;600000&amp;gt;;
			vbus-limit-microamp = &amp;lt;500000&amp;gt;;
			thermistor-ohms = &amp;lt;10000&amp;gt;;
			thermistor-beta = &amp;lt;3380&amp;gt;;
			charging-enable;
		};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I need to specify a lower value of V(TERM) than 4.2V (according to the technical documentation of the battery)?&amp;nbsp;What is the usual value of V(TERM) set when charging such batteries?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478471?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 08:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b7d844-3782-4730-8ed0-1080ad2c2d21</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="backstreet.devisor"]1. Can you please confirm that these TTE values are normal?[/quote]
&lt;p&gt;How long are these logs for (time)?&lt;/p&gt;
[quote user="backstreet.devisor"]How can I make it so that charging turns off immediately when SoC = 100%?[/quote]
&lt;p&gt;So the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_fuel_gauge/README.html"&gt;Fuel Gauge library&lt;/a&gt; says that it &amp;quot;processes battery measurements made by Power Management ICs (PMICs) and provides a state-of-charge (SOC) prediction, along with other metric&amp;quot;&lt;/p&gt;
&lt;p&gt;So it only reads out and does not control the charging.&lt;/p&gt;
&lt;p&gt;The PMIC itself controls the charging, and it has a charge cutoff by its &lt;a href="https://infocenter.nordicsemi.com/topic/ps_npm1300/chapters/application/frontpage.html?cp=7_1_0_7_4#unique_1346308141"&gt;termination voltage&lt;/a&gt;.&lt;br /&gt;Configure this to decide when charging should stop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/478431?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 06:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e18903-7015-4421-8671-1c5e1f44f3dd</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Sigurd.&lt;/p&gt;
&lt;p&gt;Now the value of TTE and TTF are calculated. The text files contain TTE and TTF measurement results, the reading update time is 10 seconds.&lt;/p&gt;
&lt;p&gt;1. Can you please confirm that these TTE values are normal?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/TTE.txt"&gt;devzone.nordicsemi.com/.../TTE.txt&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;TTF&amp;#39;s readings look adequate and similar to the truth))&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/TTF.txt"&gt;devzone.nordicsemi.com/.../TTF.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But pay attention to the moment when the charge percentage becomes 100% (current is 50 mA ).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/SoC-100.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;The charging process does not stop because I(BAT) &amp;gt; I(TERM). In my case, the charging current is set to 120mA, so I(TERM) defaults to about 12mA (10% of I(CHG)).&amp;nbsp; And the actual charging is only turned off after an additional 80 minutes when I(TERM) drops to 15 mA.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/End-of-charge.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;How can I make it so that charging turns off immediately when SoC = 100%?&lt;/p&gt;
&lt;p&gt;I know I can set I(TERM) = 20% of I(CHG), but in that case I still have to wait a fair amount of time for I(BAT) to drop from 50mA to 25mA.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m hoping for your help.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477940?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 07:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c6a337-f410-47a5-a5db-50951692e9b5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The TTE=nan could be either an error with the floats themselves or with the print statement.&lt;br /&gt;To check which:&lt;/p&gt;
&lt;p&gt;Could you debug the application, and add a Watch for the tte and ttf values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477932?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 06:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f4a68e1-18b6-4a28-b129-25b1eaa54847</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Yeah, I initialized it.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7711.init.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477930?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 06:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd91cb6c-d7c6-4ed2-ac74-1371a5fee0b0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;A bit of a nitpick, but since your only red ring was where you included batter_model, it is good to check:&lt;/p&gt;
&lt;p&gt;Did you remember to use it for the init as well?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712730049615v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477905?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 20:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:540abea4-1020-445f-afa6-d0a44d3587f7</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Sigurd.&amp;nbsp;Thank you for continuing to respond.&lt;/p&gt;
&lt;p&gt;I put my battery file into the program.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/my_5F00_battery_5F00_model.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;And ran some tests.&lt;br /&gt;Here is the result (on the screenshot). The time to update the readings is 1 minute.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/RTT-my-battery-model.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, TTE and TTF are not displayed, although enough time has passed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Perhaps this is due to the long refresh period of the readings (1 min)? What is the maximum update time I can set?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I set the refresh time to 1 second again and the TTE values displayed but were too unstable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/RTT-my-battery-model-1sec.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477472?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 07:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc4d8d15-ff95-4574-a9fd-a6b9ce8c4417</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="backstreet.devisor"]but it doesn&amp;#39;t answer my question.&amp;nbsp;I already have my battery profile in .inc format and I want to figure out how I can integrate it into my final app.[/quote]
&lt;p&gt;See &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/656326d8c1f424b069b32244a03a8938f0e2ba1f/samples/pmic/native/npm1300_fuel_gauge/src/fuel_gauge.c#L24-L26"&gt;here&lt;/a&gt;, and how they use the battery_model struct in the code.&lt;/p&gt;
&lt;p&gt;If the PowerUP measurements still do not match after you have added the .inc, we can continue looking into that.&lt;br /&gt;But for now, that is the prime suspect to what goes wrong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477136?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc80c48-34b9-4799-a09a-f7cc39c8bef2</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Hi Sigurd.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;3.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/109699/connecting-the-npm1300-to-a-custom-board/477107"]That does not sound correct, no.&lt;br /&gt;Do you see the same with a Development Kit, or is it only with the custom board?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I observe this strange behavior both when using only nPM1300 EK when displaying charge level in nPM PowerUP, and when using custom board (host) + nPM1300 EK when displaying battery data via terminal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;4.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/109699/connecting-the-npm1300-to-a-custom-board/477107"]I will check this, but i guess it is not.&lt;br /&gt;Same as above: Do you see this with a DK?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;TTF is also not displayed both when using only EK and when using custom board + EK.&amp;nbsp;&amp;nbsp;And if you disconnect the charger, the time to discharge (TTE) is displayed incorrectly and jumps from 700 hours to 20 hours (using a 600 mAh battery), with only 1 LED on the user board constantly lit and i2C mode enabled.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/109699/connecting-the-npm1300-to-a-custom-board/477107"]Maybe this: &lt;a href="https://infocenter.nordicsemi.com/topic/nan_045/APP/nan_045/profiling_npm_powerup.html?cp=7_1_4_0_3"&gt;Generating a battery model&lt;/a&gt;?[/quote]
&lt;p&gt;This link doesn&amp;#39;t explain how to integrate the .inc model into your own application. There is only this note,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/note.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;but it doesn&amp;#39;t answer my question.&amp;nbsp;I already have my battery profile in .inc format and I want to figure out how I can integrate it into my final app.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/477107?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 12:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c8d4f2-21c4-4da9-b393-1830f78752b9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="backstreet.devisor"]3.&amp;nbsp;When I connect the battery (custom model profile) I see a different percentage of charge each time. For example, I connect the battery and the program shows 82 %, I immediately disconnect the EK from the computer and reconnect it and PowerUP shows already 88 % charge.&amp;nbsp;On average, the charge value differs by 5% when you turn it on again. Is this normal program behavior or is something wrong?[/quote]
&lt;p&gt;That does not sound correct, no.&lt;br /&gt;Do you see the same with a Development Kit, or is it only with the custom board?&lt;/p&gt;
[quote user="backstreet.devisor"]4.&amp;nbsp;The charging end time is almost never displayed when charging is turned on (see screenshot). Is this normal?[/quote]
&lt;p&gt;I will check this, but i guess it is not.&lt;br /&gt;Same as above: Do you see this with a DK?&lt;/p&gt;
[quote user="backstreet.devisor"]5.&amp;nbsp;In the fuel_gauge example, there is a file called battery_model.inc in the src folder. I understand that this is the battery profile for the example. How do I add my own battery profile (which I already have)? Do I need to rename it to &amp;quot;battery_model&amp;quot; and replace the existing file or can I add it with an arbitrary name (for example, my_battery.inc)?[/quote]
&lt;p&gt;Maybe this: &lt;a href="https://infocenter.nordicsemi.com/topic/nan_045/APP/nan_045/profiling_npm_powerup.html?cp=7_1_4_0_3"&gt;Generating a battery model&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476628?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4968215d-09b1-451c-a692-c9633b92c085</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;All right, Sigurd, I&amp;#39;ll wait for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476626?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d55d7c2-edb5-47cd-a83b-23285808f2ef</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good to hear that you figured some of it out.&lt;br /&gt;We are just back from Easter vacation, so I&amp;nbsp; will get back to you&amp;nbsp; on your questions in some days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476420?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 05:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15f24559-024f-4392-8cba-d4d945b1a3a9</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve identified the reason the device wasn&amp;#39;t not ready. The cause was a missing contact on the I2C line. I have also solved questions 1 and 2 (from the previous message).&lt;/p&gt;
&lt;p&gt;But I would like to get answers to questions 3 and 4, as well as another new question:&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;In the fuel_gauge example, there is a file called battery_model.inc in the src folder. I understand that this is the battery profile for the example. How do I add my own battery profile (which I already have)? Do I need to rename it to &amp;quot;battery_model&amp;quot; and replace the existing file or can I add it with an arbitrary name (for example, my_battery.inc)?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476314?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 19:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab3da85-94af-45e9-9916-75471aa4f980</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi. I also have additional questions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;When the nPM1300 EK is connected to the custom board and USB is connected to J3, should the CHG LED light up? Or will it only light up after initialization in the software?&amp;nbsp;In my case, none of the LEDs are lit.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;Should I2C be initialized (and include an I2C driver ) when connecting to a custom board?&amp;nbsp;I got the I2C1 structure and checked for hardware readiness, there were no errors and I got the response &amp;quot;I2C bus i2c@40004000 is ready&amp;quot;. So hopefully the error is not in the I2C1 line in that the npm1300 is not being detected.&lt;/p&gt;
&lt;p&gt;And a couple more questions about EK behavior in nPM PowerUP:&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;When I connect the battery (custom model profile) I see a different percentage of charge each time. For example, I connect the battery and the program shows 82 %, I immediately disconnect the EK from the computer and reconnect it and PowerUP shows already 88 % charge.&amp;nbsp;On average, the charge value differs by 5% when you turn it on again. Is this normal program behavior or is something wrong?&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;The charging end time is almost never displayed when charging is turned on (see screenshot). Is this normal?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/TTF.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I look forward to your help.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476217?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 19:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b53b81b-8b25-4b01-a225-b4abb18d0626</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp;thank you for your response.&lt;/p&gt;
&lt;p&gt;Yes indeed, I didn&amp;#39;t add that inclusion to the device tree file.&amp;nbsp;After that, there was no error with the NPM1300_LDSW_MODE_LDSW detection.&lt;/p&gt;
&lt;p&gt;But cmake errors were still present.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/cmake_5F00_error.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;These errors were resolved by modifying the CMakeLists.txt file --&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

cmake_minimum_required(VERSION 3.20.0)

set(SHIELD npm1300_ek)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(NONE)

# NORDIC SDK APP START
target_sources(app PRIVATE
  src/main.c
  src/fuel_gauge.c
)

# NORDIC SDK APP END
zephyr_library_include_directories(.)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After that, the project build went through without errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the application terminates (return 0) after --&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (!device_is_ready(charger)) {
		LOG_DBG(&amp;quot;Charger device not ready.\n&amp;quot;);
		return 0;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you have any idea what this could be related to?&amp;nbsp;All connections and jumpers are set according to the example.&lt;/p&gt;
&lt;p&gt;Also, I would like to ask if it is mandatory to use npm1300_ek.overlay? What is the point of using the config.overlay file from nPM PowerUP if it will be overwritten by npm1300_ek.overlay?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting the npm1300 to a custom board</title><link>https://devzone.nordicsemi.com/thread/476058?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 08:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2950d939-0a7f-496b-962e-5a9c66e8c013</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like NPM1300_LDSW_MODE_LDSW is not defined for that file.&lt;/p&gt;
&lt;p&gt;So I searched for that in the nRF Connect SDK and found it used in zephyr/boards/shields/npm1300_ek/npm1300_ek.overlay.&lt;/p&gt;
&lt;p&gt;At the top of this file, there is an include:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;dt-bindings/regulator/npm1300.h&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you by chance, be missing this?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>