How are you getting the input from the G-sensor some analog input?
Re the Rev's you'd be much better off making a hardware counter with a clocked gate
and reading it back digitally (via a printer port!)
I dont think you can do accurate software DSP at 6000rpm (4 stroke - 20ms cycle) The
processing overhead with windows shit multi-tasking would leave you no time for
anything else - grap a TTL Manual (if they still use such stuff!)
Regards
Neven
-----Original Message-----
From: Sean Cross [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 23, 1999 5:57 PM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Sampling sound
I am wanting to read spark plug pulses so i can calculate rpm (and then add
in accelration measured by a g sensor).
The easiest way of doing this is via the microphone jack. Then I can find
the peaks and do something with the information. I could just record
everything into a buffer and look for the peaks in semi real time but I need
to be able to syncronise the data with other infomation (eg G sensor).
How often I need to sample (and what the best process is) is something that
will require experimentation.
All help gratefully appreciated.
Sean
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Alistair George
> Sent: Thursday, 23 September 1999 08:24
> To: Multiple recipients of list delphi
> Subject: [DUG]: Sampling sound
>
>
> > does anyone have any ideas/pointers on sampling sound. I don't want to
> > actually record sound, rather I want to get samples 100-200
> times a second
> > and then act on them immediately.
> Depends a bit on what you want to do.
> If you want the peaks I think the term is quantasize or similar.
> There is a
> WAV file 'normalizer' which is freeware which works on reducing or
> increasing the overall level of the parsed WAV file for
> consistent recording
> levels. I am seeking the source code for this and if thats what you are
> after let me know off the list.
> Otherwise, if you want to look at millisecond 'frames' thats
> another story.
> There are several audio codes which demonstrate that as in VU
> meters. If you
> need ask me and I will send to you.
> Alistair+
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
application/ms-tnef