Use of ADC
good morning everyone,
i am trying to use the ADC of the stm32h745 disco. for that i connected my ADC to a breadboard with a potentiometer. I wanted to change the value of the potentiometer so i can see on my computer the values. I got inspired by this video: https://www.youtube.com/watch?v=EsZLgqhqfO0. unfortunately, it did not give the values that i want. as you can see, the values where moving between 2000 and 3000 and did not change when i changed the resistance of the potentiometer, even when i disconected directly the wires from the breadboard:

here is my code :
HAL_ADC_Start(&hadc3);
HAL_ADC_PollForConversion(&hadc3,1000);
raw= HAL_ADC_GetValue(&hadc3);
// convert to string out of raw value
sprintf(msg,"%hu\r\n",raw);
HAL_UART_Transmit(&huart1, (uint8_t*)msg, strlen(msg), 1000);
HAL_Delay(1);I think it might be a problem of my ADC allocation: in fact, i connected it to ADC 3 at pinPF10 because it was one of the only one I could find in the manual. How do we get the other channels?



in the picture, my potentiometer had a max of 5kohm and not 50kohm
Best regards
