Hi everybody! I would like to set up a 40kHz PWM output to control ultrasound transducer on Arduino Nano 33 BLE. Unfortunately, I’m new to this world, any idea how I could do it?
The Arduino Nano 33 BLE uses mbedOS. Have a look at the mbedOS API reference for pwmout. There are functions for setting the period and duty cycle.
https://os.mbed.com/docs/mbed-os/v6.2/apis/pwmout.html
If you have any issues getting this to work, please post an example with your code. Hint: Use code tags. If you do not know how, please read the "How to post .." at the beginning of each sub forum.