mohan-bee/drone
This code defines the physical hardware layout and component placements for a drone's circuit board, including outlines, cutouts, and detailed PCB footprints for various electronic components like microcontrollers, sensors, connectors, and passive devices.
- Version
- 1.0.11
- License
- unset
- Stars
- 0
sections/DebugLedsSection.tsx
import { pcbPlacement } from "../board/PcbPlacement"
const fp0603 = "0603"
const section = "Debug LEDs"
export const DebugLedsSection = () => (
<>
<schematicsection name={section} />
<led name="LED4" color="blue" footprint={fp0603} schSectionName={section} {...pcbPlacement("LED4")} />
<led name="LED5" color="red" footprint={fp0603} schSectionName={section} {...pcbPlacement("LED5")} />
<led name="LED6" color="green" footprint={fp0603} schSectionName={section} {...pcbPlacement("LED6")} />
<resistor name="R15" resistance="1k" footprint={fp0603} schSectionName={section} {...pcbPlacement("R15")} />
<resistor name="R16" resistance="1k" footprint={fp0603} schSectionName={section} {...pcbPlacement("R16")} />
<resistor name="R17" resistance="1k" footprint={fp0603} schSectionName={section} {...pcbPlacement("R17")} />
<trace from="net.LED_1" to=".LED4 > .cathode" /><trace from=".LED4 > .anode" to=".R15 > .pin2" /><trace from=".R15 > .pin1" to="net.GND" />
<trace from="net.LED_2" to=".LED5 > .cathode" /><trace from=".LED5 > .anode" to=".R16 > .pin2" /><trace from=".R16 > .pin1" to="net.GND" />
<trace from="net.LED_3" to=".LED6 > .cathode" /><trace from=".LED6 > .anode" to=".R17 > .pin2" /><trace from=".R17 > .pin1" to="net.GND" />
</>
)
export default () => (
<board routingDisabled schAutoLayoutEnabled schTraceAutoLabelEnabled schMaxTraceDistance="8mm">
<DebugLedsSection />
</board>
)