LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse detection arduino and labview

Hello everyone,

I'm currently working on a project to detect pulses and oscillations in an analog signal using an Arduino. My objective is to detect the voltage corresponding to the first pulse, the voltage after the last oscillation,.

More specifically, I am looking to:

Identify the voltage of the first pulse: This voltage corresponds to the first peak detected after a significant drop in voltage.

Measure the voltage just after the last oscillation: After the last detected oscillation, I want to record the voltage that immediately follows.
I had the idea of recording the samples just after the voltage reaches its maximum, rather than just after a voltage drop, to detect possible pulses.

Specifically, my approach is to save these samples into an array so that I can do comparisons and detect pulses. However, as a beginner, I encounter some difficulties in making this idea a reality.

I use a potentiometer as an analog sensor connected to my Arduino. If you have any tips, tricks, or suggestions on how to make this idea a reality, I would be very grateful to hear them. I am mainly trying to understand how to effectively apply this approach in my project.

Thank you very much for your help and valuable advice!

Download All
0 Kudos
Message 1 of 3
(496 Views)

One way is to implement as a state machine,

start by reading the analog input and compare each reading to a threshold. 

Once the threshold is reached, switches to a state where the voltage is saved and monitors the voltage to define the moment to stop saving data. - switch to a state you stop saving and return to the first state.

You didn't mentioned the criteria to stop the saving of the data. 

 

0 Kudos
Message 2 of 3
(440 Views)

Hello everyone,

First thank you for your response

As voltage increases, it usually reaches a maximum value and then begins to decrease. There is generally no fixed threshold, because it is difficult to predict where the voltage drop will stop. During this voltage drop, pulses appear. I want to detect the first voltage corresponding to the first pulse, which occurs just after the voltage peak. Then I want to detect the voltage immediately after the last pulse. For this, I have planned to use an array to store the data from the voltage peak i.e. during the descent. Regarding the data acquisition method, I will put in places a system where I will simply have to click a button to start the acquisition.

In other words , After an increase in voltage followed by a decrease and the appearance of pulses during the voltage drop phase, I want to create a table to record these different voltages. Once the acquisition is complete, I will use an algorithm to perform the operations I mentioned. The objective is to highlight on the interface the first voltage corresponding to the first peak and the voltage immediately following after the last peak detected.

I hope to find a solution as close as possible

thank you

0 Kudos
Message 3 of 3
(427 Views)