Multichannel (scan) continuous conversion mode ARDUINO IDE

What are you developing?
Post Reply
tjpascon
Posts: 2
Joined: Fri Sep 15, 2023 10:36 am

Multichannel (scan) continuous conversion mode ARDUINO IDE

Post by tjpascon »

Good morning! :)
In my project I need to read 6 different analog inputs continuously and update the respective values ​​of 6 variables associated with the ADCs. Could you help me carry out this task using the Arduino IDE and the STM32F103C8T6 board?
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Post by ag123 »

you can use the plain old

Code: Select all

analogRead(pin);
reading all the different pins.
anything more complicated requires direct ADC calls, libraries e.g. HAL etc.
tjpascon
Posts: 2
Joined: Fri Sep 15, 2023 10:36 am

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Post by tjpascon »

Thanks!

I tested this method (analogRead()) and it worked, the problem is that it seems to be a little slow for my application. I need you to read more quickly and continuously. I will research more about the terms you suggested to me.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Post by fpiSTM »

Have a look to those topics:
viewtopic.php?t=1947
viewtopic.php?t=110
Post Reply

Return to “Projects”