After following these tutorial (https://docs.petoi.com/api/raspberry-pi-serial-port-as-an-interface and https://docs.petoi.com/api/python-serialmaster-user-guide), I can now run python program ardSerial.py, but I can no longer connect to my bluetooth controller. I want to control Bittle with the controller. Also, I am also still getting the "* Port ttyAMA0 cannot be opened!" error, but ardSerial.py runs.
Here are so outputs from terminal that may be relevant.
$ ls -1 /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Apr 6 20:08 /dev/ttyAMA0
$ ls -1 /dev/ttyS0
crw-rw-rw- 1 root dialout 4, 64 Apr 6 20:08 /dev/ttyS0
I also created a dev rule.
FileName: 50-myusb.rules
Contents: KERNEL=="ttys0", MODE= "0666", GROUP="dialout"
I am also wanting to be able to ssh into the pi from my MacBook. This is currently working. The only issue seems to be the bluetooth after following the above tutorials. Is it possible to ssh in to a pi4, and control Bittle using a bluetooth controller?
Hi,
Was the 2x5 socket used in your previous setting?
There's only one serial port on the NyBoard. So if the board is connected to the Pi's serial port, you can no longer use the original 6-pin Bluetooth connector.
Yes, you can ssh into a Pi, and run the ardSerial.py related scripts from the Pi's terminal. In that way, you don't need to connect the robot through Bluetooth.