Notices
Series I Do It Yourself Forum Wanna save some coin or time/money in the shop? Read up on Do-It-Yourself custom mods and repairs & post your own here.

DIY: Build your own computer-based compression tester for $68 (or $100).

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old 02-19-2019, 11:37 AM
  #26  
What am I doing here?
Thread Starter
 
NotAPreppie's Avatar
 
Join Date: Mar 2006
Location: 2017 Miata RF Launch Edition
Posts: 3,606
Received 649 Likes on 510 Posts
Originally Posted by Loki
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.
Yah, I've got an RPi 3B running RetroPi for all my nostalgia gaming needs. I even built a portable unit with batteries and LCD panel for my nephew.

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)

Originally Posted by wannawankel
This has taught me one thing - boy do I need to brush up on my electronics skills. Not since Radio Shack days....
Yah, the Arduino has kind of been a revolution in user-accessible programmable microcontrollers.*

I was never really an electronics or programming guy but I seem to be drifting that direction more and more.
Old 02-20-2019, 02:06 PM
  #27  
What am I doing here?
Thread Starter
 
NotAPreppie's Avatar
 
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.
Old 07-07-2019, 10:07 PM
  #28  
Registered
iTrader: (1)
 
Loki's Avatar
 
Join Date: Jun 2009
Location: Montreal
Posts: 7,723
Received 957 Likes on 835 Posts
I realized I never posted the excel sheet I use with this tool to handle conversions, rpm, etc.

Here it is!

I did have to replace the pressure transducer because the original stopped transducing.
Attached Files
File Type: xlsx
Compression Test.xlsx (27.2 KB, 53 views)
Old 07-08-2019, 12:57 PM
  #29  
///// Upscale Zoom-Zoom
 
wannawankel's Avatar
 
Join Date: Nov 2009
Location: Massachusetts
Posts: 1,570
Received 179 Likes on 156 Posts
is that xls file there? (I get page/file not found)
Old 07-08-2019, 02:53 PM
  #30  
Registered
iTrader: (1)
 
Loki's Avatar
 
Join Date: Jun 2009
Location: Montreal
Posts: 7,723
Received 957 Likes on 835 Posts
Originally Posted by wannawankel
is that xls file there? (I get page/file not found)
I'm able to download it from the attachment. It's just attached to the post, nothing fancy :/
Does it not show up?
Old 07-09-2019, 12:12 PM
  #31  
///// Upscale Zoom-Zoom
 
wannawankel's Avatar
 
Join Date: Nov 2009
Location: Massachusetts
Posts: 1,570
Received 179 Likes on 156 Posts
Originally Posted by Loki
I'm able to download it from the attachment. It's just attached to the post, nothing fancy :/
Does it not show up?
It works today - I was too fast to download it after you posted..
Related Topics
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



You have already rated this thread Rating: Thread Rating: 0 votes,  average.

Quick Reply: DIY: Build your own computer-based compression tester for $68 (or $100).



All times are GMT -5. The time now is 11:01 PM.