PWM export: Permission denied

Discussion in 'UDOO NEO' started by Andres Rodriguez, Feb 20, 2016.

  1. Andres Rodriguez

    Andres Rodriguez New Member

    Joined:
    Dec 28, 2015
    Messages:
    5
    Likes Received:
    2
    Hi, I'm trying to use the PWM from an application in python and I am following documentation to enable it http://www.udoo.org/docs-neo/Hardware_&_Accessories/PWM.html. The Step 1 I've done, but when export it in step 2, I do not have permissions. Thanks for the help.
    Code:
    echo 0 > /sys/class/pwm/pwmchip0/export
    -bash: /sys/class/pwm/pwmchip0/export: Permission denied
    
    sudo echo 0 > /sys/class/pwm/pwmchip0/export
    -bash: /sys/class/pwm/pwmchip0/export: Permission denied
    
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    and if you use
    Code:
    sudo sh -c "echo 0 > /sys/class/pwm/pwmchip0/export"
    
    If this works it looks like you have to do the same extra actions as for the other GPIO pins: GPIO through /sys/class but then for sys/class/pwm also
     
    Andres Rodriguez likes this.
  3. Andres Rodriguez

    Andres Rodriguez New Member

    Joined:
    Dec 28, 2015
    Messages:
    5
    Likes Received:
    2
    Hi @waltervl, thanks for your help this was the solution, it was a matter of adding the rule. Thanks
     
    Andrea Rovai likes this.

Share This Page