imrishabh18/fitness_watch
This code defines a React component representing an AO3400A SOT-23P surface-mount N-channel MOSFET with three pins labeled Gate (G), Source (S), and Drain (D), including electrical and physical pin configurations, schematic symbol, and associated 3D model.
- Version
- 1.0.7
- License
- unset
- Stars
- 0
imports/ESP_12E/ESP_12E.tsx
import objPath from "./ESP_12E.obj"
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["RST", "RESET"],
pin2: ["ADC"],
pin3: ["EN"],
pin4: ["IO16", "GPIO16"],
pin5: ["IO14", "GPIO14"],
pin6: ["IO12", "GPIO12"],
pin7: ["IO13", "GPIO13"],
pin8: ["VCC"],
pin9: ["CS0"],
pin10: ["MISO"],
pin11: ["IO9", "GPIO9"],
pin12: ["IO10", "GPIO10"],
pin13: ["MOSI"],
pin14: ["SCLK"],
pin15: ["GND"],
pin16: ["IO15", "GPIO15"],
pin17: ["IO2", "GPIO2"],
pin18: ["IO0", "GPIO0"],
pin19: ["IO4", "GPIO4"],
pin20: ["IO5", "GPIO5"],
pin21: ["RXD"],
pin22: ["TXD"]
} as const
const pinAttributes = {
pin8: { requiresPower: true },
pin15: { requiresGround: true },
} as const
export const ESP_12E = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C89297"
]
}}
manufacturerPartNumber="ESP_12E"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-7.86488775mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-5.86489175mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-3.86489575mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-1.86489975mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0.13509625mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="2.13509225mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="4.13508825mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="6.13508425mm" pcbY="-7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="7.61514225mm" pcbY="-5.001133mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="7.61361825mm" pcbY="-3.001137mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="7.61412625mm" pcbY="-1.001141mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="7.61412625mm" pcbY="0.998855mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="7.61412625mm" pcbY="2.998851mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="7.61488825mm" pcbY="4.998847mm" width="1.7999964mm" height="1.2999974mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="6.13508425mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="4.13483425mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="2.13483825mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="0.13484225mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="-1.86515375mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="-3.86514975mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="-5.86514575mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="-7.86514175mm" pcbY="7.749921mm" width="1.2999974mm" height="2.499995mm" shape="rect" />
<silkscreenpath route={[{"x":7.613846850000002,"y":-5.882284400000017},{"x":7.613846850000002,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":-3.8822884000000073},{"x":7.613846850000002,"y":-4.119981600000017}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":-1.8822924000000114},{"x":7.613846850000002,"y":-2.119985600000007}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":0.11770359999999869},{"x":7.613846850000002,"y":-0.11998960000001091}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":2.1176995999999804},{"x":7.613846850000002,"y":1.880006399999985}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":4.1176955999999905},{"x":7.613846850000002,"y":3.880002399999995}]} />
<silkscreenpath route={[{"x":7.613846850000002,"y":7.998510799999991},{"x":7.613846850000002,"y":5.879998399999991}]} />
<silkscreenpath route={[{"x":7.0162356499999845,"y":-7.991932200000008},{"x":7.613846850000002,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":5.016239650000003,"y":-7.991932200000008},{"x":5.253932849999984,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":3.0162436499999927,"y":-7.991932200000008},{"x":3.2539368500000023,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":1.016247650000011,"y":-7.991932200000008},{"x":1.253940849999978,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":-0.9837483500000133,"y":-7.991932200000008},{"x":-0.7460551500000179,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":-2.983744350000009,"y":-7.991932200000008},{"x":-2.7460511499999996,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":-4.983740350000005,"y":-7.991932200000008},{"x":-4.74604715000001,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":-6.983736350000001,"y":-7.991932200000008},{"x":-6.746043149999991,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":-16.226999550000016,"y":-7.991932200000008},{"x":-8.746039150000016,"y":-7.991932200000008}]} />
<silkscreenpath route={[{"x":7.0162356499999845,"y":7.998510799999991},{"x":7.613846850000002,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":5.01598564999999,"y":7.998510799999991},{"x":5.253932849999984,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":3.0159896500000087,"y":7.998510799999991},{"x":3.2536828499999757,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":1.0159936499999844,"y":7.998510799999991},{"x":1.253686849999994,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-0.9840023499999973,"y":7.998510799999991},{"x":-0.7463091500000019,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-2.9839983500000073,"y":7.998510799999991},{"x":-2.746305150000012,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-4.983994350000003,"y":7.998510799999991},{"x":-4.746301149999994,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-6.983990350000013,"y":7.998510799999991},{"x":-6.746297150000018,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-16.386105150000006,"y":7.998510799999991},{"x":-8.74629315,"y":7.998510799999991}]} />
<silkscreenpath route={[{"x":-16.386105150000006,"y":7.998510799999991},{"x":-16.386105150000006,"y":-8.001457200000004}]} />
<silkscreenpath route={[{"x":-9.386119149999999,"y":-7.001459200000028},{"x":-9.386119149999999,"y":6.998512799999986}]} />
<silkscreenpath route={[{"x":-10.386117150000018,"y":4.99851679999999},{"x":-10.386117150000018,"y":-5.001463200000003},{"x":-15.38610715,"y":-5.001463200000003},{"x":-15.38610715,"y":-4.001465199999998},{"x":-12.386113150000014,"y":-4.001465199999998},{"x":-12.386113150000014,"y":-3.0014672000000076},{"x":-15.38610715,"y":-3.0014672000000076},{"x":-15.38610715,"y":-2.0014692000000167},{"x":-12.386113150000014,"y":-2.0014692000000167},{"x":-12.386113150000014,"y":-1.0014712000000117},{"x":-15.38610715,"y":-1.0014712000000117},{"x":-15.38610715,"y":-0.0014732000000066137},{"x":-12.386113150000014,"y":-0.0014732000000066137},{"x":-12.386113150000014,"y":0.9985247999999984},{"x":-15.38610715,"y":0.9985247999999984},{"x":-15.38610715,"y":6.998512799999986}]} />
<silkscreenpath route={[{"x":-7.386123150000003,"y":-6.0014612000000085},{"x":5.6138508499999915,"y":-6.0014612000000085},{"x":5.6138508499999915,"y":5.998514799999995},{"x":-7.386123150000003,"y":5.998514799999995},{"x":-7.386123150000003,"y":-6.0014612000000085}]} />
<silkscreenpath route={[{"x":-9.147003550000008,"y":-9.620935800000012},{"x":-9.153818371112507,"y":-9.672699505492886},{"x":-9.17379841565328,"y":-9.720935600000004},{"x":-9.20558207660541,"y":-9.762356873394609},{"x":-9.24700335,"y":-9.794140534346738},{"x":-9.295239444507118,"y":-9.814120578887483},{"x":-9.347003150000006,"y":-9.82093540000001},{"x":-9.398766855492894,"y":-9.814120578887483},{"x":-9.447002949999998,"y":-9.794140534346738},{"x":-9.488424223394603,"y":-9.762356873394609},{"x":-9.520207884346732,"y":-9.720935600000004},{"x":-9.540187928887491,"y":-9.672699505492886},{"x":-9.547002750000004,"y":-9.620935800000012},{"x":-9.540187928887491,"y":-9.56917209450711},{"x":-9.520207884346732,"y":-9.520935999999992},{"x":-9.488424223394603,"y":-9.479514726605416},{"x":-9.447002949999998,"y":-9.447731065653272},{"x":-9.398766855492894,"y":-9.427751021112513},{"x":-9.347003150000006,"y":-9.420936200000014},{"x":-9.295239444507118,"y":-9.427751021112513},{"x":-9.24700335,"y":-9.447731065653272},{"x":-9.20558207660541,"y":-9.479514726605416},{"x":-9.17379841565328,"y":-9.520935999999992},{"x":-9.153818371112507,"y":-9.56917209450711},{"x":-9.147003550000008,"y":-9.620935800000012}]} />
<silkscreentext text="ESP12E" pcbX="-1.18494175mm" pcbY="-4.802759mm" anchorAlignment="bottom_left" fontSize="2.032mm" />
<silkscreentext text="{NAME}" pcbX="-3.84609975mm" pcbY="10.288907mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-16.656399750000006,"y":9.538906999999995},{"x":8.964200249999976,"y":9.538906999999995},{"x":8.964200249999976,"y":-10.087293000000017},{"x":-16.656399750000006,"y":-10.087293000000017},{"x":-16.656399750000006,"y":9.538906999999995}]} />
</footprint>}
cadModel={{
objUrl: objPath,
pcbRotationOffset: 90,
modelOriginPosition: { x: -0.00005079999999679785, y: -4.325016750000003, z: 0 },
}}
{...props}
/>
)
}