rushabhcodes/ESP32-E-Reader
This code defines the hardware layout and schematic connections for an ESP32-based e-reader device, including microcontroller, USB, display, power management, connectors, passives, switches, and associated PCB footprints, placements, and net connections.
- Version
- 1.0.6
- License
- unset
- Stars
- 0
imports/FH12_24S_0_5SH_55_.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"],
pin5: ["pin5"],
pin6: ["pin6"],
pin7: ["pin7"],
pin8: ["pin8"],
pin9: ["pin9"],
pin10: ["pin10"],
pin11: ["pin11"],
pin12: ["pin12"],
pin13: ["pin13"],
pin14: ["pin14"],
pin15: ["pin15"],
pin16: ["pin16"],
pin17: ["pin17"],
pin18: ["pin18"],
pin19: ["pin19"],
pin20: ["pin20"],
pin21: ["pin21"],
pin22: ["pin22"],
pin23: ["pin23"],
pin24: ["pin24"],
pin25: ["pin25"],
pin26: ["pin26"],
} as const;
export const FH12_24S_0_5SH_55_ = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
symbol={
<symbol>
<port
name="pin2"
pinNumber={2}
aliases={["2"]}
direction="left"
schX={-0.6}
schY={2.1}
schStemLength={0.4}
/>
<port
name="pin3"
pinNumber={3}
aliases={["3"]}
direction="left"
schX={-0.6}
schY={1.9}
schStemLength={0.4}
/>
<port
name="pin4"
pinNumber={4}
aliases={["4"]}
direction="left"
schX={-0.6}
schY={1.7}
schStemLength={0.4}
/>
<port
name="pin5"
pinNumber={5}
aliases={["5"]}
direction="left"
schX={-0.6}
schY={1.5}
schStemLength={0.4}
/>
<port
name="pin6"
pinNumber={6}
aliases={["6"]}
direction="left"
schX={-0.6}
schY={1.3}
schStemLength={0.4}
/>
<port
name="pin7"
pinNumber={7}
aliases={["7"]}
direction="left"
schX={-0.6}
schY={1.1}
schStemLength={0.4}
/>
<port
name="pin8"
pinNumber={8}
aliases={["8"]}
direction="left"
schX={-0.6}
schY={0.9}
schStemLength={0.4}
/>
<port
name="pin1"
pinNumber={1}
aliases={["1"]}
direction="left"
schX={-0.6}
schY={2.3}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: 2.1 },
{ x: -0.06, y: 2.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 2.1 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 1.7 },
{ x: -0.06, y: 1.7 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 1.7 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 1.9 },
{ x: -0.06, y: 1.9 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 1.9 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 1.5 },
{ x: -0.06, y: 1.5 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 1.5 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 2.3 },
{ x: -0.06, y: 2.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 2.3 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 1.3 },
{ x: -0.06, y: 1.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 1.3 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 0.9 },
{ x: -0.06, y: 0.9 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 0.9 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 1.1 },
{ x: -0.06, y: 1.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 1.1 }}
radius={0.06}
color="#880000"
/>
<port
name="pin9"
pinNumber={9}
aliases={["9"]}
direction="left"
schX={-0.6}
schY={0.7}
schStemLength={0.4}
/>
<port
name="pin10"
pinNumber={10}
aliases={["10"]}
direction="left"
schX={-0.6}
schY={0.5}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: 0.7 },
{ x: -0.06, y: 0.7 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 0.7 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 0.5 },
{ x: -0.06, y: 0.5 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 0.5 }}
radius={0.06}
color="#880000"
/>
<port
name="pin11"
pinNumber={11}
aliases={["11"]}
direction="left"
schX={-0.6}
schY={0.3}
schStemLength={0.4}
/>
<port
name="pin12"
pinNumber={12}
aliases={["12"]}
direction="left"
schX={-0.6}
schY={0.1}
schStemLength={0.4}
/>
<port
name="pin13"
pinNumber={13}
aliases={["13"]}
direction="left"
schX={-0.6}
schY={-0.1}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: 0.3 },
{ x: -0.06, y: 0.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 0.3 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: 0.1 },
{ x: -0.06, y: 0.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: 0.1 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: -0.1 },
{ x: -0.06, y: -0.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -0.1 }}
radius={0.06}
color="#880000"
/>
<port
name="pin14"
pinNumber={14}
aliases={["14"]}
direction="left"
schX={-0.6}
schY={-0.3}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -0.3 },
{ x: -0.06, y: -0.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -0.3 }}
radius={0.06}
color="#880000"
/>
<port
name="pin15"
pinNumber={15}
aliases={["15"]}
direction="left"
schX={-0.6}
schY={-0.5}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -0.5 },
{ x: -0.06, y: -0.5 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -0.5 }}
radius={0.06}
color="#880000"
/>
<port
name="pin16"
pinNumber={16}
aliases={["16"]}
direction="left"
schX={-0.6}
schY={-0.7}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -0.7 },
{ x: -0.06, y: -0.7 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -0.7 }}
radius={0.06}
color="#880000"
/>
<port
name="pin17"
pinNumber={17}
aliases={["17"]}
direction="left"
schX={-0.6}
schY={-0.9}
schStemLength={0.4}
/>
<port
name="pin18"
pinNumber={18}
aliases={["18"]}
direction="left"
schX={-0.6}
schY={-1.1}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -0.9 },
{ x: -0.06, y: -0.9 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -0.9 }}
radius={0.06}
color="#880000"
/>
<schematicpath
points={[
{ x: -0.2, y: -1.1 },
{ x: -0.06, y: -1.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -1.1 }}
radius={0.06}
color="#880000"
/>
<port
name="pin19"
pinNumber={19}
aliases={["19"]}
direction="left"
schX={-0.6}
schY={-1.3}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -1.3 },
{ x: -0.06, y: -1.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -1.3 }}
radius={0.06}
color="#880000"
/>
<port
name="pin20"
pinNumber={20}
aliases={["20"]}
direction="left"
schX={-0.6}
schY={-1.5}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -1.5 },
{ x: -0.06, y: -1.5 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -1.5 }}
radius={0.06}
color="#880000"
/>
<port
name="pin21"
pinNumber={21}
aliases={["21"]}
direction="left"
schX={-0.6}
schY={-1.7}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -1.7 },
{ x: -0.06, y: -1.7 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -1.7 }}
radius={0.06}
color="#880000"
/>
<port
name="pin22"
pinNumber={22}
aliases={["22"]}
direction="left"
schX={-0.6}
schY={-1.9}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -1.9 },
{ x: -0.06, y: -1.9 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -1.9 }}
radius={0.06}
color="#880000"
/>
<port
name="pin23"
pinNumber={23}
aliases={["23"]}
direction="left"
schX={-0.6}
schY={-2.1}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -2.1 },
{ x: -0.06, y: -2.1 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -2.1 }}
radius={0.06}
color="#880000"
/>
<port
name="pin24"
pinNumber={24}
aliases={["24"]}
direction="left"
schX={-0.6}
schY={-2.3}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: -2.3 },
{ x: -0.06, y: -2.3 },
]}
strokeColor="#880000"
/>
<schematiccircle
center={{ x: 0, y: -2.3 }}
radius={0.06}
color="#880000"
/>
<port
name="pin25"
pinNumber={25}
aliases={["25"]}
direction="right"
schX={0.6}
schY={-2.1}
schStemLength={0.4}
/>
<port
name="pin26"
pinNumber={26}
aliases={["26"]}
direction="right"
schX={0.6}
schY={-2.3}
schStemLength={0.4}
/>
<schematicpath
points={[
{ x: -0.2, y: 2.5 },
{ x: 0.202, y: 2.5 },
{ x: 0.2, y: -2.5 },
{ x: 0, y: -2.5 },
{ x: -0.2, y: -2.5 },
{ x: -0.2, y: 2.5 },
]}
strokeColor="#880000"
/>
</symbol>
}
supplierPartNumbers={{
jlcpcb: ["C202112"],
}}
manufacturerPartNumber="FH12-24S-0.5SH(55)"
footprint={
<footprint>
<smtpad
portHints={["pin12"]}
pcbX="0.249936mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin13"]}
pcbX="-0.249936mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin14"]}
pcbX="-0.750062mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin15"]}
pcbX="-1.249934mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin16"]}
pcbX="-1.75006mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin17"]}
pcbX="-2.249932mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin18"]}
pcbX="-2.750058mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin19"]}
pcbX="-3.24993mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin20"]}
pcbX="-3.750056mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin21"]}
pcbX="-4.249928mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin22"]}
pcbX="-4.750054mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin23"]}
pcbX="-5.249926mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin24"]}
pcbX="-5.750052mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin25"]}
pcbX="7.795514mm"
pcbY="-1.36276715mm"
width="1.5999968mm"
height="2.2999954mm"
shape="rect"
/>
<smtpad
portHints={["pin26"]}
pcbX="-7.795514mm"
pcbY="-1.36276715mm"
width="1.5999968mm"
height="2.2999954mm"
shape="rect"
/>
<smtpad
portHints={["pin11"]}
pcbX="0.750316mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin10"]}
pcbX="1.250442mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin9"]}
pcbX="1.750568mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin8"]}
pcbX="2.25044mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin7"]}
pcbX="2.750312mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin6"]}
pcbX="3.250184mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin5"]}
pcbX="3.750564mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin4"]}
pcbX="4.250182mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin3"]}
pcbX="4.750308mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin2"]}
pcbX="5.250434mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<smtpad
portHints={["pin1"]}
pcbX="5.75056mm"
pcbY="1.81276625mm"
width="0.2800096mm"
height="1.3999972mm"
shape="rect"
/>
<silkscreenpath
route={[
{ x: -7.550073800000007, y: -2.762764350000012 },
{ x: -7.550073800000007, y: -4.362761149999997 },
]}
/>
<silkscreenpath
route={[
{ x: -7.550073800000007, y: -4.412773750000014 },
{ x: 7.549921400000002, y: -4.412773750000014 },
{ x: 7.549921400000002, y: -2.762764350000012 },
]}
/>
<silkscreenpath
route={[
{ x: 7.549921400000002, y: 0.03723004999999091 },
{ x: 7.549921400000002, y: 1.2372276499999941 },
{ x: 6.121704799999989, y: 1.2372276499999941 },
]}
/>
<silkscreenpath
route={[
{ x: -6.121196800000007, y: 1.2372276499999941 },
{ x: -7.550073800000007, y: 1.2372276499999941 },
{ x: -7.550073800000007, y: 0.03723004999999091 },
]}
/>
<silkscreenpath
route={[
{ x: 5.8501026, y: 0.31414085000000114 },
{ x: 5.450052599999992, y: -0.0859091500000062 },
{ x: 6.2498985999999945, y: -0.0859091500000062 },
{ x: 5.8501026, y: 0.31414085000000114 },
]}
/>
<silkscreenpath
route={[
{ x: 6.499072600000005, y: 1.6882808499999982 },
{ x: 6.375884219950663, y: 1.563192321495336 },
{ x: 6.500342599999996, y: 1.4393673297605005 },
{ x: 6.624800980049315, y: 1.563192321495336 },
{ x: 6.501612599999987, y: 1.6882808499999982 },
]}
/>
<silkscreentext
text="{NAME}"
pcbX="0.009906mm"
pcbY="-5.41734575mm"
anchorAlignment="center"
fontSize="1mm"
/>
<courtyardoutline
outline={[
{ x: -8.837994000000009, y: -4.6673457499999955 },
{ x: 8.857805999999997, y: -4.6673457499999955 },
{ x: 8.857805999999997, y: 2.7668542499999944 },
{ x: -8.837994000000009, y: 2.7668542499999944 },
{ x: -8.837994000000009, y: -4.6673457499999955 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C202112.obj?uuid=80a519313ec9409481d237954e09dd94",
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C202112.step?uuid=80a519313ec9409481d237954e09dd94",
pcbRotationOffset: 0,
modelOriginPosition: {
x: -0.000012699999984988608,
y: 1.3889803499999942,
z: -0.05,
},
}}
{...props}
/>
);
};