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: 1898
Joined: Thu Dec 19, 2019 5:30 am
Answers: 30

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.
fpiSTM
Posts: 1944
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 108
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
HollisPollich
Posts: 1
Joined: Wed Jul 10, 2024 4:51 am

Re: Multichannel (scan) continuous conversion mode ARDUINO IDE

Post by HollisPollich »

Let's use Arduino IDE to continuously read 6 analog inputs from the STM32F103C8T6 board and update the value of the 6 corresponding variables to the ADC. You should look up on Google how to do it fastest
Post Reply

Return to “Projects”