Changing the PWM frequency of an Arduino Nano

Hello, I am using the Arduino Nano fo controlling some LEDs through an NPN transistor. My question is how can I get above 20kHz so the PWM cant be heard. Also, I read that it will decrease the resolution of it ( those are the steps from 0-255 right?)well I need only 99 steps. Also, my transistors are connected to pins 9 and 10 of the Arduino nano. Last question I heard that there is also some sort of library that can do this?

Thanks in advance.If you need any more info just tell me. And also have a nice day :slight_smile:
Erik.

You can use any tutorial or library for the Uno, it's the same controller. Eventually the TimerOne library will do the trick.

The steps depend on the TOP setting, which in turn depends on the prescaler factor.

After all I don't understand how you hear LED light? Sight is restricted to 20Hz, so that any of the standard PWM frequencies is sufficient.