⚠ 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

The servos and the layer adapter boards

Explanation

How the chute doors are moved: the servo chip on the control board, the ribbon cable down the stack, and what each layer's adapter board does.

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.

Every distribution layer has a door. When the chute has turned to the right column of bins, the door of the right layer opens and the piece drops into the bin below it. One servo opens and closes each door. A servo is a motor that turns to an angle you tell it, and holds there, instead of turning round and round like the stepper motors. It is told the angle by a signal, a stream of pulses, where the length of each pulse sets the angle.

The signals are made by one chip on the control board and travel down the stack on a ribbon cable. Each layer has a small board that picks its own signal off the ribbon and passes the rest on.

  • The servo: an MG995, one per layer.
  • The servo chip: a PCA9685 on the control board.
  • The ribbon cables: one long one from the control board to the first layer, and a short one from each layer to the next.
  • The layer adapter board: one per layer, which feeds the servo and passes the ribbon on.

The servo

The MG995 is a standard-size hobby servo with metal gears. The catalog specifies the 180° positional version, which turns to any angle across a 180° range and not the continuous-rotation one. Its signal is a pulse from 500 to 2500 µs long, repeated 50 times a second, and 1500 µs is the centre. It runs on 6.5 V from the control board's "ServoV" rail, and its current figures and the load on that rail are on Power distribution. It has a 300 mm lead with a 3-wire plug: brown ground, red servo power, orange signal.

The servo chip

The PCA9685 is a chip that makes up to 16 servo signals by itself. Once it has been told an angle it keeps sending that signal without any more help, so the Pico does not have to keep time for the servos. The Pico talks to it over I²C, a two-wire connection between chips, on the pins listed on What is connected to the Pico. The chip answers at address 0x40 and has its own 25 MHz crystal.

  • Voltage levels: the Pico's I²C wires run at 3.3 V and the chip's at 5 V, so a small level-shifter chip (a PCA9306) sits between them.
  • The signals: the firmware sets the chip to 50 pulses a second. A pulse of 0.5 to 2.5 ms is 0 to 180°.
  • The outputs: 10 of the chip's 16 outputs go to the ribbon cable, each through a 220 Ω resistor.
  • At start-up: the firmware resets the chip, and sets every output to no pulse at all, which the firmware treats as safe for any servo.

How a servo is moved

The Orange Pi sends servo commands: move to an angle, set speed and acceleration limits, and release. The firmware does the moving. It works in tenths of a degree, speeds the servo up, then slows it down towards the target, and the signal is turned off when the servo arrives (the release), so the servo does not keep pushing and heat up. If a servo is blocked and never arrives, the firmware releases it anyway after at most 3.5 seconds.

Which angle is open and which is closed differs from one layer to the next, so the software has no machine-wide default. Each layer's open and closed angle is calibrated and saved, and a layer is only used once both are set. By default the servos are taken in order: the first layer's servo is the chip's first channel, the second layer's the second, and so on. The settings file can change that, and can reverse a servo.

The software has a second servo backend for a different kind of servo (the Waveshare bus servos). This page covers the PCA9685 one, which is the one the layer adapter boards and the MG995 on the hardware pages go with.

Why these servos and this wiring

  • The MG995. The first version used small 9 g servos, which sometimes stalled under the weight of the doors (November 2025). A step to a slightly stronger servo was considered, but the choice was to go further, because it is better to downgrade later than to find out a servo is too weak (same thread). One designer thought the MG995 has too much torque and suggested smaller servos, and noted that a hobby servo's signal can only be updated 50 times a second (January 2026).
  • Serial servos instead (planned). Servos that report their angle and load over a serial bus were proposed in January 2026. They need no servo chip, only one adapter board, but one builder noted they cost about four times as much as an MG995. The decision was to go ahead with the MG995 and move to serial servos later, and that is still the plan: the machine described on this page is not changed yet. The software already has a second backend for them, as described above. What is known so far:
    • The candidate is the Waveshare SC15. It has two ports and daisy-chains with no breakout board. Dropping a stepper channel frees a Pico UART to drive the chain, and the PCA9685 and the servo connectors would go, so the control board could roughly halve. The Pico's two real UARTs are both used by the stepper drivers, so the firmware would need a software serial port (18 October 2026 meeting). FEETECH SCS15 servos, the same servo with another connector, were bought as an alternative source. They are untested so far.
    • No PWM is needed, which simplifies the control board (October 2026).
    • They report back their actual angle and whether they are stalled (October 2026).
  • A slip ring instead of the cable chain. It was considered. One that fits was not easy to find in every part of the world, at a good cost, and the output at the bottom was important (October 2026). It would also have to carry high power plus ten PWM signals, one per layer (same day), and a ring big enough has to leave the 120 mm centre hole open (same day). Serial servos would cut the signals to a few wires, so it may be worth another look then (same day). Open points: whether the servos tolerate noise on the line while the ring turns, which could be handled by only talking while the ring is still (same day), and that I²C over a slip ring is risky (same day). Mounting the ring at the bottom also makes the bin tub harder to get in and out (same day). Nothing is decided.
  • Hobby servos over solenoids. Solenoids on the flaps were thought about but never tried. Servos turned out cheaper, because hobby servos are made in huge numbers and solenoids do not come in the shape needed. A solenoid would also need a return spring (October 2026, same day).
  • 6.5 V for the servos. The MG995 is rated from 4.8 to 7.2 V, which makes 5 V uncomfortably close to the bottom, and torque is much higher at 6.5 V with more margin (February 2026). The servo rail is made by a switching converter, not a simple regulator, because a regulator would waste a lot of power at the 2 A or more that one servo needs at its peak (January 2026).
  • Boards that are all identical. The idea of one flat cable down the stack, with a small passive board per layer that takes its own signal and passes the others on shifted by one place, came from November 2025. It means every board is identical.
  • Ten layers. The layer count was a limit that the team accepted from the start: it was suggested that the estimated layer count for this version be the upper limit (November 2025), and the maximum later stated is ten. The chip has 16 outputs and the firmware reports 16 servos when it finds the chip, but only ten reach the ribbon cable. In March 2026 lowering the maximum to 8 layers was discussed.
  • The servo chip. The servo signals come from a PCA9685 chip, not from the Pico's own pulse outputs. One of the original designers gave three reasons (October 2026): the Pico did not have enough free pins, the chip let the team prototype faster, and it was familiar, because it had already been used on the previous sorter. Driving the servos from the Pico directly would also have needed level shifters and extra microcontrollers, and the custom boards were still far away at the time. At the first schematic review the Pico's own outputs were suggested as an alternative (December 2025), and the board designer wondered about them too (December 2025). The chip started as an add-on module and is now on the control board, so a machine needs only one board (April 2026).

The ribbon cables

The signals and the servo power travel on 16-pin flat ribbon cables (two rows of eight pins, 2.54 mm apart, with a keyed plug at each end so it only goes in one way up). The cable has the same layout everywhere:

  • Three wires carry the 6.5 V servo power.
  • Three wires carry ground.
  • Ten wires carry the ten servo signals, one for each output of the chip that reaches the ribbon.

There are two kinds. The long one (1.2 to 1.5 m, called RIB1) runs from the control board to the first layer. A short one (300 mm, called RIB2) links each layer to the next. A machine uses two short ones for three layers, or four for five layers. Which socket each end goes into is on Connecting the components and on the layer adapter board page.

What a layer adapter board does

The layer adapter board is the in-house board with one servo on it. It has two identical ribbon sockets, J3 for the cable coming in and J4 for the cable going on to the next layer, and a 3-pin header J5 for the layer's servo. Its job is to give this layer's servo its own signal, and to pass everything else on.

  • Power and ground pass straight through. The three power wires and the three ground wires on J3 are connected to the same ones on J4, so every layer gets the 6.5 V.
  • The first signal goes to the servo. Of the ten signals on J3, the first one is joined to the servo header J5, through a 0 Ω resistor, which is only a link that can be removed or swapped. A 10 kΩ resistor to ground keeps that wire at 0 V whenever nothing is driving it.
  • The other nine signals move up one place. They pass to J4, each one position earlier than it came in. So the second signal on the cable arrives at the next board as its first signal, and that board sends it to its own servo.
  • The end of the chain is held low. That shift leaves one empty place at the end of J4. A solder jumper, JP1, which is bridged, ties it to ground.
  • Capacitors smooth the power. A 100 µF, a 1 µF and a 100 nF capacitor sit across the 6.5 V, to smooth that supply.

Because every board passes on the signals shifted by one, all the boards are identical and need no setting. The first layer's servo always takes the first signal, the second layer's takes the second, and so on. It also means a board fed on J4 instead of J3 gets no signal, and every layer below it moves the wrong door. With ten signals on the cable, one chain of boards can serve up to ten layers.

The board has some extra pin headers that carry the same signals and power: two 10-pin ones, J1 and J2, which match J3 and J4, and two 4-pin ones, J6 and J7, for the power. The assembly pages use only J3, J4 and J5.