W
W
Wrongbee2019-03-12 21:26:59
Microcontrollers
Wrongbee, 2019-03-12 21:26:59

Which STM32 is suitable for multi-channel PWM?

There are 16 24 volt DC fans. Finished panel with 16 potentiometers. Smooth adjustment is required individually for each fan, always with the possibility of a complete stop. I would like to implement this task on STM32. So to speak, to delve into the development of these particular controllers. If possible, a few questions.
1. Which of the stm will allow hardware implementation of 16 independent PWM and 10 ADCs from potentiometers?
2. As an option - does it make sense to use the controller as an ADC for potentiometers, then with stm21 to control a specialized 16-channel PWM controller via SPI? As a rule, they are 20mA - put mosfets on the outputs.
3. Is it better to use common mosfets, or is it better to use logic level controlled mosfets? Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Gusev, 2019-03-23
@Wrongbee

STM32F205RET can advise. Available for purchase, many PWM timers.
Here are 10 ADC channels and 16 PWM outputs (4 PWM per timer). It is possible and more - there will be a margin for both ADC and PWM.
In general, you can install STM32CubeMX and see for yourself the various options.
The 200th series is very rich in timers.
You can even fit into a cheap STM32F103C8T6. 16 PWM channels from four timers and 8 ADC channels + multiplexer (transistor switches are enough for potentiometers in general) for the missing two channels, if high digitization speed is not required.
Each of the 4 channels of the timer will have one frequency, but the coefficient. filling can be set arbitrarily. However, I do not see a special need in the general case to PWM fans with different frequencies.
2. I don’t see much point in piling up when one MK can do all this.
3. If you do not plan to install intermediary microcircuits, then transistors with a log. levels is ideal, the only question will be the power and load currents. For 12V-24V fans, inexpensive AO3400 , IRLML0040 , IRLML0100 or similar + shunt diodes for inductive loads will suffice.
But in general, here it is necessary to dance from the power of the load.

N
n12eq3, 2019-03-12
@n12eq3

https://assets.nexperia.com/documents/data-sheet/7...
https://cdn-shop.adafruit.com/datasheets/PCA9685.pdf
https://www.st.com/resource/en /datasheet/uln2801a.pdf link
with any stm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question