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/ATTINY1616_MNR.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["PA2"],
pin2: ["PA3"],
pin3: ["GND"],
pin4: ["VDD"],
pin5: ["PA4"],
pin6: ["PA5"],
pin7: ["PA6"],
pin8: ["PA7"],
pin9: ["PB5"],
pin10: ["PB4"],
pin11: ["PB3"],
pin12: ["PB2"],
pin13: ["PB1"],
pin14: ["PB0"],
pin15: ["PC0"],
pin16: ["PC1"],
pin17: ["PC2"],
pin18: ["PC3"],
pin19: ["PA0_UPDI"],
pin20: ["PA1"],
pin21: ["EP"]
} as const
const pinAttributes = {
pin3: {requiresGround: true},
pin4: {requiresPower: true},
pin19: {mustBeConnected: true},
pin21: {requiresGround: true}
} as const
export const ATTINY1616_MNR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C507118"
]
}}
manufacturerPartNumber="ATTINY1616-MNR"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-0.8001mm" pcbY="-1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-0.40005mm" pcbY="-1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0mm" pcbY="-1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.40005mm" pcbY="-1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0.8001mm" pcbY="-1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="1.407414mm" pcbY="-0.8001mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="1.407414mm" pcbY="-0.40005mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="1.407414mm" pcbY="0mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="1.407414mm" pcbY="0.40005mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="1.407414mm" pcbY="0.8001mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="0.8001mm" pcbY="1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="0.40005mm" pcbY="1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="0mm" pcbY="1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="-0.40005mm" pcbY="1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="-0.8001mm" pcbY="1.407414mm" width="0.1999996mm" height="0.6649974mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="-1.407414mm" pcbY="0.8001mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="-1.407414mm" pcbY="0.40005mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="-1.407414mm" pcbY="0mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="-1.407414mm" pcbY="-0.40005mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="-1.407414mm" pcbY="-0.8001mm" width="0.6649974mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="0mm" pcbY="0mm" width="1.6500094mm" height="1.6500094mm" shape="rect" />
<silkscreenpath route={[{"x":-1.5761970000000929,"y":1.1025124000000233},{"x":-1.5761970000000929,"y":1.5761970000000929},{"x":-1.1025124000000233,"y":1.5761970000000929}]} />
<silkscreenpath route={[{"x":1.5761969999998655,"y":1.1025124000000233},{"x":1.5761969999998655,"y":1.5761970000000929},{"x":1.1025123999999096,"y":1.5761970000000929}]} />
<silkscreenpath route={[{"x":-1.5761970000000929,"y":-1.1025124000000233},{"x":-1.5761970000000929,"y":-1.5761969999999792},{"x":-1.1025124000000233,"y":-1.5761969999999792}]} />
<silkscreenpath route={[{"x":1.5761969999998655,"y":-1.1025124000000233},{"x":1.5761969999998655,"y":-1.5761969999999792},{"x":1.1025123999999096,"y":-1.5761969999999792}]} />
<silkscreencircle pcbX="-0.8001mm" pcbY="-2.040128mm" radius="0.07493mm" />
<silkscreentext text="{NAME}" pcbX="-0.0127mm" pcbY="2.7526mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.0026000000000295,"y":2.0026000000000295},{"x":1.9771999999999252,"y":2.0026000000000295},{"x":1.9771999999999252,"y":-2.358199999999897},{"x":-2.0026000000000295,"y":-2.358199999999897},{"x":-2.0026000000000295,"y":2.0026000000000295}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C507118.obj?uuid=61b6ae921434449696dbd4fc3f995851",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C507118.step?uuid=61b6ae921434449696dbd4fc3f995851",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0, z: -0.02 },
}}
{...props}
/>
)
}