Read ADC from 2 joystick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-07 1:20 AM
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!
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-07 3:12 AM - edited ‎2024-08-07 3:14 AM
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:
Thanks
Omar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-07 3:12 AM - edited ‎2024-08-07 3:14 AM
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:
Thanks
Omar
