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: STM32 Blue Pill Lesson and Pinout

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

Board overview

Robotics Lab board guide · Generic (STM32F103C8T6 board) · 2014

A tiny blue board built around the STM32F103C8T6 — a 32-bit ARM Cortex-M3 microcontroller running at 72 MHz. It is several times faster than a classic Arduino, has lots of timers and communication ports, and costs about as much as a chocolate bar. A great second board once you have outgrown the Uno or Nano.

Clock
72 MHz
Flash
64 KB
RAM
20 KB
GPIO pins
32
Logic level
3.3 V
Price
≈ $2–3

Specs

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

Microcontroller
STM32F103C8T6 (ARM Cortex-M3, 32-bit)
Clock speed
72 MHz (8 MHz crystal × 9)
Flash memory
64 KB
RAM
20 KB
Logic level
3.3 V (many pins tolerate 5 V inputs)
I/O pins on the headers
32
Analog inputs
10 channels, 12-bit ADC
PWM outputs
15
Interfaces
3 × USART, 2 × SPI, 2 × I2C, CAN, USB 2.0 full speed
Power
5 V from micro-USB or the 5V pin; 3.3 V regulator on board
Programming
ST-Link over SWD, or USB-UART adapter via the serial bootloader
Size
53.3 × 22.9 mm

What’s on the board

13 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

  • 32-bit ARM core at 72 MHz — plenty of speed for motor control, filters and fast sensors
  • Hardware-rich: 15 PWM channels, 12-bit ADC, three serial ports, CAN bus and native USB
  • Fits a breadboard and leaves room for wires
  • Real debugger support: step through code and watch variables with a cheap ST-Link

Watch out

  • It is a 3.3 V board. Pins PA0–PA7, PB0, PB1, PB5 and PC13–PC15 are NOT 5 V tolerant — 5 V on them can kill the chip.
  • Do not connect USB and an external supply on the 5V pin at the same time: there is no protection diode between them.
  • The small 3.3 V regulator is only meant for light loads (roughly 100–300 mA depending on the clone). Power servos and motors from a separate supply, never from the board.
  • PC13, PC14 and PC15 are weak pins (about 3 mA). The on-board LED on PC13 is inverted: LOW turns it on.
  • After uploading through the serial bootloader, move the BOOT0 jumper back to 0 — otherwise your program will not start after reset.

Pins

Learn which pins to use on the Robotics Lab workbench.

Power

5V is connected straight to the USB socket; 3.3 is the regulator output. The chip itself runs on 3.3 V. Feed the board through USB or the 5V pin — not both — and keep the load on 3.3 small.

5 V tolerance

Most port B pins and PA8–PA15 accept 5 V signals as inputs. The analog-capable pins PA0–PA7, PB0, PB1, plus PB5 and PC13–PC15, do not: use a voltage divider or level shifter there.

Analog and PWM

Ten 12-bit analog inputs (0–3.3 V → 0–4095) sit on A0–A7, B0 and B1. Fifteen pins can output PWM from four hardware timers — enough for several motors and servos at once.

Communication

Serial 1 is on A9 (TX) and A10 (RX) — also used by the bootloader. I2C1 is on B6 (SCL) and B7 (SDA), SPI1 on A5/A6/A7, SPI2 on B13/B14/B15, USB on A11/A12.

Programming pins

The four pins on the end are the SWD port for an ST-Link. A13 and A14 are reserved for it, which is why they are not on the side rows. R is the reset line.

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 sketch: blink the PC13 LED Arduino C++
// Arduino IDE with the "STM32 boards" core (STM32duino).// The on-board LED is wired between 3.3 V and pin PC13,// so it is inverted: LOW = on, HIGH = off.void setup() {  pinMode(PC13, OUTPUT);       // PC13 becomes an output}void loop() {  digitalWrite(PC13, LOW);     // LED on  delay(200);                  // wait 0.2 s  digitalWrite(PC13, HIGH);    // LED off  delay(800);                  // wait 0.8 s}

Where it shines

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

  1. Line-follower or balancing robot with fast PID control loops
  2. Reading quadrature encoders with hardware timers
  3. CAN-bus node for a bigger robot (with an external transceiver)
  4. Custom USB device: gamepad, keyboard or sensor dongle
  5. Multi-servo and multi-motor controller using the 15 PWM channels

Board background

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

The nickname comes from the film The Matrix: the STM32duino community named this blue board the “Blue Pill”, and its red and black cousins the “Red Pill” and “Black Pill”.

The chip is sold as having 64 KB of flash, but on many boards the upper half of a 128 KB memory turns out to be there and usable — an unofficial bonus.

Many Blue Pills were built with the wrong USB pull-up resistor (10 kΩ instead of 1.5 kΩ). On some computers USB then refuses to work until the resistor is swapped.

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.