⚠ Under heavy construction

As of July 11, 2026, Sorter V2 is not yet in a position to be built.

The documentation that exists is incomplete. Any given page may be accurate, inaccurate, present only as an example, or badly out of date. We do not yet recommend that anyone attempt to build Sorter.

For the most live updates on our progress, join our Discord.

Design and research — Electronics

What is connected to the Pico

Explanation

Everything the Raspberry Pi Pico on the control board is connected to, which pin each connection uses, and which part of the firmware handles it.

AI-generated first draft. Written from the Pico firmware, the control program and the board's KiCad files, not from an actual build. The part names, pins and numbers are read from those files and have not been checked against a built machine.

The Pico is a Raspberry Pi Pico, a small board with a microcontroller on it (a tiny computer that runs one program and nothing else). It plugs into headers on the control board, which is the basically board v1.3 this page describes. The program stored inside the Pico (the firmware) only makes the pulses that move the stepper motors, switches outputs on and off, and reads inputs. The Orange Pi decides what to do and sends it commands, which is described on How the electronics talk to each other.

This page is the list of what connects to the Pico and which pin each connection uses. Which socket each cable goes into is on Connecting the components, and how the cables are wired is on Wire harness.

The big picture

  • The Orange Pi: over USB. See The USB connections and the hub and How the electronics talk to each other.
  • Power: 5 V into the Pico's VSYS pin, from a converter on the control board. Details: Power distribution.
  • The stepper drivers: five driver chips, one per stepper motor. The Pico gives each a STEP pin and a DIR pin, shares one enable pin and two serial lines between them, and reads a DIAG pin from each. Details: The motors.
  • The servo chip: a PCA9685 chip that makes the servo signals, reached over two wires (I²C, a two-wire connection between chips). Details: The servos and the layer adapter boards.
  • The camera lamps: two outputs, covered below.
  • The switches: two inputs, one of them the chute limit switch, covered below.

What the Pico pins do

Pinout of the Raspberry Pi Pico on basically board v1.3. All 40 pins are drawn in physical order, with the GP number and the job of each pin colour coded: STEP and DIR for the five steppers, a DIAG pin per driver, the two driver UART buses, the driver enable, two lamp outputs, two switch inputs and the servo chip I2C pins
The Pico's pins as the v1.3 board uses them. Full size. Drawn from the firmware pin map, not from a build. Diagram: Balloon.
PurposePico pins
Chute stepper: STEP / DIR / DIAGGP28 / GP27 / GP12
C1 rotor stepper: STEP / DIR / DIAGGP26 / GP22 / GP13
C2 rotor stepper: STEP / DIR / DIAGGP8 / GP7 / GP9
C3 rotor stepper: STEP / DIR / DIAGGP21 / GP20 / GP14
Carousel (classification channel) stepper: STEP / DIR / DIAGGP19 / GP18 / GP15
Driver enable, shared by all fiveGP0
Driver UART, drivers 1 to 4 (chute, C1, C3, carousel)GP16 (TX), GP17 (RX)
Driver UART, driver 5 (C2)GP4 (TX), GP5 (RX)
Camera lamps (PWM outputs)GP1, GP6
Switch inputs (limit switch)GP3, GP2
Servo chip (I²C): SDA / SCLGP10 / GP11

In this table, GP and a number (for example GP28) name one pin on the Pico. STEP, DIR, DIAG, UART and enable are explained on The motors, and the I²C pins on The servos and the layer adapter boards.

The full circuit is the board's schematic: basically board v1.3 schematic (PDF), drawn from the KiCad project, which is the file to open if you want to edit or export it yourself.

The pin map is the file hwcfg_basically_v1_2.h, and that file is the one to trust if this table and the firmware ever disagree. The v1.3 board uses the file named v1_2; that is correct, not a mistake. Other boards have their own file next to it: hwcfg_skr_pico.h for the BigTreeTech SKR Pico and hwcfg_basically_v1_1.h for the earlier board.

Why one board

  • The first machines used two boards. A Pico runs four steppers and the machine needs five, so the early setup used two SKR Pico boards (March 2026).
  • The plan to merge them. Putting everything on one board was raised at the 8 March 2026 meeting, as a more unified system. At the 29 March 2026 meeting the design change was to add one more driver socket on the second serial port that the Pico has.
  • The result. The fifth stepper worked, the servo chip add-on module was no longer needed, and a machine needs one board where the first revision needed two (April 2026).

The camera lamps

The two lamp outputs are PWM pins. PWM switches a pin on and off very fast, and the share of time it is on sets the brightness. The Orange Pi turns a brightness percentage into a duty value, which says how much of the time the pin is on (a number from 0 to 65535), and sends it as a WRITE_PWM command for that output. The Pico sets it and keeps it until told otherwise.

The board has four LED ports, J8 to J11, and each Pico output drives two of them: J8 with J9, and J10 with J11. The three camera lamps and the housing fan use all four ports, so one lamp always comes on with the fan. Which lamp is on which output is picked in the software, on the LED button for each channel.

What the lamp ports do with that signal is on Power distribution under the lamps and the fan, and which cable goes on which port is on Connecting the components.

The switches

The two switch inputs are plain digital inputs, on or off, that the Orange Pi reads with a READ command. The chute limit switch plugs into the one the board prints HALL_SW_0, on socket J5. The other, HALL_SW_1 on J6, is a spare: nothing is plugged into it. The chute is turned back to this switch to find its home position, which is described on The motors.

The DIAG inputs that report a blocked motor are not switches. They are covered on The motors too.