Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
I have trouble with the analog input
I have trouble to read the adc...
I have a pot between GND and Vout on a LPC1768 board. The middle pin of the pot is to p17 on LPC1768.
I have tried to use:
AnalogIn pot(p17);
printf("%d", pot.read_u16() >> 4); printf("%f", (float)pot);
its work fine, but the voltage must be over 60-70mV before the LPC1768 is respond with a value over 0.
Like there is a offset.... before the ADC is start.
Can somebody tell me, what i do wrong?
I measure the voltage from the pot with at multimeter.