Ain specs from datasheetWhat happens if the wiper voltage exceeds the FVR voltage?
![]()
at best the top range of the pot would be useless
Warning I'm not a teacher
I thought I'd step back and check VDD and VSS using my SDS1104 scope.
This is at 50mV:
Is it realistic to expect no drift on ADC with this much noise on my lines?
![]()
Last edited by Demon; - 2nd November 2024 at 20:15.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
CONFIRMED: Noisy power definitely messes up everything when the PIC tries to compare the "wiper" reading with VDD/VSS, even using two 1K resistors to simulate 50% pot.
I switched to a 7805 supply and put back my "supposedly dirty" potentiometer. ADC low/high was back to a steady reading no matter where I turned the pot.
I had code prepared using the techniques discussed in Melanie's ADC thread (or was it SORT, I don't remember). I got lost looking at the computational feature of the ADC in the 16F18877; that could have replaced my averaging routine and most likely reduced time.
At worse if I get a dirty pot, I can drop the 1-2 lower bits from the 10-bit reading and still get 512-256 resolution out of a maximum 1024.
Last edited by Demon; - 3rd November 2024 at 03:35.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I did an extra test to confirm it wasn't another component on my main test board that was "messing up" the power.
I powered my isolated PIC with that DC-DC converter and sure enough ADC was jumping between 546 and 569 using my pot.
So now i have to find a 7805 variant that can supply 700mA without breaking a sweat.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Drift is tottaly different than jumping numbers...
When you said drift I assumed that you started with say 512 as a 50% of FSD and then it went up or down after some time, like 511, 510, 509 etc.
Having random numbers sure can be due to crappy and noisy Voltage on Vdd.
Ioannis
Last edited by Ioannis; - 4th November 2024 at 15:21.
Bookmarks