<?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>interfacing an analog device to the nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36683/interfacing-an-analog-device-to-the-nrf52</link><description>I am trying to connect an lcup heart rate sensor which is an analog device . i am using the SAADC example t interface it to the NRF52 board, but iam not getting the expected values.ow to congigure it for the lcup heart rate sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jul 2018 12:42:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36683/interfacing-an-analog-device-to-the-nrf52" /><item><title>RE: interfacing an analog device to the nrf52</title><link>https://devzone.nordicsemi.com/thread/141529?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 12:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f623355-d46a-40bb-b5ae-247508a644c8</guid><dc:creator>Naveenkumar</dc:creator><description>&lt;p&gt;actually i am getting raw values from the sensor,,i mistook it as BPM vaiues,&lt;/p&gt;
&lt;p&gt;i have changed the raw values to the BPM.&lt;/p&gt;
&lt;p&gt;pass the raw values to this function ,,&lt;/p&gt;
&lt;p&gt;it wil give BPM&lt;/p&gt;
&lt;p&gt;by using this code&lt;pre class="ui-code" data-mode="text"&gt;void data_convert(uint16_t a)
{
	double alpha = 0.75;
static double oldValue = 0;
static double oldChange = 0;
int rawValue = a;
float voltage = rawValue * (5.0 / 1023.0);
double BPM = alpha * oldValue + (1 - alpha) * rawValue;
	NRF_LOG_INFO(&amp;quot;%d\n&amp;quot;,BPM);

}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interfacing an analog device to the nrf52</title><link>https://devzone.nordicsemi.com/thread/141521?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 12:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a44f1efa-8b2e-4efe-be48-4a1b83339f23</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So, for the benefit of future readers who may have the same or similar problems, please describe what was wrong, and how you fixed it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interfacing an analog device to the nrf52</title><link>https://devzone.nordicsemi.com/thread/141517?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 12:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e6db32-14b4-4027-8479-3ac9bc9b7488</guid><dc:creator>Naveenkumar</dc:creator><description>&lt;p&gt;thanks for the answer,,i am getting the values now properly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interfacing an analog device to the nrf52</title><link>https://devzone.nordicsemi.com/thread/140886?ContentTypeID=1</link><pubDate>Sat, 21 Jul 2018 09:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca2f190f-5333-4c2f-b703-7512137fdb8e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So what values are you getting?&lt;/p&gt;
&lt;p&gt;And what values were you expecting?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>