Robotics Board

First power-on and bring-up

Check out a newly assembled Robotics Board in stages, from an unpowered inspection to a battery soak. Do not start a stage until the previous one passes, and record every measured value.

Board v0.8Bench supply, multimeter, scopeExpected values are from the design
Safety rules for every stage
  • Use a current-limited bench supply until stage 7. Connect a LiPo only after stages 1–6 pass.
  • The E-stop (J10) cuts the motor drivers and VMOT. It does not cut the battery or the servo rail. Keep a physical battery disconnect within reach from the first motor test on.
  • Wheels stay off the ground and knees unloaded until stage 7.
  • Never power the Duo S from its USB-C port while the board also powers it.
  • Discharge C1 (220 µF) before reworking the board.

The full procedure, with every measurement and the qualification record, is hardware/BRINGUP.md in the repository. This page follows the same stages. Where a measurement disagrees with a design value here, trust the measurement and find the cause.

Stage 0 · Unpowered inspection

  1. Polarity and orientationUnder magnification, check the electrolytics C1, C17 and C18; diodes D1–D3, D5, D6 and the TVS D2 (band on VBUS); LEDs D4, D7, D8 and D16; D15 (band on VBUS_EXT); Q1–Q3; and the pin-1 mark of every IC, including U15, U16 and U17.
  2. Solder bridgesOn the 0.5 mm pitch parts (U4, U6, U7, U10, U14, U12's small pins) and the 0.65 mm parts (U3, U13, U8, U9).
  3. Exposed padsU8 and U9 (DRV8313), U11 (TPS54560), U16's PowerPAD and U12's PGND, VIN and SW pads must be soldered. Use X-ray if you can; otherwise watch for abnormal heating in stages 2 and 5.
  4. Resistance to GNDEach rail should read a value that rises as the capacitors charge, never a steady near-0 Ω: VBUS at C1 +, VMOT at C40 or C46, +5V at C3, VSERVO at J20 pin 2, +3V3 at C5, +1V8 at C6.
  5. Connector polarityJ1 (XT30): pin 2 +, pin 1 −, marked on the silkscreen. Check it against your battery lead with a meter. J24 and J25 likewise: pin 2 +.
  6. JP1On the bottom side, the factory bridge must join pads 1–2: J24 follows the E-stop, the safe default.

Stage 1 · First power, board only

No Duo S, motors, servos, sensor cables or E-stop. Supply on J1 at 12.0 V with a 100 mA limit, raised slowly from 0 V. The 5 V buck starts at about 6.5 V and the 6 V buck at about 7.4 V. At 12 V the supply should settle at a few mA to a few tens of mA; if it sits in current limit, switch off and look for a short.

RailExpectedWhere
VBUSSupply voltage, minus a small drop across F1 and Q1C1 +, TP5
VMOT0 V: the latch is held clear at startup; arming is explicitC40, TP6
+5V5.32 VC3, TP8
VSERVO6.00 VJ20 pin 2, TP7
+3V3 / +1V83.3 V / 1.8 VC5 / C6

Green D4 is lit; yellow D7 (EN) and red D8 (FLT) are dark. With nothing driving them, MOT_EN (TP2), WDT_OK (TP1) and ESTOP_RUN (TP9) read low and DRV_NFAULT (TP10) reads 3.3 V. With a jumper or NC switch on J10, ESTOP_OK reads about 3.0 V. Repeat at 16.8 V (a full 4S pack): nothing may change.

Stage 2 · Rail load test

Still no Duo S. Load +5V to 1.5 A, then VSERVO to 4 A, then both, with the supply limit raised to 6 A. Each rail must stay within ±3 %, and the switch nodes must show no oscillation beyond light-load PFM. Step VSERVO to 7 A for a few seconds (two stalled servos). After 5 minutes, check U11, U12, D5, L1 and L2: stop if any part rises more than about 40 °C above ambient.

Stage 3 · Safety chain without the Duo S

Inject the Duo S signals into the empty sockets with header pins. J9 is the 1.8 V header: use 1.8 V logic there. J8 is 3.3 V.

SignalSocket pinLogic
WDT_KICKJ9-20 (Duo J4-46)1.8 V
ESTOP_ARMJ9-10 (J4-36)1.8 V
DRV_NSLEEP / DRV_NRESETJ9-13 / J9-151.8 V
MOT_EN_REQJ8-12 (Duo J3-12)3.3 V
GNDJ8-6, J9-5
  1. Startup clearWith the loop closed before power-up, VMOT stays off with no firmware. An ARM edge with MOT_EN_REQ low leaves ESTOP_RUN and VMOT at 0 V.
  2. ArmMOT_EN_REQ high, one rising ESTOP_ARM edge: ESTOP_RUN goes high and VMOT ramps to VBUS in under 1 ms.
  3. WatchdogWithout kicks, MOT_EN stays low. A 200 Hz, 1.8 V square wave on WDT_KICK brings WDT_OK and MOT_EN high and lights D7. Stop it at either level: MOT_EN drops after about 10 ms. Record that delay.
  4. E-stopOpen the loop while kicking: MOT_EN drops at once and Q2's gate turns off in about 2 ms. Record VMOT's decay.
  5. No re-armClose the loop again, bounce it: nothing re-enables until a new ARM edge with MOT_EN_REQ high. Unplugging J10 must also drop everything.
Gate

Do not continue to the motor stages until every row of stage 3 passes.

Stage 3b · Accessory outputs

With the latch clear, J24 reads 0 V and J25 about 5.3 V. Arm the latch: J24 rises to VBUS with a 1 V/ms soft start, and +5V must not dip. Check the J24 current limit (2.33–2.68 A, auto-retry), over-voltage shutdown near 20.1 V (never above 22 V), and the J25 limit (475–565 mA) and back-feed blocking. D16 lights on every fault.

Stage 4 · Duo S installed

Check the mechanical fit first: RJ45 and USB-A in the notch, the USB-C plug and cable bend under the lower extension, and the boot switch, recovery button and microSD slot reachable. Fit the Duo S on its four M2.5 standoffs. Power at 12 V with a 1 A limit; VSYS should stay near 4.9–5.0 V while Linux boots. Log in as in First steps.

For bring-up only, enable I²C4 and SPI3 in a Linux test device tree. With no display on J23, an I²C scan shows:

AddressDeviceIdentity check
0x48ADS1115 rail monitorRead the config register, then the four channels below
0x68BMI323 IMURegister 0x00, after the two dummy bytes: low byte 0x43

Read the ADS1115 at ±2.048 V full scale: volts = code × 2.048 / 32768 × gain. Compare each value with your meter.

InputRailGainAt the input, nominal rail
AIN0VBUS11.0about 1.09 V at 12 V
AIN1VSERVO5.7about 1.05 V
AIN2+5V5.7about 0.93 V
AIN3VMOT11.00 V with the E-stop open; about 1.09 V at 12 V when armed

The BMI323 powers up with both sensors off. A starting configuration (16-bit registers, low byte first):

RegisterValueMeaning
ACC_CONF 0x200x709BHigh performance, ±4 g, 800 Hz
GYR_CONF 0x210x70CBHigh performance, ±2000 °/s, 800 Hz
IO_INT_CTRL 0x380x0005INT1 on, push-pull, active high
INT_CONF 0x390x0000Not latched: a short pulse per sample
INT_MAP2 0x3B0x0100Gyro data-ready to INT1

Read them back and check ERR_REG (0x01) is 0. With the board flat, about +1 g appears on the axis pointing up, and INT1 (J8-16) pulses at 800 Hz.

Stage 5 · One driver, one motor

One GM4108H on J2 with its AS5048A on J15, wheel lifted, supply at 12 V with a 0.5 A limit.

  1. Rotor sensorSPI3 mode 1, 16-bit frames, 1 MHz first. Read DIAG (0x7FFD, then any frame): OCF set, COF and COMP clear. Then 0xFFFF frames must pass parity and change smoothly through a full turn. Raise to the 2–4 MHz you will run, with all four cables attached; the error count must stay at zero.
  2. Wake the driversArm the latch as in stage 3, set nSLEEP high, wait, then nRESET high. DRV_NFAULT stays high and D8 dark.
  3. Commission FOCCheck the phase order (positive uq must increase counts; swap two phases if not), align and record zero_electrical_angle, measure phase resistance and back-EMF, and only then raise current_limit toward 1.5 A.
  4. FaultsWatch the DRV8313 temperature and D8. After an over-current latch, pulse nRESET low while disarmed: a latched driver ignores EN.
  5. Second motorRepeat on J3 with its sensor on J16.

Stage 6 · Hip servos and knee sensors

One DS3240 on J20 or J21, its knee AS5048A on J17 (left) or J18 (right), the leg free to move. Check the knee sensor as in stage 5; with all four sensors connected, each chip select must give clean frames. Start the servo at mid pulse and sweep slowly: the knee angle must follow monotonically with DIAG good across the whole travel. Watch VSERVO on the scope during fast moves, and calibrate knee_zero, knee_sign and the servo map against the measured knee angle.

Stage 7 · Battery and thermal soak

Expect a spark at the first battery connection: use an anti-spark lead, a pre-charge resistor or a battery switch closed last. Run both motors at a moderate held torque with both servos holding a crouch for 10 minutes. Log VBUS, VMOT, VSERVO and +5V, and check the DRV8313s, the bucks, D5, Q1, Q2 and F1. Capture peak VBUS and VMOT during deceleration and E-stop. Only then does the robot go on the floor.

Done

A board that passes stage 7 is ready for assembly into the robot and supervised balancing.