Page 1 of 1

Multichannel (scan) continuous conversion mode ARDUINO IDE

Posted: Fri Sep 15, 2023 10:43 am
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?

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Posted: Fri Sep 15, 2023 11:11 am
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.

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Posted: Fri Sep 15, 2023 6:38 pm
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.

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Posted: Fri Sep 15, 2023 7:09 pm
by fpiSTM
Have a look to those topics:
viewtopic.php?t=1947
viewtopic.php?t=110