hrithik18k/rc-car-esc-xiao-20261025
A Seeed XIAO ESP32-C3 carrier board interfaces 3.3V PWM outputs to an ESC and steering servo, with 220Ω series/100kΩ pulldown resistors, SS14 5V BEC/USB isolation, and power filtering capacitors.
- Version
- 1.0.1
- License
- unset
- Stars
- 0
inspect-output.mjs
import fs from 'node:fs';
const j=JSON.parse(fs.readFileSync('dist/index/circuit.json','utf8'));
console.log(JSON.stringify({errors:j.filter(x=>x.type.endsWith('_error')), warnings:j.filter(x=>x.type.endsWith('_warning')), traces:j.filter(x=>x.type==='pcb_trace').map(x=>({id:x.pcb_trace_id,net:x.source_trace_id,minWidth:Math.min(...x.route.filter(p=>p.route_type==='wire').map(p=>p.width))})),counts:j.reduce((a,x)=>(a[x.type]=(a[x.type]||0)+1,a),{})},null,2));