Design and research — Electronics
What is connected to the Pico
ExplanationEverything 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
VSYSpin, 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
| Purpose | Pico pins |
|---|---|
| Chute stepper: STEP / DIR / DIAG | GP28 / GP27 / GP12 |
| C1 rotor stepper: STEP / DIR / DIAG | GP26 / GP22 / GP13 |
| C2 rotor stepper: STEP / DIR / DIAG | GP8 / GP7 / GP9 |
| C3 rotor stepper: STEP / DIR / DIAG | GP21 / GP20 / GP14 |
| Carousel (classification channel) stepper: STEP / DIR / DIAG | GP19 / GP18 / GP15 |
| Driver enable, shared by all five | GP0 |
| 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 / SCL | GP10 / 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.
- Fitting the Pico's headers: Pico headers
- Flashing the firmware: Flashing the control 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.
- Percentage to duty on the Orange Pi:
irl/leds.py - The endpoint the UI calls:
server/routers/leds.py - The firmware handler:
CMDH_digital_write_pwminsorter_interface_firmware.cpp
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.