PWM example Permission denied

Hello everybody,
I’m trying to use autopilot with navio2+raspi and controlling pwm with a node where i put when i run the node i get ERRor Permission denied: /sys/class/pwm/pwmchip0/export. someone can help?

@liam add “sudo” to the beginning of the command.

I use as node in ROS package, i can’t run sudo rosrun

In that case you can login as root.
It was also answered here:

1 Like

Yes i just do it, the solution is to go the workspace and tap “sudo su” then source and run the node.
Thank you Mikhail for your help