Sorry for the delay, been away doing complicated things like getting married
On 08/06/10 23:30, James Bensley wrote:
I have wired the screen in three different ways (2 of them are technically I guess wrong, but the screen still worked and I thought it may have an effect of the craziness of the analog reading of the pot but it did't!).
I'm at a dead end here...
Is your pot a new one or a reclaimed one you salvaged from somewhere ?
Old dusty or worn pots will have a noisy behavior that could cause this. Also you could try building a voltage divider from two resistors across supply in series and then feed the point between them into the analogue input and see how stable that is.
Also remember that you are feeding a voltage into a presumably fairly low end A-D converter so some sampling errors should be expected in the same way that a digital volt meter will fluctuate between readings. If I am reading the right spec sheet then you have 5mV resolution so it wouldn't take much for the value you are reading to jump about a bit. How often does your code take a sample from the analogue input and what sort of variation are you seeing when the pot is set to max, I can't quite make it out on the youtube video ?