<?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>GPIO Current Drive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47289/gpio-current-drive</link><description>My application uses the nRF51822 with a GPIO configured as output and another GPIO is configured as input. Connected to the GPIO_OUT is a resistive load (Rload) which then connected to GPIO_IN. When GPIO_OUT drives a &amp;#39;1&amp;#39; and if the load has low resistance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2019 16:39:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47289/gpio-current-drive" /><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187352?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93724c52-9014-4cf9-8d4c-d4d087c9508f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You really do need a hardware engineer on your team!&lt;/p&gt;
&lt;p&gt;The analogue inputs see a &lt;em&gt;voltage&lt;/em&gt;. So you need some way to translate the variable &lt;em&gt;resistance&lt;/em&gt; of your sensor into a &lt;em&gt;voltage&lt;/em&gt; for the&amp;nbsp;&lt;span&gt;analogue input ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is basic electronics - not specific to Nordic.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://en.wikipedia.org/wiki/Voltage_divider#Sensor_measurement"&gt;https://en.wikipedia.org/wiki/Voltage_divider#Sensor_measurement&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187350?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0105d5f-d65e-4776-b3a8-e8fe281e2ff8</guid><dc:creator>lance338</dc:creator><description>&lt;p&gt;I know what a voltage divider is, just don&amp;#39;t understand how that is required for the analog comparator (which admittedly I just learned about today)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187349?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:26:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be596b96-41a0-41ed-9749-5d0a7047f86d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You need a hardware engineer on your team!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Voltage_divider"&gt;https://en.wikipedia.org/wiki/Voltage_divider&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187347?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ca6283-2ff2-4443-96b8-bf6f4130de84</guid><dc:creator>lance338</dc:creator><description>&lt;p&gt;Thanks. We will migrate to nRF52 eventually.&lt;/p&gt;
&lt;p&gt;BTW, you said we need to use a potential divider. Can you please elaborate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187345?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd64ccf-0eef-4b72-9aa9-3dfc41ca9e24</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;I would read the section on the comparator in the Product Specification, and then look for an example in the SDK examples.&lt;/p&gt;
&lt;p&gt;Note that the nRF51 chips are not recommended for new BLE designs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187343?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22206a1c-b362-403b-9be2-903707ee3cc1</guid><dc:creator>lance338</dc:creator><description>&lt;p&gt;Are you suggesting to use the GPIO as analog with the LPCOMP logic? I came to that conclusion as well. If that is the case, can you give/point to more details on how to set it up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187342?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 16:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4327212c-8ae1-4979-93ef-5581adbe2b34</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So you want to detect whether the resistance is &amp;quot;high&amp;quot; (1M) or &amp;quot;low&amp;quot; (20k)&lt;/p&gt;
&lt;p&gt;The arrangement you showed will not do that.&lt;/p&gt;
&lt;p&gt;What you need is a potential divider, and user either the ADC or Comparator to look at the voltage and, thus, decide whether the resistance is &amp;quot;high&amp;quot; or &amp;quot;low&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187338?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 15:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a8a923-8cfb-45fd-ad9f-19c55663e025</guid><dc:creator>lance338</dc:creator><description>&lt;p&gt;Just detect whether chemical present/not present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187334?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 15:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e247fc5a-7e4a-4807-9367-b260d809a37a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So are you actually trying to measure the resistance, then?&lt;/p&gt;
&lt;p&gt;Or just detect whether the chemical is present (&amp;quot;low&amp;quot; resistance) or not (&amp;quot;high&amp;quot; resistance)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187332?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 15:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cc99f25-68e0-46b3-a0cf-fdbdc7e767bf</guid><dc:creator>lance338</dc:creator><description>&lt;p style="text-align:left;"&gt;Thanks for your response. I used the word load loosely. Let&amp;#39;s call them external resistor whose resistance varies depending on the amount&amp;nbsp; of chemical substances it interacted with. The circuit is exactly as shown. Both gpios or on the same nrf51822.&amp;nbsp; For our purpose, if there is no chemical substances, the external resistor is 1M ohm. With chemical present, the resistance is 20K ohm.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187301?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 13:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d8e8e4-75f7-49b0-8df4-e4c4c7bad48a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47289/gpio-current-drive/187299#187299"&gt;below &lt;/a&gt;about your meaning of &amp;quot;&lt;em&gt;load&lt;/em&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;As a straightforward resistor between OUT and IN, it should work - so there must be something else going on...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187299?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 13:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7114dd-e4d9-492f-a826-f65c71e7f258</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The way you use the word &amp;quot;load&amp;quot; is suspicious.&lt;/p&gt;
&lt;p&gt;The connection you&amp;#39;ve shown would not normally be described as a &amp;quot;&lt;em&gt;load&lt;/em&gt;&amp;quot;:&lt;/p&gt;
[quote userid="62040" url="~/f/nordic-q-a/47289/gpio-current-drive"]GPIO_OUT ------------------ Rload -----------------------GPIO_IN&amp;nbsp;[/quote]
&lt;p&gt;That is simply a resistor connecting the OUT to the IN.&lt;/p&gt;
&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/kme"&gt;Kenneth&lt;/a&gt; said, the IN has a very high impedance - so virtually &lt;em&gt;&lt;strong&gt;no&lt;/strong&gt; &lt;/em&gt;current wil flow through the &amp;quot;load&amp;quot;&lt;/p&gt;
&lt;p&gt;But does that diagram fully represent your situation?&lt;/p&gt;
&lt;p&gt;Why are you calling this thing a &amp;quot;&lt;em&gt;load&lt;/em&gt;&amp;quot; ?&lt;/p&gt;
&lt;p&gt;Are the OUT and IN pins on the same nRF51822 chip?&lt;/p&gt;
&lt;p&gt;Can you post a full schematic of your setup?&lt;/p&gt;
&lt;p&gt;Or some good, clear, in-focus photographs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187275?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec74285-d5fd-4f5c-94fa-2dca30dc56ca</guid><dc:creator>lance338</dc:creator><description>&lt;p&gt;Thanks Kenneth. Our goal is to be able to detect &amp;#39;1&amp;#39; at the input gpio with a load of 20K ohm. Do you have any suggestion to achieve that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO Current Drive</title><link>https://devzone.nordicsemi.com/thread/187247?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d27604cb-f8ae-4dfd-a9c8-ea126ed8921a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The drive strength configure the max current the GPIO _may_ provide, to sink or source external circuitry.&lt;/p&gt;
&lt;p&gt;In this case I think you have a 6Kohm resistor in series with an input pin with very high impedance (&amp;gt;&amp;gt;1Mohm).&amp;nbsp;So there will be close to no current floating through the 6Kohm resistor.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>