I use a regular diode (1N4007) as a flyback diode for a 250ma 5v fan. My transistor is a 2N 3904 and the PWM generator is an attiny85:
I use this one because originally I was switching the PWM signal at low frequency (<1000hz).
I was able to ear a high pitch noise because the PWM signal was in the audible range. I decided to raise the PWM signal to 30khz. It seems to be working fine, I don't have a good scope to see the signal and most importantly, I can't hear the high pitch switching sound anymore.
But after watching the video from afrotechmods (https://www.youtube.com/watch?v=LXGtE3X2k7Y) he says that we need a Schottky diode when we are switching at >1khz.
Should I de-solder my diode and replace it with a 1N 5817?
Thank you

30khzsignal is33usappart. So the1N400xwould take the entire time to recover which is indeed not very good. What would be a good recovery time? Just for my curiosity? Is there a rule of thumb? Like no more than 1/10th of the cycle? – Mike Gleason jr Couturier Feb 07 '18 at 17:20