2018-04-24 03:43 AM
Hello,
I have a Nucleo STM32L476RG board. I am using it to read time varying ADC values from 3 channels of ADC1 (PC_0,PC_1,PC_2) and print them as a single comma separated string. Eg. 100,134,130.
Here are a few details:
(STM32_ValuesIssues.png)
The issue is that while printing the ADC values on UART, the data gets disorganized/shabby.
2. The noise reduces at higher voltages.
The ADC uses interrupts to add data into the UART. => Specifications given below. (Query_Docs.docx)
I have attached the ADC,UART and System clock settings along with the HAL_ADC_ConvCplt() function.
Arduino UNO on the other hand provides very smooth waveforms of the same time varying signals
PS. I have tried introducing delays as well as tried to store the ADC Values first and then send the data seperately.
#stm32l476 #stm32-adc #stm32-uart