WeActStudio / WeActStudio.MiniSTM32F4x1

MiniF4-STM32F401CEU6/STM32F411CEU6 Product Literature
685 stars 152 forks source link

How is "blackpill" ADC analog voltage supplied? #15

Open derek-eder opened 4 years ago

derek-eder commented 4 years ago

I am interested in the ADC analog voltage supplies - specifically VDDA and Vref+

Is it possible to isolate these and supply the analog voltage from an external supply? One developer, Martin Loren*, says he "removes a component" (capacitor ?) on the blackpill board and wires a "shunt" to supply an external Vref+ from board pin PA2 but I can't find any blackpill board schematics or PCB layout to get more details.

STM provided a seperate analog supply to the ADC for a very good reason and I would like to be able to use them in the Blackpill or some future iteration.

Many thanks!

Derek Eder

IMG_20200929_180800

IMG_20200929_183735

WeActStudio commented 4 years ago

STM32F411CEU6 Only VDDA, no VREF. You can use one ADC specifically to read the voltage from the external reference source, and then another ADC to sample what you need, and compare the two. 957d35554d86d31c78c1df27f9bd730