Robotics Lab

Robotics Lab: Explore Boards in 3D

Explore eight boards from Arduino, Espressif and Raspberry Pi. Use Robotics Lab to inspect components in 3D, assemble a board or wire a working circuit.

Building the board…

01Workbench

Robotics Lab circuit workbench

Wire sensors, motors and displays to a board, then press Run to simulate the circuit. Start with a guided Robotics Lab mission or build your own circuit in Free Build.

  • Guided circuit missions

    Step-by-step builds — blink an LED, read a sensor, drive a motor.

  • Pin-to-pin wiring

    Click two pins to connect them. Robotics Lab checks the connections before power-up.

  • Full-screen workbench

    Press Full screen to give the Robotics Lab workbench the whole display.

02Lesson

Robotics Lab: Raspberry Pi 4 Model B Lesson and Pinout

Select a board in Robotics Lab to see its specifications, pin functions and component guide.

Board overview

Robotics Lab board guide · Raspberry Pi · 2019

The Raspberry Pi 4 is not a microcontroller but a complete Linux computer: plug in a monitor, a keyboard and a network cable and it works like a desktop PC. Robotics Lab includes the Pi 4 as an example of a robot’s main computer. It can process video, run neural networks and ROS, and talk to motors and sensors through its 40 GPIO pins.

Clock
1.5 GHz
Flash
microSD
RAM
1–8 GB
GPIO pins
26
Logic level
3.3 V
Price
≈ $35–75

Specs

Compare the electrical specs with other Robotics Lab boards. See the hardware references.

Processor
Broadcom BCM2711, 4 × Cortex-A72, 64-bit
Clock speed
1.5 GHz (1.8 GHz with newer firmware)
RAM
1, 2, 4 or 8 GB LPDDR4
Storage
microSD card (can also boot from a USB drive)
Wi-Fi & Bluetooth
802.11ac 2.4 / 5 GHz, Bluetooth 5.0
Wired network
Gigabit Ethernet
USB
2 × USB 3.0 and 2 × USB 2.0
Video
2 × micro-HDMI, up to 4K
GPIO
40-pin header, 3.3 V logic
Camera & display
CSI and DSI ribbon connectors
Power
5 V, 3 A over USB-C
Size
85 × 56 mm

What’s on the board

18 parts match the numbered labels in Robotics Lab. Click one and the camera flies to it.

Strengths and pitfalls

Use these trade-offs when choosing a board in Robotics Lab.

Strengths

  • Full Linux: Python, OpenCV, ROS and neural networks run right on the board
  • Camera port, Wi-Fi, Ethernet and four USB ports are built in — nothing extra to buy
  • 40-pin GPIO header with I²C, SPI, UART and PWM for sensors and motor drivers
  • A huge community: tutorials and libraries for almost any project

Watch out

  • GPIO pins are 3.3 V only. Feeding 5 V into an input destroys the processor — there is no protection
  • There are no analog inputs: a potentiometer or analog sensor needs an external ADC (for example the MCP3008)
  • Use a 5 V 3 A power supply. A weak phone charger causes freezes and corrupts files on the card
  • No more than 16 mA from a single GPIO pin. Power motors and servos from a separate supply through a driver
  • Do not pull the plug without shutting down first — you can damage the system on the microSD card

Pins

Learn which pins to use on the Robotics Lab workbench.

Power

Pins 2 and 4 are 5 V straight from the power supply; pins 1 and 17 are 3.3 V for sensors. Ground (GND) is on pins 6, 9, 14, 20, 25, 30, 34 and 39. Never power motors from these pins — use a separate supply.

3.3 V only

Every GPIO works at 3.3 V. Connect a sensor with a 5 V output (for example the HC-SR04) through a two-resistor divider or a level shifter.

GPIO numbers vs pin numbers

Each contact has two numbers: the physical one (1–40, in order) and the GPIO number you use in code. For example, pin 11 is GPIO17. In the Robotics Lab model, use the square pad to find pin 1 at the left end of the inner row.

I²C, SPI and UART buses

I²C: GPIO2 (SDA) and GPIO3 (SCL). SPI: GPIO10, GPIO9, GPIO11 with chip selects GPIO8 / GPIO7. UART: GPIO14 (TXD) and GPIO15 (RXD). Enable a bus in raspi-config before you use it.

PWM for servos

Hardware PWM is available on GPIO12, GPIO13, GPIO18 and GPIO19. On all other pins PWM is done in software — fine for an LED, but a servo may jitter.

Hover over a pin in the Robotics Lab viewer to see its name and function.

  • Power
  • Ground
  • Digital
  • Analog
  • Buses: UART, I²C, SPI
  • Control: RESET, EN, BOOT
  • Not connected

First code

Try the Robotics Lab starter example on your physical board.

First program: an LED and a button in Python Python
# Run it with: python3 blink.py# The gpiozero library comes preinstalled with Raspberry Pi OSfrom gpiozero import LED, Buttonfrom time import sleepled = LED(17)        # LED: GPIO17 (pin 11) -> 330 ohm resistor -> GND (pin 9)button = Button(27)  # button between GPIO27 (pin 13) and GND (pin 14)while True:    if button.is_pressed:   # button held down: stay on        led.on()        sleep(0.05)    else:                   # otherwise blink once a second        led.on()        sleep(0.5)        led.off()        sleep(0.5)

Where it shines

Use the Robotics Lab workbench to plan the wiring for a project.

  1. Computer-vision robot: a camera plus OpenCV finds a line, a ball or a face
  2. On-board ROS computer that commands an Arduino driving the motors
  3. Wi-Fi controlled rover that streams video to a web browser
  4. Voice assistant or smart weather station with a web dashboard
  5. Server for a 3D printer or a smart home

Board background

See how this hardware fits into the Robotics Lab board collection.

The Raspberry Pi 4 is roughly 40 times faster than the very first model from 2012, yet the starting price is the same $35.

The Wi-Fi antenna is not a component at all — it is a specially shaped cut-out in the copper layer of the board itself.

Raspberry Pi boards are built at the Sony factory in Wales, and tens of millions of them have been sold.

Practice with this board

Try the same board in these Robotics Lab activities.

Sources

Manufacturer and hardware project documentation.

03Quiz & assembly

Robotics Lab: Component Quiz and Soldering

Use the 3D models in Robotics Lab to identify components, place them on the board and practice soldering. Both exercises work with all eight boards.

Quiz · about a minute

Identify components on a 3D board

Robotics Lab names a part for you to find on the model. Rotate the board, zoom in and flip it over, just like the real thing.

  1. 1

    Read the question. “Find the microcontroller — the brain of the board.”

  2. 2

    Click the part. Not sure? Take a hint, or skip and see the answer.

  3. 3

    See your score. Only first-try answers without a hint count.

Assembly · a few minutes

Assemble and solder a board

Open the Robotics Lab assembly kit to take the board apart into a tray of components. Put every chip, connector and header back where it belongs and solder it down.

  1. 1

    Pick a part from the tray. Chips, connectors, headers, buttons.

  2. 2

    Place it on its footprint. The pads on the bare board show where it goes.

  3. 3

    Solder it in. When the last joint is done, the board is whole again.

04Compare

Robotics Lab: Compare All Eight Boards

Compare processors, memory, pins and logic voltage to choose a board for your project. Select a row to open that board in Robotics Lab.

Robotics Lab lists typical street prices, which vary by seller. “Logic” is the voltage of the I/O pins — never feed 5 V into a 3.3 V board.

Robotics Lab FAQ

What can I do in Robotics Lab?

Rotate eight 3D circuit boards, inspect their pins and components, practice assembling and soldering a board, and wire virtual circuits in the browser.

Which boards can I explore in Robotics Lab?

The lab includes the Arduino Uno R3, Arduino Nano, Arduino Mega 2560 R3, ESP32 DevKit V1, NodeMCU, Raspberry Pi Pico, STM32 Blue Pill and Raspberry Pi 4 Model B.

Does Robotics Lab require a physical board or an account?

The virtual lab runs without an account or physical hardware. The 3D viewer and simulator need JavaScript and WebGL 2. Board specifications and lessons are readable without starting the viewer.

How do I get started with circuit simulation?

Open the circuit workbench and choose the first LED mission. Follow its wiring steps, press Run and watch the LED blink. Free Build lets you choose and connect your own components.

How does Robotics Lab score the component quiz?

A correct first answer without a hint earns one point. A correct answer after a retry or hint still lets you complete the question. Your best score is saved in this browser.

Can I use Robotics Lab wiring on real hardware?

Use the simulator to practice and understand the connections. Before wiring a physical board, check the manufacturer’s documentation for its pinout, voltage limits and power requirements.