Variateur for 12V ventilator or Fan
The basis of this assembly is taken from the article “Wind of freshness with ATtiny” Elektor N°456, page 37. Refer to this article for additional information. Code to drive a fan or a 12V fan in PWM We will detect the presence or not of a DS18B20 which will have the effect of initializing the type of operation (a or b) If a DS18B20 is connected to the card, the info LED lights up for about 4s, it is mode b. No DS detected, we are in mode a, drive alone.
a: if potentiometer alone, the object is a simple potentiometer drive. 0->100%
b: if DS18B20, the fan or ventilator start threshold is set by temperature set point via the potentiometer.
The maximum output current is 2A (due to the choke), provide a heatsink on the transistor if necessary.
I tried to make the first prototype work with a mosfet.Crashes of measurement readings returned by the DS caused bugs in the behavior of the assembly.
Which, on my side, confirms the reading of the very good following article: https://www.elektormagazine.com/articles/why-do-mosfets-need-drivers/
The assembly consumes about 30mA in its complete version (measurement between 23.6mA -> 29mA)
Updates vom Autor