Fan Control ArduinoPWM
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=dhrfN3mllgc
Controlling a fan using PWM and an Arduino. This is not a PWM fan, but just a standard two wire, 12V computer fan. • The resistors mentioned are 270 ohm for the PWM to transistor and 100 kOhm for the LED. • The code: • int TIP120pin = 9; // PWM signal out to transistor on pin 9 • void setup() • { • pinMode(TIP120pin, OUTPUT); • } • void loop() • { • analogWrite(TIP120pin, 255); // Run full speed (255) • delay(3000); // for 3 seconds • analogWrite(TIP120pin, 100); // Run at approximately 40% speed • delay(6000); // for 6 seconds • } • A writeup of this project can be found at: http://www.mythoughtspot.com/2017/06/...
#############################
