2 Replies Latest reply on Dec 15, 2014 1:17 AM by Helmut64

    How to enable pwm2 on the Edison breakout board?

    Helmut64

      I like to enable low-level the pwm2 which should be on J17-pin1, here is what I do:

       

      echo -n  2 > /sys/class/pwm/pwmchip0/export

      echo -n 1 > /sys/class/pwm/pwmchip0/pwm2/enable

      echo -n 1000000 > /sys/class/pwm/pwmchip0/pwm2/period

      echo -n 500000 > /sys/class/pwm/pwmchip0/pwm2/duty_cycle

       

      There is no signal on the J17-pin1, regular gpio on the same pin works fine. I tried as well the "mraa" which gives another error, however I need to learn how it can be done using low level Linux APIs.

       

      Any ideas?