Cannot get the PWM to work (both in C++ and Python). Is there way to debug the PWM drivers.
Python error:
Traceback (most recent call last):
File "Servo.py", line 13, in <module>
with navio.pwm.PWM(PWM_OUTPUT) as pwm:
File "/home/pi/third_party/Navio2/Python/navio/pwm.py", line 15, in __enter__
self.initialize()
File "/home/pi/third_party/Navio2/Python/navio/pwm.py", line 34, in initialize
pwm_export.write(str(self.channel))
IOError: [Errno 5] Input/output error
Hi @liudmila.slepova, Looks like only RCInput and RCOutput examples are not working (tried both with and without powering the servo-rail); other examples are working fine.
Yes, running in sudo and on the last image (emlid-raspbian-20200922.img.xz) from here.
After some debugging (tested it on a different RPi and it works), it’s the Raspberry Pi that’s the problem and not the Navio2 hat. I reflashed the image and tested it to no avail.
Do you know what could be an issue on the RPi that makes the servo rail not work?
Yeah, it’s a bummer; pretty good RPI and a working navio2 board just can’t seem to get them working together. All other sensors work except the servo rail.
That’s quite strange, indeed. Unfortunately, I can hardly give any other clues on why this happens as it looks like an issue from the RPi side. If you power the servo rail the same way as on the other RPi, it should work the same way.