cancel
Showing results for 
Search instead for 
Did you mean: 

Accurate ADC reading with Bluepill

hamo
Senior

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.

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We suggest to purchase a genuine products and purchase them from known and trusted distributors.

Thank you for your understanding.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
AScha.3
Chief III

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.

If you feel a post has answered your question, please click "Accept as Solution".
hamo
Senior

Thanks for your reply.

I will try the cer.cap (100nF).

Du you suggest any value for the L-C Filter?

mƎALLEm
ST Employee

Hello,

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We suggest to purchase a genuine products and purchase them from known and trusted distributors.

Thank you for your understanding.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.