TENS modification

Just google:- arduino pwm frequency change

did it before asking, all i can find is how to change the frequencies to specific values like 30, 61, 122 Hz. I need the frequencies in between, in order to fine tune the stimulator so as to get the adequate muscle response. In other words i need to change the values in real time.

sorry about the schematic, is this version better?