Can anyone help with resolving these errors which I initially got while trying to run
python Servo.py
?:
Traceback (most recent call last):
File “my_servo.py”, line 20, in
pwm.set_period(50)
File “Navio2/Python/navio/pwm.py”, line 53, in set_period
with open(self.channel_path + “period”, “w”) as pwm_period:
IOError: [Errno 13] Permission denied: ‘/sys/class/pwm/pwmchip0/pwm0/period’
Following the foregoing error, I ran
emlidtool test
then I followed the prompt and updated RCIO by running
sudo emlidtool rcio update
However, I received yet another error:
Traceback (most recent call last):
File “my_servo.py”, line 19, in
with navio.pwm.PWM(PWM_OUTPUT) as pwm:
File “Navio2/Python/navio/pwm.py”, line 15, in enter
self.initialize()
File “Navio2/Python/navio/pwm.py”, line 34, in initialize
pwm_export.write(str(self.channel))
IOError: [Errno 5] Input/output error
I also noticed that when I now run:
python RCInput.py
the following is displayed as the PPM channel output
0 0 0 0
as opposed to the typical receiver values such as:
1500, 1100, 1500, 1500
which correspond to values on Channels 1, 2, 3, 4 on the radio transmitter. Once, again, I observed that this happened after I ran:
sudo emlidtool rcio update
Please can anyone help with this? I appreciate your help in advance.
P.S.: During the first initial setup, I followed the guidelines as found on the emlid docs and flashed the Raspberry Pi using the same Buster OS image provided on the Navio2 website page.