AVR microcontroller based PWM fan controllers

21,823

Circuit Image

This document serves as a continuation of the previous work on PWM controllers utilizing 555 timers. The new design incorporates microcontrollers and MOSFETs in place of the 555 integrated circuits and transistors. Two versions have been developed: one equipped with switches for adjusting speed and another featuring a potentiometer similar to earlier models. The controllers operate using ATtiny25 microcontrollers.

The circuit design leverages the capabilities of the ATtiny25 microcontroller, which is a compact and efficient 8-bit microcontroller from the AVR family. This microcontroller is programmed to generate Pulse Width Modulation (PWM) signals, which are essential for controlling the speed of motors or adjusting brightness in LED applications. The integration of MOSFETs allows for efficient switching and control of higher power loads compared to traditional transistors.

In the version with switches, the circuit includes two momentary push-button switches connected to digital input pins on the ATtiny25. One switch is designated for increasing the PWM duty cycle, thereby speeding up the connected load, while the other switch decreases the duty cycle, slowing down the load. The microcontroller reads the state of the switches and adjusts the PWM output accordingly.

The alternative version with a potentiometer employs an analog input pin on the ATtiny25. The potentiometer's wiper is connected to this pin, allowing the microcontroller to read the varying voltage levels as the potentiometer is adjusted. This voltage is then translated into a corresponding PWM duty cycle, providing a smooth and continuous adjustment of speed or brightness.

In both designs, the MOSFETs are used as high-side or low-side switches, depending on the application requirements. The PWM signal from the ATtiny25 drives the gate of the MOSFET, enabling it to control the power delivered to the load effectively. This configuration results in minimal heat generation compared to linear control methods, enhancing the overall efficiency of the system.

Power supply considerations for the microcontroller and MOSFETs are critical, ensuring that the voltage levels are compatible and stable. Bypass capacitors may be included near the power pins of the microcontroller to filter out any noise that could affect performance. Additionally, proper heat sinking may be necessary for the MOSFETs when operating at higher currents to prevent thermal failure.

Overall, this PWM controller design using microcontrollers and MOSFETs represents a modern and efficient approach to controlling various electronic loads, with the flexibility of user input through switches or a potentiometer.So this is a bit of a continuation on my 555 timer based PWM controllers, but now using microcontrollers and MOSFETs instead of 555 ICs and transistors. I made 2 versions, one with switches for speeding up and down and the other with a potentiometer like the previous controllers.

I used ATtiny25 controllers running at. 🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713