I grabbed a fan.
Arduino 12v fan speed control.
But it was way to loud.
So i got an arduino wrote some code and now i can control my fan.
12v motor control with 5v arduino and npn transistor as speed control switch.
Control of the speed of a fan for pc 2 wire by the use of a pwm arduino going to use a transistor due to a voltage of 12 volts able to operate from a common pc fan thanks to the vision.
Just search 4 wire fan arduino and there s quite a few posts on it including sample code to set the prescaler frequency so the output pwm is at 25khz.
Figure out the pins of the fan connector.
You need a fan with a plus red pin a minus black pin and a speed pin.
Some fans with three pins have plus minus but then a speedometer pin.
Parts list and toolsdetermining the positive termina.
If you need to control a dc motor that exceeds the max output of your microcontroller then follow this instructable and if you ve any questions along the way i d be happy to help what is covered.
It is easy to turn on or off any home appliance by using a switch or by using some control mechanism as we did in many arduino based home automation projects but there are a lot of applications where we need to control the ac power partially for example to control the speed of the fan or the intensity of a lamp.
The pwm control frequency needs to be 25khz.
Fans don t use stock pwm frequencies.
A 16mhz arduino can do this relatively easily through software.
Temperature based fan speed control using arduino and lm35 sensor.
So coming from the arduino no extra driver circuit is needed.
12v dc fan 12v buzzer 100r resistor 4 7k resistor 1k resistor 10k resistor 10uf capacitor male to male jumper wires battery 9v battery clip schematics.