Skip to content

Generating PWM Signals #12

Description

@moelski

Hi !
There is one thing missing in this Lib ... generating PWM signals.
At the Moment I see 3 different ways ....

  1. Using the Hardware like in this lib: http://www.ofitselfso.com/RPICSIO/Help/RPICSIOHelp_PWMPortExample.html
    # enable one PWM with GPIO_18, header Pin12 by default
    dtoverlay=pwm.dtbo
    # enable two PWMs GPIO_18, header Pin12 and GPIO_19, header Pin35 by default
    dtoverlay=pwm-2chan.dtbo
  1. Using Software PWM with Pigpiod as a service (can be accessed by TCP). I used that in some cases and it works really well.
  2. Writing an own Software PWM class - but at the moment I have no idea how fast we can toggle Pins...

What do you think about generating PWM directly on the Pi ?

Dominik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions