Robotics Board

Robotics Board v0.8

A carrier board for the Milk-V Duo S that connects every robot device to the SG2000's C906 RISC-V core. The motor drivers, power conversion, IMU and safety chain are all on board; motors, sensors and servos plug in by cable.

Frozen 2026-11-114 layers · 100 × 66 mm219 partsBench qualification pending
Top side of the Robotics Board v0.8 with connector labels
Top side. The Duo S sits under the left 45 mm, its RJ45 and USB-A in the notch. Power entry is on the right edge, motor and servo connectors along the bottom.

At a glance

Host
Milk-V Duo SSG2000: A53 Linux + C906 RTOS
Input
4S LiPo, 12–16.8 VXT30, 10 A fuse, reverse protection
Wheel drivers
2 × DRV83133-phase, from the switched VMOT
Logic rail
5.32 V / 5 ATPS54560 buck → Duo S VSYS
Servo rail
6.0 V / 8 ALM61480 synchronous buck
IMU
Bosch BMI323I²C4, data-ready interrupt
Angle sensors
4 × SPI portsAS5048A, 14-bit, own chip selects
Safety
Latched E-stop+ 10 ms watchdog, cuts VMOT

Architecture

There is no external microcontroller. The SG2000's C906 little core runs FreeRTOS: FOC for both wheels in a 10 kHz fast interrupt, the 400 Hz balance loop and the hip servos. Linux on the Cortex-A53 runs ROS 2 and talks to it through shared memory. The board routes every real-time signal to pins the C906 can own.

FunctionPartInterface
Wheel motors2 × iPower GM4108H-120T (11 pole pairs, 11.1 Ω)Phases on J2 (L) / J3 (R)
Wheel drivers2 × TI DRV8313 (U8 L, U9 R)3 PWM each, shared EN, nSLEEP, nRESET, wired-OR nFAULT
Rotor angleAS5048A board shipped on each GM4108HSPI 1 (J15), SPI 2 (J16)
Knee angleAS5048A board on each knee axisSPI 3 (J17), SPI 4 (J18)
Hip servos2 × DSSERVO DS3240 (40 kg·cm)J20 / J21, 50–330 Hz PWM, 6 V
IMUBosch BMI323 (U10, 0x68)I²C4 through a PCA9306, INT1 data-ready
Rail monitorTI ADS1115 (0x48)I²C4: VBUS, VSERVO, +5 V, VMOT
Accessory powerTPS16630 eFuse, TPS2553 switchJ24 battery out (2.5 A), J25 5 V out (0.5 A)
ExpansionOptional 3.3 V I²C displayJ23
DebugLinux console, UART0J22

The right wheel runs on PWM controller 0 (3.3 V header J3) and the left wheel on controller 2 (1.8 V header J4, through a level translator), so each wheel's three phases update together. All four angle sensors share SPI3.

Connectors and pinouts

Pin 1 is marked on the silkscreen. Check every cable with a meter before first power-on: JST-SH and JST-XH leads are easy to build mirrored.

J1 · Battery in

XT30 male (XT30UPB-M), vertical. 12–16.8 V.

1− GND2+ BAT

J2 / J3 · Motor phases

JST-XH 2.5 mm, 3 pins. Left / right wheel.

1U2V3W

J15–J18 · SPI 1–4

JST-SH 1.0 mm, 6 pins, 3.3 V. Rotor L, rotor R, knee L, knee R (labels).

13V32GND3SCK4MISO5MOSI6CS

J20 / J21 · Servos

2.54 mm header, 3 pins, 6 V rail. Left / right hip.

1PWM26 V3GND

J10 · E-stop loop

JST-SH, 2 pins. A normally-closed switch between them.

1SUPPLY2ESTOP_OK

J22 · Debug UART0

JST-SH, 3 pins, 3.3 V logic, no power.

1GND2Duo TX3Duo RX

J23 · I²C display

JST-SH, 4 pins. 3.3 V devices only; shares the IMU bus.

1GND23V33SDA4SCL

J24 · Accessory battery out

XT30 female. 2.5 A limit, off while the E-stop is open.

1− GND2+ VBUS

J25 · Accessory 5 V out

JST-PH 2 pins. 0.5 A, logic power only.

1− GND2+ 5 V

Angle-sensor ports

All four ports are on one SPI3 bus with a chip select each. Depending on the production batch, a v0.8 board's silkscreen shows either the original names or SPI 1–4. The wiring is identical.

ConnectorOriginal labelNewer labelSensorChip select
J15ROTOR LSPI 1Left wheel motor AS5048AB16 (SPI3_CS)
J16ROTOR RSPI 2Right wheel motor AS5048AB18
J17KNEE LSPI 3Left knee AS5048AB22
J18KNEE RSPI 4Right knee AS5048AB21

J8 and J9 are 2 × 13 sockets on the bottom side that take the Duo S's J3 (3.3 V) and J4 (1.8 V) headers. The board sits about 11 mm above the Duo S on four M2.5 standoffs. Two M3 holes on the right edge (H1, H2) fix the stack to the chassis.

Power

RailSourcePeak loadNotes
VBUS 12–16.8 V4S pack, 10 A NANO2 fuse, AOD4185 PMOS≈ 8 A (≈ 10 A with J24 at its limit)SMBJ20A TVS, 220 µF bulk
VMOTVBUS through Q2, on only while the E-stop latch is set≈ 3 A, both motorsSoft ramp, about 30 V/ms
VSERVO 6.0 VLM61480 buck, 8 A2 × 3.5 A stallA double stall is fine for seconds, not continuously
+5V 5.32 VTPS54560 buck, 5 A≈ 1.2 A + J25Feeds Duo S VSYS through a Schottky, about 4.9–5.0 V
+3V3AP2112K-3.3≈ 90 mASensors, IMU, ADC, logic
+1V8AP2112K-1.8< 5 mALevel-translator references
Plugging in the battery

About 260 µF of input capacitance charges through Q1's body diode when the pack is connected, so expect a spark at the XT30. Use an anti-spark lead, a 10 Ω pre-charge resistor bridged out after a second, or a battery switch that is closed last. The E-stop cuts motor power, not the battery: fit a physical battery disconnect as well.

Torque budget. The GM4108H is a direct-drive gimbal motor. With the firmware's 1.5 A current clamp, expect about 0.15 N·m per wheel. With the robot's 84.8 mm wheels that is enough to recover from a lean of roughly 20°, not for fast get-ups: keep the robot light. There is no current sensing; torque is set through a motor model, so measure R, Ke and the zero electrical angle on every motor.

Safety chain

Motor enable is decided in hardware, independently of software:

MOT_EN = MOT_EN_REQ  AND  WDT_OK  AND  ESTOP_RUN     # 74LVC1G11 → both DRV8313 EN pins
  • Watchdog (WDT_OK). A 74LVC1G123 retriggerable one-shot of about 10 ms. The C906 toggles WDT_KICK on every 400 Hz balance tick. It triggers on edges, so a hung core holding the pin high or low drops EN within about 10 ms.
  • E-stop latch (ESTOP_RUN). A 74AUP1G74 flip-flop. Opening the normally-closed loop on J10, or unplugging it, clears the latch at once: EN drops and Q2 cuts VMOT within about 2 ms. A bouncing switch cannot set it again. Only a rising ESTOP_ARM edge from firmware, with MOT_EN_REQ high and the loop closed, re-arms it.
  • Safe at power-up. A supervisor (U15) holds the latch clear through startup and brownouts, and every control line has a pull-down. The drivers stay asleep and disabled while Linux boots.
  • Accessory output. J24 follows the E-stop latch by default (jumper JP1, pads 1–2). Moving it to 2–3 keeps J24 on whenever the board is powered: do that only deliberately.
  • The servo rail is not cut by the E-stop, because cutting knee power would drop the robot. The servo-hold policy on faults is a firmware decision.

Status LEDs and test points

IndicatorMeaning
D4, greenBoard powered
D7, yellow, ENMOT_EN high: the motors are enabled
D8, red, FLTA DRV8313 is reporting a fault (nFAULT low)
D16, red, FLT VBUSJ24 or J25 fault: overload, over-temperature, over/under-voltage or back-feed
Test pointNetTest pointNet
TP1WDT_OKTP2MOT_EN
TP3, TP4, TP11GNDTP5VBUS
TP6VMOTTP7VSERVO
TP8+5VTP9ESTOP_RUN
TP10DRV_NFAULT

Reference documents

Bottom side of the Robotics Board v0.8
Bottom side: J8/J9 Duo S sockets, buck feedback parts, cable ESD arrays, bulk capacitors and the JP1 jumper.