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/InputConnectors.tsx
const inputConnectors = [
["J_IN_A", -36, 1, "DTM 12-pin: IN1-IN8 + 5V_SENSOR_A_PROTECTED/SENSOR_GND_A"],
["J_IN_B", 36, 9, "DTM 12-pin: IN9-IN16 + 5V_SENSOR_B_PROTECTED/SENSOR_GND_B/wake"],
] as const
export function InputConnectors() {
return <>
{inputConnectors.map(([name, x, start, label]) => <>
<chip name={name} footprint="soic8_p1.27mm" pcbX={x} pcbY={-68} />
<silkscreentext text={`${name} ${label}`} pcbX={x} pcbY={-58} fontSize="0.8mm" />
<silkscreentext text="PIN 1" pcbX={x - 16} pcbY={-73} fontSize="0.7mm" />
{Array.from({ length: 8 }, (_, i) => <silkscreentext text={`${i + 1} IN${start + i}`} pcbX={x - 15} pcbY={-74 + i * 3} fontSize="0.62mm" />)}
<silkscreentext text={name === "J_IN_A" ? "9 5V_SENSOR_A_PROTECTED 10-11 SENSOR_GND_A 12 SPARE_INPUT_A" : "9 5V_SENSOR_B_PROTECTED 10 SENSOR_GND_B 11 AUX_WAKE 12 SPARE_INPUT_B"} pcbX={x - 8} pcbY={-46} fontSize="0.62mm" />
</>)}
</>
}