Reduce the PWM frequency to 100Hz in arduino nano 33 Ble sense

Hi,

I am working in a project to control an element using 100Hz PWM frequency. Since i am using arduino nano 33 ble sense, I use analogwrite function to vary the duty cycle but i am unable to control or reduce the PWM frequency. It would be great if some one helps me in solving this issue.

Thanks in advance.

100 Hz is pretty low. DId you do some experiments of your device does work with a higher PWM-frequency?
If the device transforms the PWM into an anlog voltage the frequency is not important.

One way to create a PWM with a frequency of 100 Hz would be doing it on your own in the loop()-function thriugh the use of the function millis() for the timing.

It is always a good idea to do a five-minute research with google. I'm sure you will find useful information.

best regards Stefan