Robotino Raspberry
From RobotinoWiki
Contents
Introduction
This page explaines how you can use a Raspberry Pi to upgrade your Robotino v1 and Robotino v2. Upgrading your old Robotino is a dangerous operation. You have to open Robotino and remove the PC104 stack. Then you mount a Raspberry Pi and connect it to Robotino's IO board. If you are unsure how to connect the Raspberry you can damage or destroy the Raspberry and your Robotino. The explanations and pictures that follow are without any warranty and/or support.
The basic Robotino software is available for Raspberry Pi. This enables you to drive Robotino with an externally run Robotino View, API2 programm or the REST interface. Robotino View is not available for Raspberry nor is Robotino's navigation stack. |
Software
Install Raspbian on your Raspberry Pi. Include the Debian Buster repository for Robotino.
apt-get update apt-get install robotino-daemons
On Robotino v1 and v2 you have to enable the controld2 service.
systemctl enable controld2.service
Disable console serial0
Edit /boot/cmdline.txt and remove console=....
systemctl stop serial-getty@ttyS0.service systemctl disable serial-getty@ttyS0.service
Reboot.
Hardware
The serial line at the Pi GPIO14/15 is TTL level whereas the RS232 connector on Robotino's IO board is RS232 level. The MAX3232 does this job.
Robotino v2
Robotino v1
Cross compile for Raspberry Pi
https://www.j1nx.nl/diy/crosscompiling-software-for-raspbian-in-a-chroot-environment/ sudo apt-get install qemu-user-static debootstrap sudo debootstrap --no-check-gpg --foreign --arch=armhf buster /home/verbeek/raspbian http://archive.raspbian.org/raspbian sudo cp /usr/bin/qemu-arm-static /home/verbeek/raspbian/usr/bin sudo chroot /home/verbeek/raspbian /debootstrap/debootstrap --second-stage vim /home/verbeek/raspbian/etc/apt/sources.list deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi deb http://archive.raspberrypi.org/debian/ buster main sudo chroot /home/verbeek/raspbian apt install wget wget https://archive.raspbian.org/raspbian.public.key -O - | apt-key add - wget https://archive.raspberrypi.org/debian/raspberrypi.gpg.key -O - | apt-key add - apt install lsb-release
Compile librealsense
apt install libtbb-dev libprotoc-dev python3-protobuf