View Single Post
Unread 09/30/2017, 01:30 PM   #2538
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by ronnyking View Post
So the pwm output must be 25khz? Does your sketch take care of that?
yes, it is in source file PWMFan.ino

I actually used 20khz since the values are convenient and setting the duty cycle between 0 and 100 is just a direct register assignment, no additional calculations.

16mhz/8 (clock divider) /100 (counter top) = 20khz


d0ughb0y is offline   Reply With Quote