gokul/six-digit-logic-clock
This code defines the physical layout and schematic connections for a multi-layer PCB featuring components like RTC modules (DS3231MZ), microcontroller (ATMEGA328P), LED display driver (MAX7219), and various passive and discrete components, with detailed footprints, pinouts, and placement for a clock and control interface.
- Version
- 0.1.2
- License
- unset
- Stars
- 0
imports/c2941005.tsx
import type { SwitchProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"],
pin5: ["pin5"],
pin6: ["pin6"]
} as const
type YTSPS22E58LMProps = SwitchProps & {
noConnect?: string[]
}
export const YTSPS_22E58LM = (props: YTSPS22E58LMProps) => {
const { name = "SW1", ...restProps } = props
return (
<switch
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C2941005"
]
}}
manufacturerPartNumber="YTSPS-22E58LM"
footprint={<footprint>
<smtpad portHints={["pin4"]} pcbX="3.325114mm" pcbY="1.999996mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="3.325114mm" pcbY="0mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="3.325114mm" pcbY="-1.999996mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-3.325114mm" pcbY="-1.999996mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-3.325114mm" pcbY="0mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-3.325114mm" pcbY="1.999996mm" width="2.350008mm" height="0.999998mm" shape="rect" />
<silkscreenpath route={[{"x":1.2696190000000342,"y":-1.651076200000034},{"x":1.2696190000000342,"y":-1.7780761999999868},{"x":-1.2703809999999294,"y":-1.7780761999999868},{"x":-1.2703809999999294,"y":1.7779237999999395},{"x":1.2696190000000342,"y":1.7779237999999395},{"x":1.2696190000000342,"y":-1.7780761999999868}]} />
<silkscreenpath route={[{"x":0.761618999999996,"y":-1.2700762000000623},{"x":-0.7623809999998912,"y":-1.2700762000000623},{"x":-0.7623809999998912,"y":0.6349238000000241},{"x":0.761618999999996,"y":0.6349238000000241},{"x":0.761618999999996,"y":-1.2700762000000623}]} />
<silkscreenpath route={[{"x":0.761618999999996,"y":1.7779237999999395},{"x":0.761618999999996,"y":1.269923800000015},{"x":-0.7623809999998912,"y":1.269923800000015},{"x":-0.7623809999998912,"y":1.7779237999999395}]} />
<silkscreenpath route={[{"x":-2.8999941999999237,"y":-2.8999942000000374},{"x":2.8999942000000374,"y":-2.8999942000000374}]} />
<silkscreenpath route={[{"x":-2.8999941999999237,"y":2.8999942000000374},{"x":2.8999942000000374,"y":2.8999942000000374}]} />
<silkscreenpath route={[{"x":-0.7261605999998437,"y":-1.8159222000000454},{"x":-0.5734337355729622,"y":-2.0168676215412233},{"x":-0.3671285024388453,"y":-2.162272945850873},{"x":-0.1265310973500391,"y":-2.23854513095489},{"x":0.12586652046365998,"y":-2.2385539633038434},{"x":0.36646926306889327,"y":-2.162298617216038},{"x":0.5727846722639924,"y":-2.0169077320658744},{"x":0.7255256000001964,"y":-1.8159729999999854}]} />
<silkscreenpath route={[{"x":-0.7261605999998437,"y":1.815744400000085},{"x":-0.5734337355729622,"y":2.0166898215411493},{"x":-0.3671285024388453,"y":2.162095145850685},{"x":-0.1265310973500391,"y":2.2383673309548158},{"x":0.12586652046365998,"y":2.2383761633036556},{"x":0.36646926306889327,"y":2.162120817215964},{"x":0.5727846722638787,"y":2.0167299320658003},{"x":0.7255256000000827,"y":1.8157951999999113}]} />
<silkscreencircle pcbX="-3.683mm" pcbY="3.175mm" radius="0.254mm" />
<silkscreentext text="{NAME}" pcbX="0.002286mm" pcbY="4.422396mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":0.6348222000000305,"y":1.904949199999919},{"x":-0.6351777999999513,"y":1.904949199999919},{"x":-0.6351777999999513,"y":1.6509491999999},{"x":0.6348222000000305,"y":1.6509491999999},{"x":0.6348222000000305,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":0.6348222000000305,"y":1.1429491999998618},{"x":-0.6351777999999513,"y":1.1429491999998618},{"x":-0.6351777999999513,"y":1.3969491999998809},{"x":0.6348222000000305,"y":1.3969491999998809},{"x":0.6348222000000305,"y":1.1429491999998618}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":0.8888222000000496,"y":1.7779491999998527},{"x":0.8888222000000496,"y":1.1429491999998618},{"x":0.6348222000000305,"y":1.1429491999998618},{"x":0.6348222000000305,"y":1.904949199999919},{"x":0.8888222000000496,"y":1.904949199999919},{"x":0.8888222000000496,"y":1.7779491999998527}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.8891777999999704,"y":1.904949199999919},{"x":-0.8891777999999704,"y":1.1429491999998618},{"x":-0.6351777999999513,"y":1.1429491999998618},{"x":-0.6351777999999513,"y":1.904949199999919},{"x":-0.8891777999999704,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-1.1431777999999895,"y":1.904949199999919},{"x":-0.8891777999999704,"y":1.904949199999919},{"x":-0.8891777999999704,"y":1.6509491999999},{"x":-1.1431777999999895,"y":1.6509491999999},{"x":-1.1431777999999895,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.142822199999955,"y":1.904949199999919},{"x":0.8888222000000496,"y":1.904949199999919},{"x":0.8888222000000496,"y":1.6509491999999},{"x":1.142822199999955,"y":1.6509491999999},{"x":1.142822199999955,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.142822199999955,"y":-1.90505080000014},{"x":-1.1431777999999895,"y":-1.90505080000014},{"x":-1.1431777999999895,"y":-1.651050800000121},{"x":1.142822199999955,"y":-1.651050800000121},{"x":1.142822199999955,"y":-1.90505080000014}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-1.3971778000000086,"y":1.904949199999919},{"x":-1.3971778000000086,"y":-1.90505080000014},{"x":-1.1431777999999895,"y":-1.90505080000014},{"x":-1.1431777999999895,"y":1.904949199999919},{"x":-1.3971778000000086,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.3968221999999741,"y":1.904949199999919},{"x":1.3968221999999741,"y":-1.90505080000014},{"x":1.142822199999955,"y":-1.90505080000014},{"x":1.142822199999955,"y":1.904949199999919},{"x":1.3968221999999741,"y":1.904949199999919}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-4.000525400000015,"y":1.77800000000002},{"x":-4.000525400000015,"y":2.286000000000058},{"x":-4.127525399999968,"y":2.286000000000058},{"x":-4.127525399999968,"y":1.77800000000002},{"x":-4.000525400000015,"y":1.77800000000002}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-4.127525399999968,"y":2.286000000000058},{"x":-4.25452539999992,"y":2.286000000000058},{"x":-4.25452539999992,"y":2.158999999999992},{"x":-4.127525399999968,"y":2.158999999999992},{"x":-4.127525399999968,"y":2.286000000000058}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-4.25452539999992,"y":1.77800000000002},{"x":-3.8735253999999486,"y":1.77800000000002},{"x":-3.8735253999999486,"y":1.6509999999999536},{"x":-4.25452539999992,"y":1.6509999999999536},{"x":-4.25452539999992,"y":1.77800000000002}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-4.743513999999891,"y":3.672395999999935},{"x":4.748086000000171,"y":3.672395999999935},{"x":4.748086000000171,"y":-3.152204000000097},{"x":-4.743513999999891,"y":-3.152204000000097},{"x":-4.743513999999891,"y":3.672395999999935}]} />
</footprint>}
{...restProps}
/>
)
}