Skip to main content
Graduate
August 7, 2024
Solved

Read ADC from 2 joystick

I want to read ADC values from 2 joystick. My aim is design a controller RC. I use stm32f103 and set up ADC1 with channel 0,1,2,3. I used interrupt but it read only one channel. 
Can you help me how to read 4 channel?

Thank you!

 
This topic has been closed for replies.
Saket_OmBest answer
ST Technical Moderator
August 7, 2024

Hello @ThienNguyen0301 ,

 

To read from multiple channels, you need to configure your ADC to perform multi-channel conversion.

Please refer to the following example for more details:

 

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om

1 reply

Saket_OmBest answer
ST Technical Moderator
August 7, 2024

Hello @ThienNguyen0301 ,

 

To read from multiple channels, you need to configure your ADC to perform multi-channel conversion.

Please refer to the following example for more details:

 

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om