I did some tests to see what max PWM frequency you can archive without overclocking the Uno and running it with the stock 16Mhz crystal. The default Arduino PWM frequency is 500Hz. If you need a higher frequency you have to manually bit-bang one of the output pins. This example shows how to do a 30% duty cycle. […]
↧