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.
6 years, 9 months ago.
ADC problem nucleo l432kc
Hi, I've a problem with ADC on nucleo l432kc. I connect A0 analogin to 3.3v pin on the board and I read value. Value measured with a multimeter is 3.327v. Returned value is 0.9871. I was expecting 1 as a user manual. Where is the problem? Can anyone help me?
Many Thanks code:
- include "mbed.h"
AnalogIn in0(A0);
DigitalOut led(LED1); float in_value=0; int main() {
while(1) {
wait(0.1);
in_value = in0.read();
printf("in0:%.4f ", in_value);
led = !led;
wait(1);
}
}