I've connected a pot to p20 but the values coming back seem completely random, constantly jittering. As I turn the pot up the values do increase but they're always with other randomness. Also they value is nowhere near the range 0.0 to 1.0. I've read some posts about problems with Analog in but wasn't sure if things had been fixed since then.
I've tried the pot on an Arduino and it works perfectly with the range going from 0 - 1023.
Any ideas?
I've connected a pot to p20 but the values coming back seem completely random, constantly jittering. As I turn the pot up the values do increase but they're always with other randomness. Also they value is nowhere near the range 0.0 to 1.0. I've read some posts about problems with Analog in but wasn't sure if things had been fixed since then.
I've tried the pot on an Arduino and it works perfectly with the range going from 0 - 1023.
Any ideas?
Hi Brendan,
There were a few issues. This was mostly solved in the software library by taking three samples and returning the median.
Since then, I did and investigation and found how to get the best ADC performance, which can be read all about here :
* http://mbed.org/users/chris/notebook/Getting-best-ADC-performance/
Cheers,
Chris
Thanks Chris, though I realised I hadn't wired up the pot to 3.3v! Works really well now.
Thanks Chris, though I realised I hadn't wired up the pot to 3.3v! Works really well now.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
I've connected a pot to p20 but the values coming back seem completely random, constantly jittering. As I turn the pot up the values do increase but they're always with other randomness. Also they value is nowhere near the range 0.0 to 1.0. I've read some posts about problems with Analog in but wasn't sure if things had been fixed since then.
I've tried the pot on an Arduino and it works perfectly with the range going from 0 - 1023.
Any ideas?