Measuring the time delay between 2 pulses

mikepanchaud

New Member
Hi,

I'd like to be able to measure the delay between 2 audio pulses (e.g. hand claps) ideally in milli seconds using a picaxe e.g. 08M2.

I have the hardware and microphone sorted, but need a pointer with the code.

Can this be done?


Thanks in advance.

Mike.
 

hippy

Technical Support
Staff member
You can wait for the first pulse to appear ( and disappear ), then keep incrementing a word variable until the next pulse appears. From the count in the word variable you can determine what the time was between the pulses.
 
Top