<?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 measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832</link><description>Im using PCA10040 nrf52832 to measure light intensity with photodiode, 
 im using SAADC and SPI example to measure values but im not able to see any changes on UART as light intensity changes. 
 please suggest.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2019 12:04:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832" /><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/197827?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 12:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3815376-a64b-40e6-8dea-9d00b9841558</guid><dc:creator>awneil</dc:creator><description>[quote userid="80924" url="~/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832/197818"]Please Suggest[/quote]
&lt;p&gt;I suggest that you keep to 1 question per Thread.&lt;/p&gt;
&lt;p&gt;So start a new thread for this new question, and give it a good, descriptive title.&lt;/p&gt;
&lt;p&gt;You will also need to give more detail of what you&amp;#39;ve actually tried, and what results you got.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/197818?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 11:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76152e33-aeed-4e4d-9a50-e14f51f707f3</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;Hello Awneil,&lt;/p&gt;
&lt;p&gt;Im trying to configure or set gain in&amp;nbsp; SAADC example, for various gains it should operate but im not getting how to set gain register so that i get SAADC output depending on various gain and even i tried to change gain values in nrfx.saadc.h file but getting error. gains defined in nrfx.saadc.h files are default one but i want it to work as per my amplifier. So how can i define gains and make it work properly. Im using only 1channel AIN0&lt;/p&gt;
&lt;p&gt;Presently its working properly with default gain values.&lt;/p&gt;
&lt;p&gt;Please Suggest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/196166?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 08:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9dcd0e-3b51-454d-92b7-f587b06090af</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Jolly good!&lt;/p&gt;
&lt;p&gt;For the benefit of others who may have similar problems, and find this, please explain what the actual problem was - and how, exactly, you solved it.&lt;/p&gt;
&lt;p&gt;And verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0246._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/196157?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 07:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c2371b-4908-4d33-be75-75b30808eb46</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;&amp;nbsp;thank you Awneil its working fine im getting output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/196141?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 07:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6702142b-ca62-43ea-8357-855ba44a937b</guid><dc:creator>awneil</dc:creator><description>[quote userid="80924" url="~/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832/195944"]Connected AIN0 (P0.02) to VDD.[/quote]
&lt;p&gt;You need to swap it between VDD and GND to see a change&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/196116?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 04:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21be22fa-0bc4-4730-9017-3b0eb13d7ff1</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;Tried SAADC example only but still no changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/195944?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 10:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ca87c7-acf8-485b-8264-a740efafc83f</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1667.SAADC.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Still im getting same values i didnt make any changes in code just using AIN0 pin channel 0. Connected AIN0 (P0.02) to VDD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/195869?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13865f0a-d48a-47ca-84ff-e39191c263d2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You never mentioned any amplifier - we are not mind readers!&lt;/p&gt;
&lt;p&gt;But, again, &lt;strong&gt;start simple!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Start with the SAADC example, to learn to use the SAADC &lt;em&gt;on its own&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Then use an SPI example, to&amp;nbsp;&lt;span&gt;learn to use the SPI&amp;nbsp;&lt;/span&gt;&lt;em&gt;on its own&lt;/em&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then - once you have understood both parts and have them working well - bring the two together.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Note that a photo-&lt;em&gt;transistor&lt;/em&gt; should give you a usable voltage without the need of an amplifier.&lt;/p&gt;
&lt;p&gt;Digital light level sensor are also available&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/195860?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85a884f-e1f1-4081-b1ea-f08d565dd389</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/31608.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;this what im getting values.&lt;/p&gt;
&lt;p&gt;im using SPI because as whatever using amplifier supports SPI protocol, which is mainly used for ADC operation and then data sent to nrf52832 of AIN0 pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/195844?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 07:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d13372e-fec4-4478-9b99-ebcd78626850</guid><dc:creator>awneil</dc:creator><description>[quote userid="80924" url="~/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832"]im using SAADC and SPI&amp;nbsp; example to measure values [/quote]
&lt;p&gt;What has SPI got to do with it?&lt;/p&gt;
&lt;p&gt;Always start simple - so get rid of the added, unnecessary complication of SPI!&lt;/p&gt;
&lt;p&gt;Start with the SAADC example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_dev_saadc_example.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_dev_saadc_example.html&lt;/a&gt;&lt;/p&gt;
[quote userid="80924" url="~/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832"]im not able to see any changes on UART as light intensity changes[/quote]
&lt;p&gt;Are there any changes in the voltage at the analogue input pin?&lt;/p&gt;
[quote userid="80924" url="~/f/nordic-q-a/49228/how-to-measure-light-intensity-with-photodiode-using-nrf52832/195834"]AN0 pin is used[/quote]
&lt;p&gt;Are you sure you have the correct pin?&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47914/saadc-example-problems/189911#189911"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47914/saadc-example-problems/189911#189911&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which links to:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46819/problems-with-saadc/184714#184714"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46819/problems-with-saadc/184714#184714&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure light intensity with photodiode, using nrf52832?</title><link>https://devzone.nordicsemi.com/thread/195834?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 07:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1adf58-411a-4048-b066-83f9deeb9fe6</guid><dc:creator>Pooja Vernekar</dc:creator><description>&lt;p&gt;AN0 pin is used for photodiode connection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>