ADC Accuracy
Dear ST Community,
I am currently working with the STM32L433RC board, specifically utilizing its 12-bit ADC. Despite my efforts in writing a simple program, I have encountered accuracy issues with errors exceeding 4.5%, and in some instances, even surpassing 30%.
Code :-
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY);
adc_value = HAL_ADC_GetValue(&hadc1);
float vin = adc_value * (3.3/4095);
sprintf(msg2,"vol = %.3f \r\n",vin);
HAL_UART_Transmit(&huart2, (uint8_t *)msg2, strlen(msg2), HAL_MAX_DELAY);
HAL_Delay(1000);
I am also attaching excel sheet to see the difference between Vin and Vout.
