Electronics > Microcontrollers

Fan controller with PWM using STM32 chip

(1/11) > >>

psysc0rpi0n:
Hello.

I have already a circuit to make a fan controller, controlled by temperature. What I have is a thermistor sensing the temperature of a device and then, the stm32l031k6t6 I have, will read the temperature and will produce a PWM that will control the fan speed according to a few temperature values.

The supply I have is 12V, so I used an AMS1117 to step-down the voltage to 3.3V to feed the microcontroller, then I use a mosfet to drive the microcontroller output voltage back to 12V to feed the fan.

The circuit I have is the following:


I'm looking for improvement suggestions. These are the components I have, so please, try to stick to the components I have there. I'm looking to improve anything like resistor values, diodes, capacitors, etc.
I might have to change the pins that I used to connect the thermistor and the mosfet, but I'll change it to the correct pins later if I can't use the ones I'm using now!

Thank you for any help/suggestion

gamalot:
The NRST pin should be connected to a 100nF capacitor instead of a 10K pull-down resistor.

psysc0rpi0n:

--- Quote from: gamalot on May 06, 2021, 07:53:12 pm ---The NRST pin should be connected to a 100nF capacitor instead of a 10K pull-down resistor.

--- End quote ---

Allow me to ask why. Can I see that in the datasheet? I would like to read about the reasoning.

gamalot:

--- Quote from: psysc0rpi0n on May 06, 2021, 07:59:45 pm ---
--- Quote from: gamalot on May 06, 2021, 07:53:12 pm ---The NRST pin should be connected to a 100nF capacitor instead of a 10K pull-down resistor.

--- End quote ---

Allow me to ask why. Can I see that in the datasheet? I would like to read about the reasoning.

--- End quote ---

Please read page 85 of the data sheet (DS10668).

psysc0rpi0n:

--- Quote from: gamalot on May 06, 2021, 08:10:32 pm ---
--- Quote from: psysc0rpi0n on May 06, 2021, 07:59:45 pm ---
--- Quote from: gamalot on May 06, 2021, 07:53:12 pm ---The NRST pin should be connected to a 100nF capacitor instead of a 10K pull-down resistor.

--- End quote ---

Allow me to ask why. Can I see that in the datasheet? I would like to read about the reasoning.

--- End quote ---

Please read page 85 of the data sheet (DS10668).

--- End quote ---

I see. I started looking the datasheet as soon as I read your reply and found it too in that same page.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version