So, I guess I did a dumb - my custom PCB has some potentiometers (from joysticks) running between GND and AREF, and other parts (motorized faders) running between 0 and 3.3V.
This seems to be a problem, as the faders will hit a certain point (right at 2.65v) where they 'max out' the ADC and just output 4095 (running at 12 bits). Joysticks work great, but are going between 0 and 2.65v.
As a possibly temporary solution, I yanked the 470 ohm resistor in the AREF section on the schematic, and replaced it with a solder bridge - and told analogReference to be EXTERNAL. This seems to have the effect of making my reference voltage 3.3v, the joysticks float between 0 and 3.3v, as do the faders.
So, my question is two fold:
1) Is this EVEN MORE STUPID than the initial error? Am I going to break a bunch of stuff by feeding 3.3v to the VREFH pin?
2) Is there some way to 'fix' this problem I've made in software? Ideally, something that I could do just before reading the faders, then turning off just before reading the joysticks.
Thanks!
This seems to be a problem, as the faders will hit a certain point (right at 2.65v) where they 'max out' the ADC and just output 4095 (running at 12 bits). Joysticks work great, but are going between 0 and 2.65v.
As a possibly temporary solution, I yanked the 470 ohm resistor in the AREF section on the schematic, and replaced it with a solder bridge - and told analogReference to be EXTERNAL. This seems to have the effect of making my reference voltage 3.3v, the joysticks float between 0 and 3.3v, as do the faders.
So, my question is two fold:
1) Is this EVEN MORE STUPID than the initial error? Am I going to break a bunch of stuff by feeding 3.3v to the VREFH pin?
2) Is there some way to 'fix' this problem I've made in software? Ideally, something that I could do just before reading the faders, then turning off just before reading the joysticks.
Thanks!