Analog read 12 bits

Post Reply
carloca
Posts: 6
Joined: Tue Mar 17, 2020 8:38 pm
Answers: 1

Analog read 12 bits

Post by carloca »

Hi,
it looks like the analogRead function reads only a 10bits value (0-1023)
is there any way to read an analog value with the 12-bits resolution offered by this chip??
thanks
carlo
by carloca » Mon Apr 13, 2020 12:27 pm
analogReadResolution(12); solved the problem

sorry for the silly question
Go to full post
carloca
Posts: 6
Joined: Tue Mar 17, 2020 8:38 pm
Answers: 1

[self SOLVED]

Post by carloca »

analogReadResolution(12); solved the problem

sorry for the silly question
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: Analog read 12 bits

Post by mrburnette »

Remember. Going from 10-bits to 12-bits increasingly make the low-order bits more sensitive to noise on analog inputs and analog reference. You may need to implement better electronic hardware designs.

Ray
carloca
Posts: 6
Joined: Tue Mar 17, 2020 8:38 pm
Answers: 1

Re: Analog read 12 bits

Post by carloca »

yes, i'm just facing this challenge..
Thanks
mrburnette wrote: Tue Apr 14, 2020 1:53 am Remember. Going from 10-bits to 12-bits increasingly make the low-order bits more sensitive to noise on analog inputs and analog reference. You may need to implement better electronic hardware designs.

Ray
Post Reply

Return to “STM32F1 based boards”