Skip to main content
HDIA.1
Associate III
December 18, 2021
Solved

ADC Result false

  • December 18, 2021
  • 4 replies
  • 1100 views

Hello

I need to receive the value of multiple ​Channel of ADC 1

I followed this tuto : https://controllerstech.com/stm32-adc-multi-channel-without-dma/

But when my pin 1 is connected to GND i have 1500 of numeric value

Already tested in Arduino and the adc work perfectly ​

It is a nucleo l432kc ​without modification

Do you have an Idea

Thanks​

This topic has been closed for replies.
Best answer by HDIA.1

Finally y found the solution . The problem was that between two ADC_PollForConversion i was stopping the ADC and that doest work

4 replies

raptorhal2
Lead
December 19, 2021

It is difficult to determine your problem without seeing the code as implemented. Perhaps you are inadvertently converting the temperature channel.

Did you debug step through the code to ensure it is working as expected?

Cheers, Hal

HDIA.1
HDIA.1Author
Associate III
December 19, 2021

0693W00000Hp96NQAR.pngHere is the code , and no i'm not reading temperature channel

Thanks for the response

LCE
Principal II
December 20, 2021

Have you set the ADC input GPIO pins to the correct alternate function?

HDIA.1
HDIA.1AuthorBest answer
Associate III
December 20, 2021

Finally y found the solution . The problem was that between two ADC_PollForConversion i was stopping the ADC and that doest work