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/OnOffSection.tsx
import { pcbPlacement } from "../board/PcbPlacement"
import { K3_1280S_F1 } from "../imports/K3_1280S_F1"
const section = "On/Off Circuit"
export const OnOffSection = () => (
<>
<schematicsection name={section} />
<K3_1280S_F1
name="SW1"
schSectionName={section}
{...pcbPlacement("SW1")}
/>
<resistor
name="R2"
resistance="100k"
footprint="0603"
schSectionName={section}
{...pcbPlacement("R2")}
/>
<trace from="net.VBUS" to=".R2 > .pin1" />
<trace from=".R2 > .pin2" to="net.LDO_H" />
<trace from=".SW1 > .pin3" to="net.LDO_H" />
<trace from=".SW1 > .pin2" to="net.LDO_EN" />
<trace from=".SW1 > .pin1" to="net.GND" />
</>
)
export default () => (
<board
routingDisabled
schAutoLayoutEnabled
schTraceAutoLabelEnabled
schMaxTraceDistance="8mm"
>
<OnOffSection />
</board>
)