I have a homebrew power supply I made for a fan, that has a toroidal transformer with 48V and 6V outputs. I've been wanting to add PWM to the supply so I can adjust the speed of the fan, but haven't found a simple schematic that works reliably. When I got my Digispark and realized I suddenly had an economical, programmable PWM controller in my hand, I realized it might work for this -- but the problem is the unregulated power line is for 5V, and the 7805 regulator on VIN needs at least 7V due to the voltage drop of the regulator.
My question then, is thus: Can the Digispark tolerate that extra volt on the unregulated input, or can it tolerate a lesser voltage resulting from running the 6V output through the regulated input?
If neither of those are particularly acceptable, would the unregulated input at least be tolerant enough that I could put a 1N400x diode in series with it? Since said diodes have a ~1V drop, that should result in the Digispark getting between 4.5-5.5V worst case scenario.