Use more than 10 adc pins F401 BlackPill?

Post here first, or if you can't find a relevant section!
Post Reply
Mikey
Posts: 3
Joined: Fri Jan 27, 2023 5:28 pm

Use more than 10 adc pins F401 BlackPill?

Post 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
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: Use more than 10 adc pins F401 BlackPill?

Post 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).
Mikey
Posts: 3
Joined: Fri Jan 27, 2023 5:28 pm

Re: Use more than 10 adc pins F401 BlackPill?

Post by Mikey »

Bummer :cry:
Thanks for the clarification!
The "up to 16 channels" really had me confused...
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Use more than 10 adc pins F401 BlackPill?

Post by dannyf »

maybe an analog switch?
Post Reply

Return to “General discussion”