frankzappa
Well-known member
Hello. I'm getting some kind of "stepping" problems on certain pins as though the average signal goes up one step and stays there and sometimes it's a step lower. I'm averaging the signal and it seems the behaviour is different depending on how I shift it. If I add say a value of 0.5 to the sensor readings to shift the readings up by a value of 0.5 it might jump up or down by a value of maybe 1.5 or so.
It almost seems like it's rounding errors of some kind.
However it only occurs on two of the 8 pins I'm using.
Any ideas?
I'm reading two sensors at a time and going through all 8 pins very fast using the ADC library.
Does it matter which two sensors I read simultaneously on the two ADC's? Maybe it's not a good idea to read two adjacent sensors simultaneously and I should read two that are apart from eachother? Right now they are kind of scrambled.
It could also be electrical problems but I don't think so as it seems to only occur on two of the pins. Almost seems like some pins are worse quality than others since the signal quality I'm getting on the other pins is ridiculously good.
Thanks.
It almost seems like it's rounding errors of some kind.
However it only occurs on two of the 8 pins I'm using.
Any ideas?
I'm reading two sensors at a time and going through all 8 pins very fast using the ADC library.
Does it matter which two sensors I read simultaneously on the two ADC's? Maybe it's not a good idea to read two adjacent sensors simultaneously and I should read two that are apart from eachother? Right now they are kind of scrambled.
It could also be electrical problems but I don't think so as it seems to only occur on two of the pins. Almost seems like some pins are worse quality than others since the signal quality I'm getting on the other pins is ridiculously good.
Thanks.