SICK sensor and AD wobble

I tried a simple analogRead of a simple two resistor voltage divider and got "wobble", readings of 512 or 511. Your circuit is much more complex than mine!, so many more sources of wobble.

I think your in the area where real circuits and theory differ.

Possible sources of wobble a 1 part in a 1000 wobble.

  1. The output from your PS is not as good as you think. If you looked at it with a very good 'scope you will find it varies even with no load, at mains frequency.

  2. The load is never as constant as you think. A lot of chips draw more current on the rising/falling edge of the clock than in between.

  3. Ambient light changes, some bulbs flicker at the mains frequency, this may be, just, enough.

  4. Induction in that 4 meter cable (from near by mains cables) is the cable shielded?

  5. Small changes in temperature.

  6. Vibration.

Mark