by John Lauer
Outdoor robot on two 16-inch hub servo motors with a mast camera that live streams over Wi-Fi, designed by a team of AI threads in Adom Hydrogen
← Commit history
boards/p1-motor-driver/README.mddeleted−64@@ -1,64 +0,0 @@-# P1 Motor Driver--A 48 V field-oriented-control (FOC) driver for one ZLTECH ZLLG16ASM800 16-inch hub motor. The [Hub Motor Robot](../../README.md) uses two identical boards, one per wheel; a strap in the harness tells each board whether it is the left or the right one.----**Status: work in progress.** The schematic is finished and passes KiCad's electrical rules check with 0 errors and 0 warnings. All 282 footprints are placed and the board is partly routed. The copper pours, the design rules check and the current and thermal analysis come after routing, so this board has not been ordered or built.--## What it does--| | |-|---|---|-| Motor | One ZLTECH ZLLG16ASM800 V2.0 hub servo motor: 48 V, 20 pole pairs, 7.5 A rms rated, 22 A peak |-| Bus | 39 to 54.6 V battery bus, designed for 60 V transients |-| Bridge | 6 x IRFS4310Z 100 V MOSFETs, switching at 20 kHz, with 1 milliohm shunts on all three phases |-| Gate driver | TI DRV8353S, SPI-configured, with its three current-sense amplifiers at gain 40 (35 A full scale) |-| Controller | STM32G474RET6, with a CAN-FD node (TCAN1462V) on the robot's bus |-| Feedback | The motor's 4096-line encoder through an AM26LV32 line receiver, plus the Hall sensors and the winding thermistor |-| Braking | A hardware brake chopper that works without the microcontroller: on at 56.76 V, off at 56.17 V, dumping regenerated energy into a resistor |-| Parking brake | A driver for the 24 V spring-applied brake, fed from the motor bus and gated by the enable line in hardware |-| Safety | A hardware ENABLE input from the safety board removes gate drive without firmware, and a FAULT output reports back |-| Logic power | LM5164 buck to 5 V at 573 kHz from the 12 V rail, then a 3.3 V regulator |-| Board | 104 x 72 mm, 4 layers, 1.6 mm, every part on the top side; Adom molecule machine contacts on the edges and machine pins in the four corners |--## Why a brake chopper--The motor makes about 0.262 V per rpm, so rolling downhill at 300 rpm it produces 79 V or more, well above a full 54.6 V pack. If the contactor is open, or the pack is full, that energy has nowhere to go and the bus voltage climbs. A TVS diode only absorbs a few joules, so the board has a comparator-driven chopper that switches a brake resistor across the bus. It is built from its own precision reference and 0.1 % dividers so its thresholds hold over temperature (worst case 55.21 to 57.69 V), and it does not depend on the microcontroller or the 12 V rail.--## Files--| File | What |-|---|---|-| [kicad/p1-motor-driver.kicad_sch](kicad/p1-motor-driver.kicad_sch) | Schematic (KiCad 10) |-| [kicad/p1-motor-driver.kicad_pcb](kicad/p1-motor-driver.kicad_pcb) | Board: placed, routing in progress |-| [kicad/p1-motor-driver.kicad_dru](kicad/p1-motor-driver.kicad_dru) | Design rules, including the 60 V spacing rules |-| [kicad/lib/pcm/](kicad/lib/pcm/) | The symbols and footprints for every part on the board |-| [images/schematic-full.png](images/schematic-full.png) | The schematic as a full-size image |-| [bom.csv](bom.csv) | Bill of materials: 68 part numbers with manufacturer, distributor part number and the stock seen on 2026-10-17 |-| [analysis/calcs.md](analysis/calcs.md) | The design calculations, each value citing its datasheet, ending in a pass/fail table of 56 checks, all passing |-| [analysis/pinmap-and-bringup.md](analysis/pinmap-and-bringup.md) | The microcontroller pin map and bring-up notes for the firmware author |--The 3D models of the parts are not in this folder; each part's model is on its component page, linked from the BOM. The calculations and the pin map refer to section numbers in the robot's interface spec, which is not published yet.--## Schematic--[](images/schematic-full.png)--## A few of the checks--These are from the pass/fail table in [analysis/calcs.md](analysis/calcs.md).--| Check | Value | Limit |-|---|---|---|-| TVS clamp voltage against the MOSFETs' 100 V rating | 96.8 V | 100 V |-| Chopper on, worst case over temperature | 57.69 V | 58.0 V |-| Chopper off, worst case over temperature | 55.21 V | above 55.0 V |-| Phase current per large machine contact at 30 A peak | 15.0 A | 20.8 A |-| Parking brake release at the 39 V pack minimum with a hot coil | 0.79 duty | 0.98 duty |-| Brake resistor temperature rise for 50 W over 21 s | 3.9 C | 20 C |-| Inductor peak current against its 3.0 A saturation | 0.67 A | 3.0 A |--## License--MIT