# I want to read analog pulse value with pulse width

**URL:** <https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914>\
**Category:** Programming\
**Created:** [November 23, 2024, 5:39am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914 "2024-11-23T05:39:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![surjeet5077](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surjeet5077/32/1122674_2.png) [@surjeet5077](https://forum.arduino.cc/u/surjeet5077)\
**Post date:** [November 23, 2024, 5:39am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/1 "2024-11-23T05:39:07Z")

</div>

Hi,  
i want to read the analog pulse value with pulse width for one minute time of plastic scintillation detector with arduino.

---

<div class="post-metadata">

**Author:** ![paulpaulson](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulpaulson/32/363643_2.png) [@paulpaulson](https://forum.arduino.cc/u/paulpaulson)\
**Post date:** [November 23, 2024, 5:53am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/2 "2024-11-23T05:53:02Z")

</div>

> [@surjeet5077](#):
>
> plastic scintillation detector

Hello

Welcome to the best Arduino forum ever 🙂

Post the data sheet of the detector to see how we can help.

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [November 23, 2024, 5:57am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/3 "2024-11-23T05:57:00Z")

</div>

> [@surjeet5077](#):
>
> analog pulse value with pulse width

why use an analogue input  
if you are going to measure the timing of pulses it is simpler to use a digital input, attach an interrupt and measure time between rising and falling edges  
have a look at [timing-between-2-events](https://forum.arduino.cc/t/timing-between-2-events/1320025/53)  
what is your pulse timing, e.g. frequency, period, duty cycle, etc?  
what voltage?  
what microcontroller are you using?

---

<div class="post-metadata">

**Author:** ![Paul\_KD7HB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_kd7hb/32/1127958_2.png) [@Paul\_KD7HB](https://forum.arduino.cc/u/Paul_KD7HB)\
**Post date:** [November 23, 2024, 6:03am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/4 "2024-11-23T06:03:45Z")

</div>

> [@surjeet5077](#):
>
> scintillation detector

Let's see if I understand this correctly. A scintillation detector produces a flash of light when a radiation particle passes thru the detector. What part of that process produces something analog?

---

<div class="post-metadata">

**Author:** ![surjeet5077](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surjeet5077/32/1122674_2.png) [@surjeet5077](https://forum.arduino.cc/u/surjeet5077)\
**Post date:** [November 23, 2024, 6:17am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/5 "2024-11-23T06:17:31Z")

</div>

my pulse width of 28-40 ns, frequency range about 35 MHz to 25 MHz, it is negative fast pulse so don't know about period, duty cycle etc.  
my pulse amplitude reaches within the 35 mV to 86 mV., i used Arduino uno, and mega

---

<div class="post-metadata">

**Author:** ![JohnLincoln](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@JohnLincoln](https://forum.arduino.cc/u/JohnLincoln)\
**Post date:** [November 23, 2024, 6:38am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/6 "2024-11-23T06:38:28Z")

</div>

Arduino Unos and Mega 2560 use a 16MHz clock frequency, with a period of 62.5ns.  
You can't use them to measure times of 28ns to 40ns.

It's like using a clock with a second hand to try to measure something 0.3s to 0.6 s long.

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [November 23, 2024, 7:14am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/7 "2024-11-23T07:14:48Z")

</div>

> [@surjeet5077](#):
>
> my pulse width of 28-40 ns, frequency range about 35 MHz to 25 MHz,

never attempted to measure timing such as this using a microcontroller  
possibly using a DSP, e.g. [TI DSPs](https://www.ti.com/microcontrollers-mcus-processors/digital-signal-processors/overview.html/)  
or an FPGA  
or a Raspberry Pi?

---

<div class="post-metadata">

**Author:** ![johnerrington](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnerrington/32/340106_2.png) [@johnerrington](https://forum.arduino.cc/u/johnerrington)\
**Post date:** [November 23, 2024, 8:16am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/8 "2024-11-23T08:16:19Z")

</div>

> [@surjeet5077](#):
>
> my pulse width of 28-40 ns, frequency range about 35 MHz to 25 MHz

I'm confused. You have an irregular train of negative pulses each around 30nsec.  
Where does the frequency number come from?

> [@surjeet5077](#):
>
> don't know about period, duty cycle etc

You could consider amplifying the pulse and extending it to be longer in duration - but what if two pulses arrive in rapid succession?  
You need to have SOME idea of how many pulses you are expecting in a given period.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 22, 2025, 8:16am UTC](https://forum.arduino.cc/t/i-want-to-read-analog-pulse-value-with-pulse-width/1324914/9 "2025-05-22T08:16:53Z")

</div>

Closed on May 22, 2025, 8:16am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
