shibosoftwaredev/f1c100s-linux-nema17-stepper-controller
A four-layer NEMA 17 motor-controller PCB combining an Allwinner F1C100S Linux computer, USB‑PD/buck power system, W5500 Ethernet, STM32 real-time motion control, DRV8825 stepper driver, protection/temperature/current telemetry, USB interfaces, and local LED/buzzer diagnostics.
- Version
- 0.4.56
- License
- unset
- Stars
- 0
scripts/prepare-round9-cap-site-scan.mjs
import fs from "node:fs"
const read=p=>JSON.parse(fs.readFileSync(p,"utf8"))
const placed=read("dist/index/circuit.json")
const routed=read("reports/round9-pd-accepted.circuit.json")
const c=[...placed.filter(e=>!["pcb_trace","pcb_via","pcb_copper_pour"].includes(e.type)),
...routed.filter(e=>["pcb_trace","pcb_via"].includes(e.type))]
fs.writeFileSync("reports/round9-cap-site-scan-input.circuit.json",JSON.stringify(c,null,2)+"\n")
console.log(JSON.stringify({diagnosticOnly:true,placementErrors:placed.filter(e=>e.type.endsWith("_error"))}))