Not all fans can be controlled by PWM.
Try your fan directly with 5V power supply, and see if it runs.
Most likely, it won't run at 5V.
Increase the voltage and see at what voltage it will start...
Type: Posts; User: sayzer; Keyword(s):
Not all fans can be controlled by PWM.
Try your fan directly with 5V power supply, and see if it runs.
Most likely, it won't run at 5V.
Increase the voltage and see at what voltage it will start...
What FET?
MosFet?
Need to see the circuit anyway.
Since you have an onboard PWM module running in the background, you can also have a second pwm by software running in the foreground.
The code would be as follows.
You are now using two buttons,...
Try this code.
LED is on GPIO.2
Button must be pulled down to GND by a resisitor (10K).
And must be pulled high by the button (to Vdd).
@ DEVICE PIC12F683, FCMEN_OFF, IESO_OFF,...