<?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>Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18791/is-there-a-way-to-detect-1ms-pulse-with-voltage-of-around-300mv</link><description>We are already using ADC for battery sense, also tried using ADC and LPCOM but could not get any reliable result.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2017 16:01:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18791/is-there-a-way-to-detect-1ms-pulse-with-voltage-of-around-300mv" /><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72586?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 16:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f03f795-6129-48b1-b8a3-fcb52b684827</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I see you already got a lot of good suggestions, but I would like to know what reference you used for the LPCOMP when you tried it?&lt;/p&gt;
&lt;p&gt;Probably none of the internal references will cut is, as they could all be above 300mV (depending on your supply voltage).&lt;/p&gt;
&lt;p&gt;You can still use an external reference though. You could set up a voltage divider to generate any voltage between 0 and VDD, and use that as reference on either the AREF0 or AREF1 pins.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested this myself, but in theory it should allow you to wake up on the 300mV pulse.&lt;/p&gt;
&lt;p&gt;You will have to disable the LPCOMP whenever you use the ADC though, which could be a problem depending on how often you get pulses and how critical it is that you detect them all.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72585?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 00:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:418d43e2-d1c0-40e7-bbb1-76c2257069c2</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;@kernels&lt;/p&gt;
&lt;p&gt;No worries..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72579?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 00:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d22e604-c336-415c-bcf8-df2dee7f3977</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure which response you replied to, as you posted your response and an answer&lt;/p&gt;
&lt;p&gt;Using the ADC is not ideal for pulse detection, because of the acquisition time&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know the acquisition time of the ADC on the nRF51822 but I&amp;#39;m fairly sure if you ran it constantly, you would be able to detect a 1mS wide pulse.&lt;/p&gt;
&lt;p&gt;However normally pulse detection is done using GPIO and possibly via interrupt GPIOTE&lt;/p&gt;
&lt;p&gt;Do you require a low power solution, as I don&amp;#39;t think an OpAmp is likely to be low power.&lt;/p&gt;
&lt;p&gt;What OpAmp did you try using, is it &amp;quot;rail to rail&amp;quot; i.e will it drive the output to the supply voltage ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72584?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 23:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c1e9e02-3cc7-486f-9118-db296b434a83</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;Ahh yes of course, should have paid more attention when reading your initial answer. That is a good solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72583?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 23:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da5446bd-f120-45eb-a1f0-3f74751af820</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;You forward bias the base / gate voltage on the transistor to just below its switch on point, and the capacitor provides DC isolation, so that the bias voltage is maintained until the actual pulse arrives.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done a quick model of this in LTSpice and I can get it to work with a normal NPN transistor, but at the moment I get the GPIO triggerring on the trailing edge of the pulse.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure somebody who is skilled in analog design could easily design a single active component circuit to do better.&lt;/p&gt;
&lt;p&gt;Of course the problem with this, is that you need to maintain the forward bias voltage and there would be leakage into the base of the bipolar transistor. Even so, my quick hack of a circuit was only taking 12uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72580?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 23:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee4a505-dae1-4830-a1dc-b2efde9b8434</guid><dc:creator>KS</dc:creator><description>&lt;p&gt;thank you for your reply. Yes, we are using an op amp and the gain is currently increased, our pulse now shoots to 1.5V still we are unable to detect such pulse in ADC or LPCOM. some reference will be appreciated thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72582?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 23:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f402599-5dc2-4f8b-85c0-6e11f1225458</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;Wouldn&amp;#39;t 300mV be too low to activate a transistor or fet ? You would need a comparator or opamp ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to detect 1ms pulse with voltage of around 300mV?</title><link>https://devzone.nordicsemi.com/thread/72581?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 20:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794bd9b3-fa1e-40e4-a262-1a6b068d0329</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;I think the best solution is to use a transistor as an amplifier for this signal, and then use a normal GPIO input.&lt;/p&gt;
&lt;p&gt;Assuming you simply want to detect that there is a pulse, and you dont want to measure its length, you can feed the signal via a capacitor to a forward biased transistor&lt;/p&gt;
&lt;p&gt;Note. This will take some current all the time, but you can probably limit this by careful choice of bias resistor values, and perhaps use a FET rather than a bipolar transistor.&lt;/p&gt;
&lt;p&gt;Edit.
Note. This method would also have a small delay between the pulse arriving, and it being transferred though the capacitor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>