Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
785 views

Using multiple ADC-s with DMA simultaneously – STM32

Is there a way to use DMA with multiple ADCs at the same time? I know you can scan multiple channels on one ADC, but I currently use 5 different ADCs on my STM32G4. I use the HAL library function <...
Taavi's user avatar
  • 11
2 votes
1 answer
2k views

STM32 HAL_ADC_Start() ends with HAL_ERROR

I'm new to microcontroller programming and I have a problem I can't solve. I am using STM32 Nucleo board L4R5ZI and I try to read the analog value on one of the pins, and then use the ADC to convert ...
Artii's user avatar
  • 29
2 votes
2 answers
2k views

STM32F407 - ADC in Scan mode setting overrun bit

I want to read 4 ADC channels in continuous scan mode. I am using ADC interrupt to read from the ADC data register. Here is my initialization: ...
shubham sharma's user avatar
0 votes
2 answers
3k views

STM32L476 Discovery ADC output is not changing even though the input voltage is

The output value of the ADC seems to flicker between 539-549 (in a range of 0-4095) no matter what voltage is on the input pin. The voltage on the input is usually between 0V - 4V. This might be a ...
Alexander's user avatar
1 vote
0 answers
544 views

STM32F4 ADC oscillating

I am trying to read the ADC of a STM32F4. The code skeleton was generated by CubeMX, the HAL library is used. The read values are feasible but have periodic noise, as seen here: The plot was ...
M. Steiner's user avatar
4 votes
3 answers
37k views

How to read from multiple channels of the ADC on an STM32F407?

I am working on a project wherein, I need to read the Analog outputs from 4 sources and convert them to a digital value using a single ADC module on the STM32F407 microcontroller. I want to sample the ...
Shubham Rastogi's user avatar
14 votes
5 answers
88k views

STM32 ADC conversion using HAL

I am trying to learn how to use "new" HAL library from stm32. When I try to do simple ADC conversion it works just one time, but then it stops converting. I suppose End of conversion flag does not get ...
ScienceSamovar's user avatar