<div dir="auto"><div>Hi Wallace,<div dir="auto">  To get a smooth velocity without adding delay (like an iir filter) you can simply take the slope, but over more samples. (Eg, 4 samples ahead - 4 samples back divided by 9).</div><div dir="auto">Same can be done for getting a smooth acceleration.</div><div dir="auto">/s</div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, 23 Oct 2018, 09:41 Charles Manning <<a href="mailto:cdhmanning@gmail.com">cdhmanning@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>If you have data with spikes in it then a median filter is a very good way to get rid of those spikes. It is better than an IIR or FIR which "cook in" the error.</div><div><br></div><div>basic algorithm for a 5 point median filter:</div><div><br></div><div>Take the five points: x0..x4.</div><div>Sort them into y0..y4</div><div>Select y2 (the median value).</div><div><br></div><div>You can then apply an IIR/FIR to the result. <br></div><div><br></div><div>It is pointless going the over way (ie. IIR/FIR) then median filtering since the FIR/IIR will cook in the noise and the median filter can't take it out.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 23, 2018 at 8:47 AM Hartley, Robin (Nokia - NZ/Wellington) <<a href="mailto:robin.hartley@nokia.com" target="_blank" rel="noreferrer">robin.hartley@nokia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Wallace,<br>
<br>
Something to keep in mind when measuring cam profiles is the shape of the cam follower. Flat bottom followers result in a very different effective profile compared with roller followers. Some followers that appear flat actually have a profile to them.<br>
<br>
When doing this the old fashion way with a DTI we would do it in situ using the followers, and we used to vibrate the bench at each measurement point to get the pointer to settle. When running the DTI directly on the cam drag on the end of the pointer causes stiction in the bearing that can give this semi cyclic error. A bit of vibration may help<br>
<br>
For selecting between a set of cams I'd just use Excels curve fitting to smooth the curve. And then do the velocity calcs on the resultant curve.<br>
<br>
Regards,<br>
Robin<br>
<br>
-----Original Message-----<br>
From: Chchrobotics <<a href="mailto:chchrobotics-bounces@lists.ourshack.com" target="_blank" rel="noreferrer">chchrobotics-bounces@lists.ourshack.com</a>> On Behalf Of Marshland Engineering<br>
Sent: Saturday, October 20, 2018 10:30 AM<br>
To: <a href="mailto:chchrobotics@lists.ourshack.com" target="_blank" rel="noreferrer">chchrobotics@lists.ourshack.com</a><br>
Subject: Re: [chbot] Filter<br>
<br>
After quite a few chats and emails, the problem has become clearer. In some way it may not really a filter issue. For a 4 stroke engine cam, there are basically 4 components, base circle, up ramp, over the nose and down ramp back to the base circle. <br>
<br>
So we have 0 velocity, acceleration to the up ramp, constant velocity, deceleration, stop (over the nose) acceleration, down ramp, deceleration and back to 0. <br>
<br>
The figures to look for are the acceleration. If it is too high then the valve/valve strings etc loose contact with the cam. <br>
<br>
The figure for acceleration (from memory) is 0.008" per degree or .2 mm/degree.  This is what I want to measure/compare. <br>
<br>
Here is some info on it.<br>
<a href="http://www.profblairandassociates.com/GPB_4stHEAD_ValveLiftDesign_hmb.html" rel="noreferrer noreferrer" target="_blank">http://www.profblairandassociates.com/GPB_4stHEAD_ValveLiftDesign_hmb.html</a><br>
<br>
Basically I have several different cams and want to measure them all and choose the one with the most gentle profile. <br>
<br>
Cheers Wallace.<br>
<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank" rel="noreferrer">Chchrobotics@lists.ourshack.com</a> <a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank" rel="noreferrer">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank" rel="noreferrer">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div></div></div>