Page 1 of 1

Use more than 10 adc pins F401 BlackPill?

Posted: Fri Jan 27, 2023 5:43 pm
by Mikey
Hi to all,

first of I'm new to STM32. Up to now I have only been working in the classic Arduino realm. The need for more ADC and Hardware PWM pins made me switch to a black pill board.

Is there any way to use more than the standard 10 adc pins (PA0-PB1) on the F401 BlackPill board?

In the documentation it speaks of 16 channels. I would need a total of 12 adc lines for my project.
Any way of defining GPIOs as additional adc pins?

Thx a lot in advance!

Regards,
Mike

Re: Use more than 10 adc pins F401 BlackPill?

Posted: Fri Jan 27, 2023 6:42 pm
by GonzoG
The datasheet say "up to 16 channels", not that every F401 has 16 channels.
F401Cx have only 10 ADC channels. If you need more you either use multiplexer or bigger MCU (F401Rx of F401Vx).

Re: Use more than 10 adc pins F401 BlackPill?

Posted: Sat Jan 28, 2023 1:46 pm
by Mikey
Bummer :cry:
Thanks for the clarification!
The "up to 16 channels" really had me confused...

Re: Use more than 10 adc pins F401 BlackPill?

Posted: Sat Jan 28, 2023 3:07 pm
by dannyf
maybe an analog switch?