Median cut

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm looking for an efficient bit of code to cut down low frequency noise. Perhaps a median cut. Any pointers to algorithms would be appreciated. The hardware is an LTC2440 into a mega32. I want 10 Hz response and can oversample up to about 300Hz. I'd like to get down into under 5uV noise.
TIA.

Ralph Hilton

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thats how they score the olympics... throw out the lo and hi readings. for 10hz freq resp, must sample at least 20 hz... if you sample at 200 hz, keep 10 samples in an array, maybe do an insertion sort on ea new sample, use the avg of the middle 4 or 8 sammples as the 20hz sample.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks - that was the concept needed - an insertion sort.

Ralph Hilton