??? 05/14/08 12:28 Read: times |
#154767 - Ok, first things first then. Responding to: ???'s previous message |
I only know that my device is "hunting" for it target, yet there is very littel noise on the wiper arm of the pot according to the scope, typically not enough to cause the major deviation I'm seeing on the device.
Well, there are other ways for noise to get into the sampled signal on the analog side apart from the ADC input pin. One major factor is the stability of the ADC supply voltages. If they are not stable, then a perfect input signal will not help. Hunt down the possible sources for noise on the analog side first. Once that is done, you can try suppressing the noise by applying appropriate filters on the digital side, depending on where in the frequency spectrum your signal is located. Here, you may want to start with "plain" linear filters (finite or infinite impulse response, or a combination) first before trying more exotic (and nonlinear) things like median filtering. Median filters, if they are used, are usually kept small due to the amount of CPU power required for sorting large arrays. For a 3, 5 or 7-element median filter, a simple bubble sort is sufficient. |
Topic | Author | Date |
Sort array data elements? | 01/01/70 00:00 | |
Sort and Search? | 01/01/70 00:00 | |
Neil..... | 01/01/70 00:00 | |
64 samples is big for a median filter ... | 01/01/70 00:00 | |
No I haven't.....only because | 01/01/70 00:00 | |
Google for "sorting algorithms" | 01/01/70 00:00 | |
Ok, first things first then. | 01/01/70 00:00 | |
The MPU and LDO are all in order | 01/01/70 00:00 | |
Quantization error ? | 01/01/70 00:00 | |
the step size dependacy makes its problematic | 01/01/70 00:00 | |
Sorts![]() | 01/01/70 00:00 | |
??? | 01/01/70 00:00 | |
Couldn't sort it... | 01/01/70 00:00 |