jettos/powercore16-revc-complete-board-model
This code defines the hardware layout for a power distribution and control circuit featuring high-current power inputs, multiple output switches with programmable fuses, MCU-based control, input connectors, and communication interfaces, all represented with specific component footprints and connectivity zones.
- Version
- 0.4.8
- License
- unset
- Stars
- 0
src/components/InputChannel.tsx
export function InputChannel({ n, x, y }: { n: number, x: number, y: number }) {
return <>
<diode name={`D_IN${n}_TVS`} footprint="soic8_p1.27mm" pcbX={x - 7} pcbY={y} />
<resistor name={`R_IN${n}_SER`} resistance="22k" footprint="0603" pcbX={x} pcbY={y} />
<capacitor name={`C_IN${n}_RC`} capacitance="10nF" footprint="0603" pcbX={x + 5} pcbY={y} />
<resistor name={`R_IN${n}_PU_DNP`} resistance="DNP" footprint="0603" pcbX={x + 9} pcbY={y + 4} />
<resistor name={`R_IN${n}_PD_DNP`} resistance="DNP" footprint="0603" pcbX={x + 9} pcbY={y - 4} />
<testpoint name={`TP_IN${n}`} pcbX={x + 13} pcbY={y} />
<silkscreentext text={`IN${n} ${n <= 4 ? "pulse/freq" : "ADC/GPIO"}`} pcbX={x - 6} pcbY={y + 6} fontSize="0.6mm" />
<silkscreentext text={`MCU_IN${n}`} pcbX={x + 13} pcbY={y - 6} fontSize="0.6mm" />
</>
}