This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a simple example how to set a PWM driver?

Using SDK13 with nrf52832 , I was looking for hours how to set up a simple PWM signal.

  1. I don't want to use the example, it's a huge mess, it's not clear and you can't find a way to create your own class later, because you don't know what is needed and what's not.

  2. I was trying multiple examples, like this one which have tones of errors and not even compiles.

Is there a simple example, from start to end, how to set up a hardware PWM ? example for humans not machines ?

Thanks!

Parents
  • Hi

    I updated the old case to include support for SDK v13.

    Also, a colleague of mine made an even simpler example, which I think is much better if you just want a function that allows you to set the duty cycle directly: pwm_simple.zip

    I recommend you have a look at that if you need a way to easily set the PWM duty cycle.

    Best regards
    Torbjørn

  • Hi Which project file did you try? Because of the relative file names in the project you need to put the pwm_simple folder at the right place in the SDK, for instance like this:
    \nRF5_SDK_13.0.0\examples\peripheral\pwm_simple\

Reply
  • Hi Which project file did you try? Because of the relative file names in the project you need to put the pwm_simple folder at the right place in the SDK, for instance like this:
    \nRF5_SDK_13.0.0\examples\peripheral\pwm_simple\

Children
No Data