<?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>Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100457/implementation-of-led-connection-monitoring-function</link><description>Thank you for your assistance. We are currently developing firmware using nrf52840. In the process, I am trying to implement an LED connection monitoring function using AD conversion, but it is not going well. The details of the function are to check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jun 2023 11:36:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100457/implementation-of-led-connection-monitoring-function" /><item><title>RE: Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/thread/432945?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 11:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb404700-fdb2-45b4-8623-40db378fa077</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey KemonCacke,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve moved this ticket to the &amp;#39;Private&amp;#39; realm so we can share confidential informaion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to review your schematics and layout files for any issues, and to understand&amp;nbsp; your circuit better.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If the ADC output is not within +/-2lsb10 of zero when the input is at GND level, then you need to run offset calibration.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If the ADC output == DC power supply sweep, then there is no issue with the ADC itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the ADC input is floating then it is likely to float close to VDD potential, but with a fair bit if noise. Often as much as +/- 40 12-bit&amp;nbsp;lsb. If there&amp;#39;s less than +/-5 12-bit lsb of noise then there might be a short between the GPIO and VDD.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Håkon Holdhus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/thread/432605?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2023 05:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4888d3e8-00f7-49fa-b1b0-634130e7afff</guid><dc:creator>LemonCake</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your assistance.&lt;br /&gt;Thank you very much for answering my question.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;When you say &amp;#39;I cannot read the value&amp;#39;, do you then mean that the value is as you have shown in the original ticket, or is it somehow failing?&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;With the LED attached to the board, the ADC value should be about 1800, but it outputs a value of about 2800, which is much larger than that, and when the LED is removed, it should output a value of about 1400 or less, but it outputs a value of about 2700, so I am wondering if there is some kind of We believe that an error has occurred.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;Have you verified the voltage going into AIN5 by another device, such as a oscilloscope or multimeter?&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;I have increased the ADC value by 0.5[V] from 0~2.5[V] using a stabilized power supply and read the ADC value at each of them, and a realistic value is output. Therefore, there seems to be no problem with the output of ADC values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By the way, the ADC value is output at about 2700 even though the LED is not installed, but it is calculated to be about 1.8[V]. This is the default value of the power supply voltage, so there is a possibility that this is related to the problem, but we do not know how to solve it specifically.&lt;br /&gt;Thank you in advance for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/thread/430807?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 14:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdfe45e5-7d7b-44e3-b8b9-1d328a0ec519</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Kosuke"]Thank you for your assistance.&lt;br /&gt;Thank you very much for your reply.[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="Kosuke"]As for the details of what I am doing, I would like to read the voltage divided by a resistor at AIN5 when the 8.2V input is switched on and off, as shown in the figure below. However, when I input 1.2V to AIN5 when the supply voltage is 2.7V, I cannot read the value.[/quote]
&lt;p&gt;Thank you for providing the diagram, this makes your setup much easier to understand.&lt;br /&gt;When you say &amp;#39;I cannot read the value&amp;#39;, do you then mean that the value is as you have shown in the original ticket, or is it somehow failing?&lt;br /&gt;Have you verified the voltage going into AIN5 by another device, such as a oscilloscope or multimeter?&lt;br /&gt;&lt;br /&gt;With the configuration shown above your input range should be 0-VDD, so that should not be the problem here either.&lt;br /&gt;Just out of curiosity from what you wrote in the original ticket, what is the result if you use the following config:&lt;br /&gt;NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_VDD)?&lt;br /&gt;When you initially tried to measure GND, did you then short the AIN5 with GND directly, through an external jumper or similar?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/thread/430664?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 08:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:227281ed-9a2a-4c5b-aa9c-5be38feb725a</guid><dc:creator>LemonCake</dc:creator><description>&lt;p&gt;Thank you for your assistance.&lt;br /&gt;Thank you very much for your reply.&lt;br /&gt;As for the details of what I am doing, I would like to read the voltage divided by a resistor at AIN5 when the 8.2V input is switched on and off, as shown in the figure below. However, when I input 1.2V to AIN5 when the supply voltage is 2.7V, I cannot read the value.&lt;br /&gt;Please please help me.&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/20230613_5F00_16_5F00_34_5F00_51_5F00_720.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementation of LED connection monitoring function</title><link>https://devzone.nordicsemi.com/thread/430358?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f85816-dc23-46b5-ad2c-511f88182b62</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your &lt;em&gt;extreme&lt;/em&gt; patience with this. I have been away from DevZone for some days at the end of last week, but now I am back.&lt;/p&gt;
[quote user=""]Specifically, I am setting the AIN value and outputting the ADC value of the input side and the GND side, i.e., the raw data at the time of AD conversion, but the value of the GND side does not become 0, and the value is as shown in the first image below.[/quote]
&lt;p&gt;When you say this, do you mean that you keep the AIN5 configuration the same, and the externally connect the chosen AIN5 between the LED and the GND, to measure? Or do you mean that you reconfigure it in the code, and see no difference? In case of the latter, could you elaborate on exactly how you do this?&lt;br /&gt;&lt;br /&gt;If you could also share a simple diagram of your setup, just so that I can make sure that I have understood your setup and intentions correctly.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>