Skip to content

Generating PWM Signals #12

@moelski

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

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