cancel
Showing results for 
Search instead for 
Did you mean: 

How to read values from external ADC of steval-stwinkt1b

SDeor.1
Associate II
 
8 REPLIES 8

Have you checked the documentation:

https://www.st.com/en/evaluation-tools/steval-stwinkt1b.html

What have you tried so far? Where are you stuck?

SDeor.1
Associate II

I have done the pin configuration for external ADC and selected PA10 for GPIO output and written a code for it but not able to get a good value of ADC and also don't know where to check the output ADC value.

Also I have connected the external ADC through a potentiometer so that it gives the maximum output.

What ADC are you using?

Post a schematic of your connections.

SDeor.1
Associate II

0693W00000NqXJ2QAN.jpgits a external ADC which is within the board.

Which one?

This:

0693W00000NqY4cQAF.png 

SDeor.1
Associate II

yes that's it , so what's the procedure to get the value from that ADC? And its pin is PA5

I don't think that's an external ADC?

I think the ADC is internal, and the amplifier & microphone are external? And you'd need to disconnect them...

What does it tell you about these things in the User Manual?

SDeor.1
Associate II

If you have gone through the schematic section in the manual, there you can see that it's an EX_ADC and apart from that there are already two internal ADCs inside the MCU so clearly it's an external ADC that I need to use. So tell me the procedure of how to get value from EX_ADC in stm32cube IDE and how to observe the value?