I have two 10K pots hooked up to pins A0 and A1. They used to read nicely and smoothly. They gave me a brightness level for some LEDs I am driving. The LEDs are being driven just fine. The issue is that I am only getting a value of 255 out of my analog pins. I have changed the pins that I am using, and even changing the ATMEGA 2560. Does anybody know what is causing this? My code is simply an analogRead line.
The pots are wired such that the left pin when looking at it top down, is connected to GND, the middle pin is connected to the Analog pin on the Arduino, and the Right pin is connected to VCC. I would show my sketch but given the shear size of it is not necessarily practical to share it.
I have added additional code and wiring. This system I am building is going to be massive. Roughly 50 digital inputs, about 10 pots, a few serial outputs to WS2812 strips, a few strips of 5050 LEDs etc. So I am not just building all my wiring and code from the getgo. I am building it out in stages. Once I have the functionality of these pots working reliably I will build out the next stage. Both the code and hardware.