Potentiometer on A6 of rp2040

I'm looking to migrate a device I made (remote control) for a pro mini to the rp2040. Most of the conversion to 3v is straightforward but I'm stuck on what to do with the potentiometer.

The issue is that the while I'm feeding the potentiometer 3.3v now, it has to connect to analog port 6 or 7, which takes up to 2.7v. A0-A3 take 3.3v volts but they're used for other things, so not an option.

So I'm a bit stumped as to what to do with the potentiometer (currently 10k) that takes in 3.3v but connects to a 2.7 v port. As expected, in my tests the value from analogRead(A6) hits 1024 about halfway through the turn with a 10k pot fed with 3.3k. Just not sure what to do about it.

Any recommendations appreciated.

BTW, I've calculated that if I create a voltage divider with R1=240 and R2=1000 then it'll give me 2.66v. I'll definitely experiment with that, just curious if there is another solution I'm not thinking of.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.