RaspberryPi Setup Guide for XLeRobot#
This guide provides comprehensive instructions for setting up a RaspberryPi for use with XLeRobot mobile base version.
Prerequisites#
RaspberryPi (recommended: Pi 4 or newer)
MicroSD card (32GB or larger recommended)
Computer with SD card reader
Network connection (WiFi or Ethernet)
1. Installing the Operating System#
Download Raspberry Pi OS#
Visit the official Raspberry Pi website
Download Raspberry Pi Imager
Download Raspberry Pi OS (recommended: Raspberry Pi OS with desktop)
Flash the OS to SD Card#
Insert your microSD card into your computer
Open Raspberry Pi Imager
Select the downloaded OS image
Select your SD card
Click “Write” to flash the OS
Initial Setup#
Insert the SD card into your RaspberryPi
Connect keyboard, mouse, and monitor
Power on the RaspberryPi
Follow the initial setup wizard:
Set country, language, and timezone
Create user account and password
Connect to WiFi network
Update system packages
Note
The hostname option defines the hostname your Raspberry Pi broadcasts to the network using mDNS. When you connect your Raspberry Pi to your network, other devices on the network can communicate with your computer using <hostname>.local or <hostname>.lan.
The username and password option defines the username and password of the admin user account on your Raspberry Pi.
The wireless LAN option allows you to enter an SSID (name) and password for your wireless network. If your network does not broadcast an SSID publicly, you should enable the “Hidden SSID” setting. By default, Imager uses the country you’re currently in as the “Wireless LAN country”. This setting controls the Wi-Fi broadcast frequencies used by your Raspberry Pi. Enter credentials for the wireless LAN option if you plan to run a headless Raspberry Pi.
2. Setting Up VNC for Remote Desktop#
Enable VNC Server#
Open Terminal on RaspberryPi
Run the configuration tool:
sudo raspi-config
Navigate to “Interface Options” → “VNC” → “Enable”
Reboot the system
Alternative: Enable VNC via Command Line#
sudo systemctl enable vncserver-x11-serviced
sudo systemctl start vncserver-x11-serviced
Install VNC Viewer on Your PC#
Download RealVNC Viewer
Install and launch VNC Viewer
Connect using
<hostname>.local or<hostname>.lan, for me is XLerobot.local (Make sure these devices are in the same network)Use your Pi’s username and password to authenticate
For detailed VNC setup instructions, refer to this comprehensive guide.
3. System Updates and Dependencies#
Update System Packages#
sudo apt update
sudo apt upgrade -y
Install Essential Packages#
sudo apt install -y python3-pip git curl wget
4. Enable SSH Access (Optional)#
Enable SSH#
sudo systemctl enable ssh
sudo systemctl start ssh
Find Your Pi’s IP Address#
hostname -I
Connect from Your PC#
ssh pi@<your-pi-ip-address>
5. Installing XLeRobot Software#
Follow the official software installation instructions for detailed steps.
And copy the config files.
Next Steps#
After completing this setup, you can run the code in the same way as the laptop:
Additional Resources#
Lekiwi#
Note
To test the single-arm version of XLeRobot with Lekiwi codes, you should detach the SO101 arm that doesn’t share the same motor control board with the base, clamp it on your table and connect it to your PC to act as the leader arm.
Note
To run mobile base version of Lekiwi, you need a RaspberryPi in advance.
Follow all of their software instructions so you can:
Install software on RasberryPi and setup SSH
After these steps you should be able to teleoperate a basic single-arm version of XLeRobot the same way Lekiwi does, to replicate this demo video: