
Esc rev b
iamdarshg/drone-arm
Reworked cheaper, maybe faster but less redundant drone controller.

Reworked cheaper, maybe faster but less redundant drone controller.
Esc is an open-source printed circuit board by iamdarshg, from the iamdarshg/drone-arm repository on GitHub. It is a 4-layer board of 246 × 296 mm with 607 parts on 563 nets, routed with 5,286 tracks and 1,944 vias.
It is built around the STM32G431CBT6, RFM-0505S and DRV8353SRTAR, with the LM5164DDA, SN74LVC1G08DBVR and TPS70933DBVR-MS among its other parts. Its parts include 239 capacitors, 225 resistors, 39 ICs, 36 transistors and 20 connectors. It belongs with the robots and motor control boards and the RP2350 and STM32 boards of this library.
This is a codebase that is woring to create a hardware+software solution for dron control and management in a relatively modular manner. This is a codebase that is woring to create a hardware+software solution for dron control and management in a relatively modular manner. This needs to be inherenly zero-trust, zero-fail and easy to analyse statically. The langauge of choice is C, with rust and python tooling accepted as well.Follow the 10 rules as set by nasa for code, the same should apply here due to the similar no-fail environment. Currently, the main control board has been designed and the auxiallry field-oriented control esc needs to be designed. Ideally, as much of this code as possible should be library free and written entirely from scratch. If any libraries are used beyond standard c libararies, they should all be stored within this folder, nowehere else. Please add as much documentation as is needed, whenevr you refer to something just download and leave it in the docs folder. Please use the pico SDK exclusively as a library for C and/or write everything using reigster level functions. Build will occur via Meson & Ninja. This means we will be compiling the whole thing using the arm toolchain, against the headers and flash tables and such from the SDK. When debug is enabled in the meson build, we will output the assembly instead of the .uf2 file.
The ESC (Rev-B) is being optimized for the Flycci FA4119 KV350 (product page). The current prototype decision, alternatives, cost model, proposed 550 Kv rewind, selected 8x4.5 propeller and mandatory validation gates are documented in hardware/motor_release/FA4119_PROPULSION_DECISION.md.
eRPM = mech RPM x pole pairs (7). At 12S max (50.4 V):
| Winding | No-load RPM | No-load eRPM | Published or initially governed loaded eRPM |
|---|---|---|---|
| 350 kV (stock) | 17,640 | ~123 k | ~77-80 k with the manufacturer's 13-inch test prop |
| 550 kV (rewind) | 27,720 | ~194 k | initially <=91 k with the 8-inch prop (13,000 mechanical-rpm ceiling) |
280 k eRPM check: 280 k eRPM = 4.67 kHz electrical = 40,000 mechanical RPM at 7 pole pairs. This remains a possible future bare-rotor research point, not a propeller operating point. An 8-inch prop at 40,000 RPM has approximately 426 m/s rotational tip speed before pitch velocity and is unsuitable. The proposed 550 Kv winding reaches 194 k eRPM at fully charged 12S; initial propeller testing is capped at 13,000 mechanical RPM (91 k eRPM) pending a verified rating for the exact propeller.
This project uses Meson and Ninja for building.
arm-none-eabi-gcc)Create a build directory and configure the project:
meson setup buildTo enable Debug Mode (includes assembly output and -O0):
meson setup build -Ddebug=enabled The documented firmware targets are currently blocked: the tracked checkout is
missing source and include paths required by meson.build, and the ARM GNU
cross compiler is not available in the build environment. Do not treat this
checkout as producing flight or ESC firmware. See the
Issue #22 source and build audit
for the reproducible audit commands and recorded failures.
When the required source and toolchain are restored, the intended build command is:
ninja -C buildTo build and run the unit tests:
meson test -C buildCurrent tests include:
test_main: Scheduler and basic async operations.test_clock_safety: (New) Integrity protection for global clock state.
The main software will run as two non-synchronised loops- the sensor loop and the PWM loop. The one loop will run at the speed of the ESCs and will provide the best estimate for what the thrust should be at any given time to the ESCs, 60Hz if communicating via PWM and 1 kHz if communicating via SPI. This rate will be configurable. This loop may also be offloaded to the PIO modules in the future. The other loop is reponsible for sensor measuerment and fusion.| Qty | Value | Footprint | References |
|---|---|---|---|
| 66 | 100k | R_0603_1608Metric | R1102, R1104, R1106, R1108, R1110, R1112, R1150, R1151, R1152, R1154, R1158, R1202, R1204, R1206, R1208, R1210 +50 |
| 44 | 10u 100V | C_1210_3225Metric | C1106, C1131, C1132, C1133, C1134, C1135, C1136, C1206, C1231, C1232, C1233, C1234, C1235, C1236, C1306, C1331 +28 |
| 36 | 100n | C_0603_1608Metric | C1161, C1164, C1165, C1175, C1176, C1177, C1261, C1264, C1265, C1275, C1276, C1277, C1361, C1364, C1365, C1375 +20 |
| 36 | 2.2 | R_0603_1608Metric | R1101, R1103, R1105, R1107, R1109, R1111, R1201, R1203, R1205, R1207, R1209, R1211, R1301, R1303, R1305, R1307 +20 |
| 36 | IPTC014N10NM5 | PG-HDSOP-16_TOLT_IPTC | Q1101, Q1102, Q1103, Q1104, Q1105, Q1106, Q1201, Q1202, Q1203, Q1204, Q1205, Q1206, Q1301, Q1302, Q1303, Q1304 +20 |
| 30 | 100n | C_0402_1005Metric | C1167, C1168, C1169, C1170, C1172, C1267, C1268, C1269, C1270, C1272, C1367, C1368, C1369, C1370, C1372, C1467 +14 |
| 24 | 0.5m 1% 5W | CSS4J-4026_Kelvin | R1120, R1121, R1122, R1123, R1220, R1221, R1222, R1223, R1320, R1321, R1322, R1323, R1420, R1421, R1422, R1423 +8 |
| 24 | 10n C0G | C_0603_1608Metric | C1120, C1121, C1122, C1123, C1220, C1221, C1222, C1223, C1320, C1321, C1322, C1323, C1420, C1421, C1422, C1423 +8 |
| 24 | 150k 0.1% | R_1206_3216Metric | R1140, R1141, R1142, R1143, R1240, R1241, R1242, R1243, R1340, R1341, R1342, R1343, R1440, R1441, R1442, R1443 +8 |
| 24 | 47 | R_0603_1608Metric | R1130, R1131, R1132, R1133, R1230, R1231, R1232, R1233, R1330, R1331, R1332, R1333, R1430, R1431, R1432, R1433 +8 |
| 12 | 10k | R_0603_1608Metric | R1153, R1156, R1253, R1256, R1353, R1356, R1453, R1456, R1553, R1556, R1653, R1656 |
| 12 | 12p C0G | C_0402_1005Metric | C1173, C1174, C1273, C1274, C1373, C1374, C1473, C1474, C1573, C1574, C1673, C1674 |
| 12 | 1u 16V | C_0603_1608Metric | C1102, C1103, C1202, C1203, C1302, C1303, C1402, C1403, C1502, C1503, C1602, C1603 |
| 12 | 2.2u 10V | C_0603_1608Metric | C1162, C1163, C1262, C1263, C1362, C1363, C1462, C1463, C1562, C1563, C1662, C1663 |
| 8 | 1u | C_0603_1608Metric | C706, C707, C1171, C1271, C1371, C1471, C1571, C1671 |
| 8 | M4 | MountingHole_4.3mm_M4 | H1, H2, H3, H4, H5, H6, H7, H8 |
| 7 | SM8S51A | DO-218AB_SM8S | D701, D1101, D1201, D1301, D1401, D1501, D1601 |
| 6 | 100n 100V | C_0603_1608Metric | C1105, C1205, C1305, C1405, C1505, C1605 |
| 6 | 100n 10V | C_0603_1608Metric | C1107, C1207, C1307, C1407, C1507, C1607 |
| 6 | 10k 0.1% | R_0603_1608Metric | R1145, R1245, R1345, R1445, R1545, R1645 |
| 6 | 10n 50V | C_0603_1608Metric | C1150, C1250, C1350, C1450, C1550, C1650 |
| 6 | 10u 10V | C_0805_2012Metric | C1160, C1260, C1360, C1460, C1560, C1660 |
| 6 | 1k | R_0603_1608Metric | R1157, R1257, R1357, R1457, R1557, R1657 |
| 6 | 1u 10V | C_0603_1608Metric | C1104, C1204, C1304, C1404, C1504, C1604 |
| 6 | 33k 0.1% | R_0603_1608Metric | R1144, R1244, R1344, R1444, R1544, R1644 |
| 6 | 4.7k | R_0603_1608Metric | R1155, R1255, R1355, R1455, R1555, R1655 |
| 6 | 4.7u | C_0603_1608Metric | C1166, C1266, C1366, C1466, C1566, C1666 |
| 6 | 47n 100V | C_0603_1608Metric | C1101, C1201, C1301, C1401, C1501, C1601 |
| 6 | 600R@100MHz | L_0603_1608Metric | FB1101, FB1201, FB1301, FB1401, FB1501, FB1601 |
| 6 | 68k | R_0603_1608Metric | R1159, R1259, R1359, R1459, R1559, R1659 |
| 6 | 820u 100V | CP_Radial_D18.0mm_P7.50mm | C1130, C1230, C1330, C1430, C1530, C1630 |
| 6 | 8MHz ABM8G | Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1101, Y1201, Y1301, Y1401, Y1501, Y1601 |
| 6 | DRV8353SRTAR | WQFN-40-EP_6x6_P0.5 | U1101, U1201, U1301, U1401, U1501, U1601 |
| 6 | FUSED_BATTERY_TAP | POWER_LUG_M5_2P_P20 | J1101, J1201, J1301, J1401, J1501, J1601 |
| 6 | GREEN | LED_0603_1608Metric | D1102, D1202, D1302, D1402, D1502, D1602 |
| 6 | INA296A2IDR | SOIC-8_3.9x4.9mm_P1.27mm | U1105, U1205, U1305, U1405, U1505, U1605 |
| 6 | ISO6731FDWR | SOIC-16W_7.5x10.3mm_P1.27mm | U1103, U1203, U1303, U1403, U1503, U1603 |
| 6 | LOCAL_SWD | PinHeader_1x05_P1.27mm_Vertical | J1103, J1203, J1303, J1403, J1503, J1603 |
| 6 | MOTOR_PHASES | POWER_LUG_M5_3P_P20 | J1102, J1202, J1302, J1402, J1502, J1602 |
| 6 | NTCG163JF103FT1 | R_0603_1608Metric | TH1, TH2, TH3, TH4, TH5, TH6 |
| 6 | RFM-0505S | RFM_SIP4_11.5x6_P2.54 | PS1101, PS1201, PS1301, PS1401, PS1501, PS1601 |
| 6 | SN74LVC1G08DBVR | SOT-23-5 | U1106, U1206, U1306, U1406, U1506, U1606 |
| 6 | STM32G431CBT6 | LQFP-48_7x7mm_P0.5mm | U1102, U1202, U1302, U1402, U1502, U1602 |
| 6 | TPS70933DBVR | SOT-23-5 | U1104, U1204, U1304, U1404, U1504, U1604 |
| 4 | 22u 10V | C_1210_3225Metric | C704, C705, C713, C714 |
| 3 | 2.2u 100V X7R | C_1210_3225Metric | C700, C701, C710 |
| 2 | 14.3k 1% | R_0603_1608Metric | R703, R712 |
| 2 | 2.2n 50V X7R | C_0603_1608Metric | C703, C712 |
| 2 | 226k 1% | R_0603_1608Metric | R705, R713 |
| 2 | 3.3n X7R | C_0603_1608Metric | C708, C715 |
| 2 | 33u 1.8A | L_Bourns_SRR1260 | L701, L702 |
| 2 | 41.2k 1% | R_0603_1608Metric | R701, R710 |
| 2 | 45.3k 1% | R_0603_1608Metric | R702, R711 |
| 2 | 470p C0G | C_0603_1608Metric | C709, C716 |
| 2 | LM5164DDA | HSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.1mm_ThermalVias | U701, U703 |
| 1 | 0 STAR | R_1206_3216Metric | R704 |
| 1 | AP2112K-3.3TRG1 | SOT-23-5 | U702 |
| 1 | AUX_BATTERY | Molex_Micro-Fit_3.0_43650-0200_1x02_P3.00mm_Horizontal | J701 |
| 1 | FLIGHT_CAN_POWER | JST_GH_SM04B-GHS-TB_1x04-1MP_P1.25mm_Horizontal | J702 |
| 1 | PTC 0.75A | Fuse_1206_3216Metric | F701 |

iamdarshg/drone-arm
Reworked cheaper, maybe faster but less redundant drone controller.

iamdarshg/drone-arm
Reworked cheaper, maybe faster but less redundant drone controller.

iamdarshg/drone-arm
Reworked cheaper, maybe faster but less redundant drone controller.

xmyoot/custom-round-pcb-led-flash
Custom circular ring PCB LED flash controller prototype


AndrewCraswell/agency
Native KiCad engineering prototype, separate from the earlier ESP32/tscircuit board. Open usb-scoring-platform.kicadpro in KiCad 10; schematic and PCB are the editable source, with no generator required.

Bruhdows/klink
Klink is a magnetic tile system for building programmable machines. First up: a marble run with sensors, buttons, lights, gates, splitters and an elevator.


darshp848/bldc-controller-60v
60 V, 20 A / 80 A peak BLDC motor controller that fits the MD80 v3.0 mounting. KiCad 10, 6 layers.

ishaansalian/dash-motor-controller
Motor control PCB for the Dash humanoid robot project.

JamesGossy/STM32-Brushless-Motor-Controller
Design and firmware for a high-performance STM32G474 brushless motor controller using field-oriented control and the DRV8353S gate driver.
It measures 246 × 296 mm and has 4 copper layers, 1.6 mm thick.
607 parts, built around the STM32G431CBT6, RFM-0505S, DRV8353SRTAR and LM5164DDA. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the iamdarshg/drone-arm repository on GitHub, at the commit this page was made from: the board is hardware/esc/esc/esc.kicad_pcb and its schematic hardware/esc/esc/bec.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask iamdarshg before reusing the design.