Skip to content
RoboLearn
Not completed

Raspberry Pi and Pico

PlatformsIntermediate30 minTry a virtual Pico ↓Before this: MicroPython basics

What you’ll learn

  • The difference between a Raspberry Pi and a Raspberry Pi Pico
  • When a robot needs a full computer
  • How Pi and microcontroller can work together

Two very different boards

Raspberry Pi (e.g. Pi 4 / Pi 5) Raspberry Pi Pico
Type Full computer running Linux Microcontroller
Runs Python, OpenCV, ROS 2, a desktop One program: MicroPython or C/C++
Starts up in Tens of seconds Instantly
Power 5 V, several amps (the Pi 5 wants a 27 W USB-C supply) Tiny
Good at Cameras, AI, maps, Wi-Fi, heavy maths Precise timing, reading sensors, driving motors
Price ~$35–80 ~$4–7

Using a Pi in a robot

  • Program it in Python; the gpiozero library makes pins easy.
  • Add a camera for computer vision.
  • It’s not real-time, so for precise motor timing many robots pair a Pi (brain) with a microcontroller (spinal cord): the Pi decides “turn left”, and a Pico or Arduino runs the motors and reads encoders.

Finished this lesson?