<?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>Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/226/plotting-ecg-signal</link><description>Hello, 
 I have a question.... 
 I have real ECG device and I almost got PCA10001 development board. Studying about PCA10001 I noticed that this board has ADC. I downloaded aplication nRFready iOS demo App from Nordic Semiconductor to my iPhone. I put</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Aug 2013 12:06:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/226/plotting-ecg-signal" /><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1253?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2013 12:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c995e53-2d74-42fa-89bf-0632d6cdbb56</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Good thing! If you found a specific solution, I&amp;#39;d be happy if you could post it as a separate answer and mark it as accepted, so that others can easily find a good solution to similar problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1254?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2013 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a09446-a60b-4e04-a9d7-d0a6c96b1282</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hello,
I solved the problem, timers were not well adjusted.&lt;/p&gt;
&lt;p&gt;Thank you for your time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1252?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2013 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67630768-3e00-42f0-b282-f5a8c67593b3</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hello,
I solved the problem, timers were not well adjusted.&lt;/p&gt;
&lt;p&gt;Thank you for your time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1256?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2013 11:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:669112c9-0369-4a99-9fd9-f7c0f05bf1a3</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;m not quite sure if I understand you correctly, but what kind of distortion are you seeing? If you&amp;#39;d like help understanding the issue, it would have been useful if you could upload a zip of your code, so that I can take a look. Screenshots of the app, showing the distortion would also be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1255?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2013 06:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b61a9b-97cb-423b-b237-1a42c494064d</guid><dc:creator>Nikola</dc:creator><description>&lt;p&gt;Yes of course,&lt;/p&gt;
&lt;p&gt;I tried ble_app_hrs of this application and it works great, but I got the idea to try to draw the ECG signal on the graph in the application. The idea is to use the sourse code  ble_app_hrs with some modifications such as:&lt;/p&gt;
&lt;p&gt;//Configure ADC&lt;/p&gt;
&lt;p&gt;NRF_ADC-&amp;gt;INTENSET   = ADC_INTENSET_END_Msk;
NRF_ADC-&amp;gt;CONFIG     = (ADC_CONFIG_RES_8bit      &amp;lt;&amp;lt; ADC_CONFIG_RES_Pos)  |
(ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling &amp;lt;&amp;lt; ADC_CONFIG_INPSEL_Pos) |
(ADC_CONFIG_REFSEL_VBG                      &amp;lt;&amp;lt; ADC_CONFIG_REFSEL_Pos) |
(ADC_CONFIG_PSEL_AnalogInput2                &amp;lt;&amp;lt; ADC_CONFIG_PSEL_Pos)  |
(ADC_CONFIG_EXTREFSEL_None                  &amp;lt;&amp;lt; ADC_CONFIG_EXTREFSEL_Pos);&lt;/p&gt;
&lt;p&gt;I also made ​​some modifications regarding sampling:&lt;/p&gt;
&lt;p&gt;APP_TIMER_TICKS(10, APP_TIMER_PRESCALER) , I put the time sampling every 10ms, in the original version it is 1000ms.  I checked using PCA1000 and Master Control Panel and indeed PCA10001 sends 100 samples in 1 second. Via potentiometer I have simulated changes in voltage at the ADC input and through Master Control Panel I saw that the value of sent samples different depending on the changing position of the potentiometer (voltage to AnalogInput2 ).&lt;/p&gt;
&lt;p&gt;In an application I made that instead of values heart rate prints the value of the samples by the application receives,because I saw a graph drawn on the basis of values heart rate.
In the application I have a drawing of ECG signal but with a distortion and now I do not know if the problem is in the application or sourse code wich I used (ble_app_hrs).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know, If anyone has experience with this stuff, advice is welcome.&lt;/p&gt;
&lt;p&gt;Thank you....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plotting ECG signal?</title><link>https://devzone.nordicsemi.com/thread/1251?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2013 04:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2c56af-23b2-4758-abfd-f074d7ebcb47</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;There isn&amp;#39;t any built-in functionality in the iOS app to plot ECG, so this is something you&amp;#39;d have to add yourself. The source code for the app is available &lt;a href="https://www.nordicsemi.com/eng/Products/ANT/nRFready-iOS-Demo-App/(language)/eng-GB"&gt;here&lt;/a&gt;, and it uses &lt;a href="http://code.google.com/p/core-plot/"&gt;core-plot&lt;/a&gt; for plotting for example the regular heart rate, so I guess this should be usable for ECG as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>