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 van de auteur
Arduino47 1 jaar geleden
Il me restait un boîtier de test d'impression 3D d'afficheurs RGB LedsVoir fichier 3D : https://www.elektormagazine.fr/labs/make-your-boxes-for-displays-with-a-3d-printer J'ai utilisé ce boîtier et une carte format carte de visite en plastique pour emballer un variateur
Arduino47 2 jaar geleden
Negative temperature reading, not used in this code.
To be adjusted according to your needs.
Choix d'option TTP221 par définition.
Lecture température négative, non utilisée dans ce code.
A ajuster suivant vos besoins.
Arduino47 2 jaar geleden
Arduino47 2 jaar geleden
The objective is to have a tactile on/off of the module via the activation of the PWM output of the module.
Via the new code, we write the pin to the value of pwm (it's ON) or to zero (it's OFF) depending on the request for a capacitive key.
To modify, remove the DS info led resistor, referenced R3 470R (implying: no visual information by DS fault led).
Shield TTP223 configuration
Strap A closed
Strap B open
The TTP223 touch is connected to +5V and, GND of the module.
The I/O - TTP223 output on input 3 of the ATtiny 85.
Upload the new code to the ATtiny :: TINY_WDT_FAN_DS_POT_TTP223_ELEKTOR
The code uses the watchdog as a temperature reading or key reset delay.
//FR
J'ai ajouté une touche capacitive TTP223 sur le projet.
L'objectif est d'avoir un marche arret tactile du module via l'activation de la sortie PWM du module.
Via le nouveau code, on écrit la pin à valeur de pwm (c'est ON) ou à zéro (c'est OFF) suivant demande de touche capacitive.
Pour modifier, déposer la résistance de led info DS, référencée R3 470R (impliquant : pas d'information visuel par led de défaut DS).
Configuration Shield TTP223
Strap A closed
Strap B open
La touch TTP223 est raccordé à +5V et, GND du module.
La sortie I/O - TTP223 sur l'entrée 3 de l'ATtiny 85.
Téléverser le nouveau code dans l'ATtiny :: TINY_WDT_FAN_DS_POT_TTP223_ELEKTOR
Le code utilise le chien de garde comme temporisation de relève de température ou de reset touche.
A la mise en service, le système est PWM OFF.
Suite à un contact sur la touche sensible, le module active la sortie PWM avec une petite rampe de mise en route (décolle le ventilateur/Fan si la vitesse est faible)
Mode variateur seul ou variateur suivant température, la vitesse zéro (arret) n'est pas retenu afin de savoir si le ventillo/Fan est On ou OFF
On fixe une vitesse mini suivant le type de ventilateur/Fan utilisé.