<?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>How to connect an LED?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28356/how-to-connect-an-led</link><description>Hi, We are trying to connect a LED to one of the GPIO of nRF52840, we would like to know how to connect it. Connect it such that the nRF52 GPIO sink current or source current? Our LED Vf is 1V8 and current consumption is ~10mA. FUrther, nRF52840 is running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Dec 2017 15:56:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28356/how-to-connect-an-led" /><item><title>RE: How to connect an LED?</title><link>https://devzone.nordicsemi.com/thread/111898?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 15:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8eaa32f-04c7-41e9-9565-d85d489a4d38</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The amount of current the chip can sink/source depends in large part on the supply voltage, and with a supply of 1.8V we can&amp;#39;t guarantee much more than 2-3mA from the pins, even in high drive mode.&lt;/p&gt;
&lt;p&gt;If you think this is sufficient then you can connect the LED directly, just make sure to add the necessary resistance.&lt;br /&gt;
The GPIO should be configured in high drive mode.&lt;br /&gt;
It doesn&amp;#39;t really matter if you choose sink or source. We sink the LED&amp;#39;s on the devkits, but that is primarily to avoid the LED current affecting the chip supply current (for current measurement purposes).&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect an LED?</title><link>https://devzone.nordicsemi.com/thread/111897?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 00:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010f505c-c7f4-49c3-a94f-a69ac7514075</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Thats too bad, well as long as you have current limiting resistors inline (these LEDs are 2mA If), it doesn&amp;#39;t really matter but I&amp;#39;d say source from the GPIO.  Also note that using a GPIO to source/sink an LED can in cases introduce noise into your circuit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect an LED?</title><link>https://devzone.nordicsemi.com/thread/111896?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 23:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8433db02-70ed-45ee-af60-51de5e6075af</guid><dc:creator>SHYAM THILLAINATHAN</dc:creator><description>&lt;p&gt;Unfortunately, we don&amp;#39;t have the luxury of adding a NPN due to size constraints. This is the part number for the LED we are planning to use: APHHS1005LSECK/J3-PF. Need to know if nRF52840 GPIO can handle it, if so, then in what mode: source or sink and in which drive configuration: standard drive or high drive. Will other GPIO get affected if I am driving a LED directly from a GPIO?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect an LED?</title><link>https://devzone.nordicsemi.com/thread/111895?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 21:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f223147-6a16-4026-8003-4428f325b32a</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;In general its not recommended to run GPIOs and sources or sinks for LEDs.  Better to run GPIO to the base of an NPN transistor to provide the ground path for an LED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>