DIY: Build your own computer-based compression tester for $68 (or $100).
#26
What am I doing here?
Thread Starter
Join Date: Mar 2006
Location: 2017 Miata RF Launch Edition
Posts: 3,606
Received 649 Likes
on
510 Posts
Hah yeah Arduino memory is hilarious. I was going to say take a raspberry pi, if you have no power constraints. Then you can run whatever you want. You can even put it in a gameboy case. Or an Arduino Méga, that should give you the 0-5v inputs you want and 256k?
As far a sample frequency, I think you need to sample far faster. 5hz works if you catch the peak exactly. The peak duration is tiny, like 5ms, so you need to sample at 200hz+ to confidently catch the max of each one.
You can use the old derivative method to find peaks. Anywhere where the slope is 0 is either a min or a max. Throw away the mins and you're set.
As for when to start recording, record the last x samples continuously, so the problem becomes detecting stops. This should be easier, you're just looking where X time has passed without peaks. The first few peaks are garbage anyway, the starter doesn't reach full speed until after a few revolutions.
As far a sample frequency, I think you need to sample far faster. 5hz works if you catch the peak exactly. The peak duration is tiny, like 5ms, so you need to sample at 200hz+ to confidently catch the max of each one.
You can use the old derivative method to find peaks. Anywhere where the slope is 0 is either a min or a max. Throw away the mins and you're set.
As for when to start recording, record the last x samples continuously, so the problem becomes detecting stops. This should be easier, you're just looking where X time has passed without peaks. The first few peaks are garbage anyway, the starter doesn't reach full speed until after a few revolutions.
I wasn't saying that I was going to sample at 5Hz, just that it was roughly the frequency of the peaks. I'm hoping the 48 MHz processor will be fast enough for our desired sample rate.
It's looking like the derivative method might be the conceptually easiest way. I think I can calculate the slope for X number of samples and watch for it to change from positive to negative.
Adding in a watchdog function to see if the pulses start/stop shouldn't be too hard. (famous last words)
I was never really an electronics or programming guy but I seem to be drifting that direction more and more.
#27
What am I doing here?
Thread Starter
Join Date: Mar 2006
Location: 2017 Miata RF Launch Edition
Posts: 3,606
Received 649 Likes
on
510 Posts
Okay, I got some help brainstorming on /r/arduino and have a plan. Now I just need the time to actually write the code...
I'm playing around with CircuitMaker and will probably use that to host the project. I'm going to start a new thread when I get further along since this is a distinct project from what came before.
I'm playing around with CircuitMaker and will probably use that to host the project. I'm going to start a new thread when I get further along since this is a distinct project from what came before.
#29
///// Upscale Zoom-Zoom
is that xls file there? (I get page/file not found)
#31
///// Upscale Zoom-Zoom
Thread
Thread Starter
Forum
Replies
Last Post
Attack
Series I Do It Yourself Forum
154
11-23-2009 01:37 PM
wedge357
Series I Do It Yourself Forum
33
02-20-2009 07:43 PM
WikkedOne
Series I Interior, Audio, and Electronics
3
10-25-2008 02:41 AM
Unser
Series I Interior, Audio, and Electronics
6
06-19-2005 05:24 PM
astrlsrfr
Series I Interior, Audio, and Electronics
9
09-04-2003 08:45 AM