2021-11-25, 11:44 PM
Hi All
I have just built a new OpenPlotter installation on a new RPi4 with RPi foundation i2c screen. I have the pypilot arduino board connected via UART0, GPIO14/15 (as per old RPi3 install) but cannot get it to work. If I plug a USB cable from arduino to RPi4 this works. I have tried a loopback on the UART and using a CuteCom terminal program I get characters returned, so I know the port is working. The UART comes up as /dev/ttyS0. I found the "servodevice" file and changed it to read ["/dev/ttyS0", 38400] but still no joy. Using the pypilot_servo utillity (making sure pypilot was not running) I can see it trying both /dev/ttyAMA0 and /dev/ttyS0 at both 4800 and 38400 baud but it gets a device busy or not available error. The arduino works via serial if I plug it back into the old RPi3.
Looking at permissions on /dev/tty* all are owned by root and are in dialout group, both pi and bruce are members of dialout group.
Another problem is that the screen creates all sorts of rubbish on the i2c bus, it looks reasonable easy to create an additional i2c bus, is it possible to specifiy i2c2 (or i2c4) bus for the IMU? If so which file needs to be changed?
Thanks and all the work which went into this project is very much apprieciated.
Cheers
Bruce
I have just built a new OpenPlotter installation on a new RPi4 with RPi foundation i2c screen. I have the pypilot arduino board connected via UART0, GPIO14/15 (as per old RPi3 install) but cannot get it to work. If I plug a USB cable from arduino to RPi4 this works. I have tried a loopback on the UART and using a CuteCom terminal program I get characters returned, so I know the port is working. The UART comes up as /dev/ttyS0. I found the "servodevice" file and changed it to read ["/dev/ttyS0", 38400] but still no joy. Using the pypilot_servo utillity (making sure pypilot was not running) I can see it trying both /dev/ttyAMA0 and /dev/ttyS0 at both 4800 and 38400 baud but it gets a device busy or not available error. The arduino works via serial if I plug it back into the old RPi3.
Looking at permissions on /dev/tty* all are owned by root and are in dialout group, both pi and bruce are members of dialout group.
Another problem is that the screen creates all sorts of rubbish on the i2c bus, it looks reasonable easy to create an additional i2c bus, is it possible to specifiy i2c2 (or i2c4) bus for the IMU? If so which file needs to be changed?
Thanks and all the work which went into this project is very much apprieciated.
Cheers
Bruce