2024-03-11 01:44 AM
Hello all,
for my DIY Radio Controller (LoRa and STM32F1C8) i am using two joysticks and one poti.
I am reading ADC with the DMA but what i noticed is that the ADC values are not so accurate.
I know with not (professional, expensive) Potis and joysticks this accurate is almost impossible.
With 12 bit resolution the ADC value is (0 - 4095) but the problem is that sometimes the tolerance gets more then 20 or 30 and this value is not ignorable for RC.
P.s. the wires from Joysticks and poti are about 10cm long.
My question :
Is there any idea or way to get more accurate readings from ADC? some filtering or anything else.
Would be using switching regulator as Vcc problematic?
Please if you have some tipps or ideas it will be appreciated.
Thank you in advance.
2024-03-11 01:53 AM
Hi,
to get a good value from a pot : just solder cer.cap (100nF) with short wire from adc-input to gnd, on every pot->adc input.
+
smps on Vcc is never good idea for supply analog VDD or Vref ; try add/more L-C filter , if needed.
2024-03-11 06:09 AM
Thanks for your reply.
I will try the cer.cap (100nF).
Du you suggest any value for the L-C Filter?