tscircuit/motor-controller

This code defines a compact hardware layout with multiple integrated components such as microcontrollers, power regulators, sensors, connectors, and passive elements, all arranged on a PCB for a versatile electronic device.

Version
1.0.14
License
unset
Stars
0

imports/AS5600_ASOT.tsx

import type { ChipProps } from "@tscircuit/props";

const pinLabels = {
	pin1: ["VDD5V"],
	pin2: ["VDD3V3"],
	pin3: ["OUT"],
	pin4: ["GND"],
	pin5: ["PGO"],
	pin6: ["SDA"],
	pin7: ["SCL"],
	pin8: ["DIR"],
} as const;

export const AS5600_ASOT = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C499458"],
			}}
			manufacturerPartNumber="AS5600_ASOT"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin1"]}
						pcbX="-1.905mm"
						pcbY="-2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="-0.635mm"
						pcbY="-2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="0.635mm"
						pcbY="-2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="1.905mm"
						pcbY="-2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin8"]}
						pcbX="-1.905mm"
						pcbY="2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin7"]}
						pcbX="-0.635mm"
						pcbY="2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin6"]}
						pcbX="0.635mm"
						pcbY="2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin5"]}
						pcbX="1.905mm"
						pcbY="2.7051mm"
						width="0.5684012mm"
						height="1.950212mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -2.4999950000001263, y: -1.4999970000000076 },
							{ x: 2.499994999999899, y: -1.4999970000000076 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.4999950000001263, y: 1.4999969999998939 },
							{ x: 2.499994999999899, y: 1.4999969999998939 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.4999950000001263, y: -1.4999970000000076 },
							{ x: -2.4999950000001263, y: -0.7265669999998181 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.4999950000001263, y: 1.4999969999998939 },
							{ x: -2.4999950000001263, y: 0.7262875999999778 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 2.499994999999899, y: 1.4999969999998939 },
							{ x: 2.499994999999899, y: -1.4999970000000076 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.4999950000001263, y: -0.7265669999998181 },
							{ x: -2.2625565730616017, y: -0.6727720384950544 },
							{ x: -2.056152369867391, y: -0.5436666188794561 },
							{ x: -1.9038872877111999, y: -0.3537028085727343 },
							{ x: -1.822805887847835, y: -0.12414516642888884 },
							{ x: -1.8219844264158382, y: 0.11930961309167287 },
							{ x: -1.9015148578508843, y: 0.34940918924542075 },
							{ x: -2.0524945415012326, y: 0.5403962034508822 },
							{ x: -2.25802280368805, y: 0.6708915593560505 },
							{ x: -2.495092800000066, y: 0.7262876000000915 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0127mm"
						pcbY="4.4036mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -2.7391999999999825, y: 3.653599999999983 },
							{ x: 2.7645999999998594, y: 3.653599999999983 },
							{ x: 2.7645999999998594, y: -3.7806000000000495 },
							{ x: -2.7391999999999825, y: -3.7806000000000495 },
							{ x: -2.7391999999999825, y: 3.653599999999983 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C499458.obj?uuid=7abc64c95a1a4a04a4ef38f9097c870b",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C499458.step?uuid=7abc64c95a1a4a04a4ef38f9097c870b",
				pcbRotationOffset: 0,
				modelOriginPosition: { x: 0, y: 0, z: 0 },
			}}
			{...props}
		/>
	);
};