gokul/acoustic-guitar-tuner
This code defines a miniature circuit board featuring a microcontroller (ATTINY1616-MNR), audio and power components, tactile switch, various LEDs, and passive components arranged with specific footprints, connections, and mechanical markings for a mini acoustic guitar tuner.
- Version
- 1.0.8
- License
- unset
- Stars
- 2
imports/MSK12C02.tsx
import type { SwitchProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"]
} as const
export const MSK12C02 = (props: SwitchProps) => {
const { name = "SW1", ...restProps } = props
return (
<switch
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C431540"
]
}}
manufacturerPartNumber="MSK12C02"
footprint={<footprint>
<hole pcbX="-1.49987mm" pcbY="-0.75616435mm" diameter="0.9000236mm" />
<hole pcbX="1.500124mm" pcbY="-0.75616435mm" diameter="0.9000236mm" />
<smtpad portHints={["pin4"]} pcbX="3.599942mm" pcbY="0.39394765mm" width="1.1999976mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="3.599942mm" pcbY="-1.90602235mm" width="1.1999976mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-3.599942mm" pcbY="-1.90602235mm" width="1.1999976mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-3.599942mm" pcbY="0.39394765mm" width="1.1999976mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.249932mm" pcbY="1.49402165mm" width="0.5999988mm" height="1.524mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0.750062mm" pcbY="1.49402165mm" width="0.5999988mm" height="1.524mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-2.249932mm" pcbY="1.49402165mm" width="0.5999988mm" height="1.524mm" shape="rect" />
<silkscreenpath route={[{"x":0.1500124000000369,"y":-3.736016149999841},{"x":1.4254734000001008,"y":-3.736016149999841},{"x":1.4254734000001008,"y":-2.1359939499999427}]} />
<silkscreenpath route={[{"x":0.1500124000000369,"y":-2.1359939499999427},{"x":0.1500124000000369,"y":-3.736016149999841}]} />
<silkscreenpath route={[{"x":3.399993199999926,"y":-0.1500695499998983},{"x":3.399993199999926,"y":-1.3500671499998589}]} />
<silkscreenpath route={[{"x":-3.399993199999926,"y":-0.1500695499998983},{"x":-3.399993199999926,"y":-1.3500671499998589}]} />
<silkscreenpath route={[{"x":-2.749981799999887,"y":-2.1560345499999585},{"x":2.7500325999999404,"y":-2.1560345499999585}]} />
<silkscreenpath route={[{"x":2.768879399999946,"y":0.7439342500000521},{"x":2.7588971999999785,"y":0.7439342500000521}]} />
<silkscreenpath route={[{"x":-1.4999970000001213,"y":0.7439342500000521},{"x":0,"y":0.7439342500000521}]} />
<silkscreentext text="{NAME}" pcbX="-0.005842mm" pcbY="3.25017965mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":0.09997439999995095,"y":-2.1560345499999585},{"x":0.09997439999995095,"y":-3.60599354999988},{"x":1.4999715999999808,"y":-3.60599354999988},{"x":1.4999715999999808,"y":-2.0059967499998947},{"x":1.299972000000139,"y":-2.0059967499998947},{"x":1.299972000000139,"y":-3.4059939499999246},{"x":0.29997400000002017,"y":-3.4059939499999246},{"x":0.29997400000002017,"y":-2.0059967499998947},{"x":0.09997439999995095,"y":-2.0059967499998947},{"x":0.09997439999995095,"y":-2.1560345499999585}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.21501100000000406,"y":-2.610999349999929},{"x":-0.21501100000000406,"y":-2.9810011499998836},{"x":-1.4349984000000404,"y":-2.9810011499998836},{"x":-1.4349984000000404,"y":-3.2509777499998336},{"x":-1.4350237999999536,"y":-3.2509777499998336},{"x":-1.9050000000000864,"y":-2.781001549999928},{"x":-1.4349984000000404,"y":-2.3810023499999033},{"x":-1.4349984000000404,"y":-2.6209815499998967},{"x":-0.21501100000000406,"y":-2.610999349999929}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-4.459541999999942,"y":2.5001796500000637},{"x":4.4478579999999965,"y":2.5001796500000637},{"x":4.4478579999999965,"y":-3.9942203499999778},{"x":-4.459541999999942,"y":-3.9942203499999778},{"x":-4.459541999999942,"y":2.5001796500000637}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431540.obj?uuid=fc12522ae2f04394b021187ce17b23bb",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431540.step?uuid=fc12522ae2f04394b021187ce17b23bb",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.000025400000026820635, y: -0.7060877499999378, z: -0.0000010000000000287557 },
}}
{...restProps}
/>
)
}