Doubt regarding potentiometer ADC Values on STM32 NUCLEO - L476RG.
Hello,
I have configured my circuit to have a potentiometer and have set up an ADC with continuous conversion mode but I am unable to get a varied output. It just gets stuck on one value even thought I change the value of the potentiometer. Please help
I have attached my code below.
MX_ADC1_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
HAL_ADC_PollForConversion(&hadc1,1000);
readValue = HAL_ADC_GetValue(&hadc1);
/* USER CODE BEGIN 3 */
}
Thanks!