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, 2 months ago.
I can not get my ADC to work. What am I doing wrong?
Hi guys,
I'm new to mbed and a beginner in microcontroller programming things.
I have a Nucleo Board STM32L053R8 and just trying a quite simple “read an analog value and output” pc.printf via HTerm on Pc without conversions or similar ..
Hterm just prints 0.0 or 0 values, although definitely 1.66V going in the A0 Port (I did a voltage divider with two 10k resistors and the 3V3 supply).
If I just use the example for the Nucleoboard which will just let the Led blink if the ADC Value is above 1V, I also get no blink. (so it's also not working)
Attached is a picture of the build, a screenshot of HTerm and the code.
What am I doing wrong or is this a bug with some of the library of Nucleoboard?
Hope someone can help me with this. Thanks anyway.
1 Answer
10 years, 2 months ago.
check this, it might be related http://mbed.org/questions/4420/Problem-with-Nucleo-L152RE-AnalogIn/