Table of Contents
Overview#
Setting up a Raspberry Pi for robotics projects requires proper OS installation. This guide covers the basic setup process using Raspberry Pi Imager.
Requirements#
Hardware#
- Raspberry Pi 3B+ (or compatible model)
- microSD card (16GB+ recommended)
- USB card reader
- HDMI monitor
- USB keyboard and mouse
- Power supply (5V 2.5A)
Software#
- Raspberry Pi Imager (download from raspberrypi.org)
- Computer for image writing
Installation Steps#
Step 1: Download Raspberry Pi Imager#
Download from official website:
- Windows, macOS, or Linux versions available
- Simple installer process
Step 2: Prepare SD Card#
- Insert microSD card into reader
- Connect reader to computer
- Launch Raspberry Pi Imager
Step 3: Select Operating System#
For TurtleBot3/ROS:
- Recommended: Ubuntu Server 20.04 (64-bit)
- Alternative: Raspberry Pi OS (for testing)
Raspberry Pi Imager
┌─────────────────────────────────────┐
│ CHOOSE OS │
│ ┌─────────────────────────────┐ │
│ │ Ubuntu Server 20.04 (64-bit)│ │
│ │ Other Ubuntu versions... │ │
│ │ Raspberry Pi OS (32-bit) │ │
│ └─────────────────────────────┘ │
└─────────────────────────────────────┘Step 4: Select Storage#
Choose the microSD card:
- Verify correct drive selected
- All data will be erased
Step 5: Configure Settings (Optional)#
Click gear icon for advanced options:
- Set hostname
- Enable SSH
- Configure WiFi
- Set username/password
Advanced Options
├── Hostname: turtlebot
├── Enable SSH: Yes
├── WiFi SSID: your_network
├── WiFi Password: ********
└── Username: ubuntuStep 6: Write Image#
- Click “Write”
- Confirm data erasure
- Wait for completion
- Verify write
First Boot#
Connect Hardware#
- Insert SD card into Pi
- Connect monitor via HDMI
- Connect keyboard
- Connect power (boot starts)
Initial Login#
Default credentials (Ubuntu):
- Username: ubuntu
- Password: ubuntu
You’ll be prompted to change password on first login.
Network Setup#
If WiFi wasn’t configured:
# Edit netplan configuration
sudo nano /etc/netplan/50-cloud-init.yamlAdd WiFi configuration:
network:
version: 2
wifis:
wlan0:
dhcp4: true
access-points:
"your_network":
password: "your_password"Apply changes:
sudo netplan applyEnable SSH#
sudo systemctl enable ssh
sudo systemctl start sshPost-Installation#
System Update#
sudo apt update
sudo apt upgrade -yInstall Essential Tools#
sudo apt install -y vim git curl wgetCheck IP Address#
ip addr show wlan0Note the IP for remote connection.
Remote Access#
SSH from Desktop#
ssh ubuntu@<raspberry_pi_ip>Headless Operation#
After initial setup, no monitor needed:
- Power on
- Auto-connects to WiFi
- Access via SSH
Troubleshooting#
| Issue | Solution |
|---|---|
| No display | Check HDMI connection, try different cable |
| No WiFi | Verify credentials, check signal strength |
| Boot loop | Re-flash SD card, check power supply |
| Slow boot | Normal for first boot, patience needed |
Next Steps#
- Install ROS (ros-noetic-ros-base)
- Install TurtleBot3 packages
- Configure ROS networking
- Test communication with desktop