Devesh36/pocket-audio-player

A portable, rechargeable microSD audio player built around an RP2040, SPI flash, USB‑C charging/power management, LCD/button controls, PCM5102A I²S DAC, and TPA6132A headphone amplifier in a 3D‑printed enclosure.

Version
1.0.12
License
unset
Stars
0

imports/HSMS_C170.tsx

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

export const HSMS_C170_FOOTPRINT = (
	<footprint>
		<smtpad
			portHints={["pin1"]}
			pcbX="-1.0499979mm"
			pcbY="0mm"
			width="1.1999976mm"
			height="1.2500102mm"
			shape="rect"
		/>
		<smtpad
			portHints={["pin2"]}
			pcbX="1.0499979mm"
			pcbY="0mm"
			width="1.1999976mm"
			height="1.2500102mm"
			shape="rect"
		/>
		<silkscreenpath
			route={[
				{ x: -0.43107610000015484, y: -0.88900000000001 },
				{ x: -1.8509614999999258, y: -0.88900000000001 },
				{ x: -1.8509614999999258, y: 0.88900000000001 },
				{ x: -0.43107610000015484, y: 0.88900000000001 },
			]}
		/>
		<silkscreenpath
			route={[
				{ x: 0.30394910000006803, y: -0.88900000000001 },
				{ x: 1.7009491000000025, y: -0.88900000000001 },
			]}
		/>
		<silkscreenpath
			route={[
				{ x: 0.30394910000006803, y: 0.88900000000001 },
				{ x: 1.7009491000000025, y: 0.88900000000001 },
				{ x: 2.0819490999999744, y: 0.5080000000000382 },
				{ x: 2.0819490999999744, y: -0.5080000000000382 },
				{ x: 1.7009491000000025, y: -0.88900000000001 },
			]}
		/>
		<silkscreenpath
			route={[
				{ x: -0.12703810000004978, y: 0.5080000000000382 },
				{ x: -0.12703810000004978, y: -0.5080000000000382 },
			]}
		/>
		<silkscreenpath
			route={[
				{ x: -0.12703810000004978, y: -0.0009906000000228232 },
				{ x: 0.23486109999987548, y: -0.00005080000005364127 },
			]}
		/>
		<silkscreentext
			text="{NAME}"
			pcbX="0.0381127mm"
			pcbY="1.889mm"
			anchorAlignment="center"
			fontSize="1mm"
		/>
		<fabricationnotepath
			route={[
				{ x: 2.2572344999998677, y: -0.1258061999999427 },
				{ x: 1.241234499999905, y: -0.1258061999999427 },
				{ x: 1.241234499999905, y: 0.08801100000005135 },
				{ x: 2.2577932999998893, y: 0.08801100000005135 },
				{ x: 2.2577932999998893, y: 0.08773160000009739 },
				{ x: 2.2572344999998677, y: -0.1258061999999427 },
			]}
			strokeWidth="0mm"
			isFilled
			hasStroke={false}
		/>
		<fabricationnotepath
			route={[
				{ x: -1.1795887000000675, y: -0.11534139999992021 },
				{ x: -2.1955887000000303, y: -0.11534139999992021 },
				{ x: -2.1955887000000303, y: 0.09847580000007383 },
				{ x: -1.179029900000046, y: 0.09847580000007383 },
				{ x: -1.179029900000046, y: 0.09819640000000618 },
				{ x: -1.1795887000000675, y: -0.11534139999992021 },
			]}
			strokeWidth="0mm"
			isFilled
			hasStroke={false}
		/>
		<fabricationnotepath
			route={[
				{ x: -1.5761588999999958, y: 0.5321554000000788 },
				{ x: -1.5761588999999958, y: -0.48384459999988394 },
				{ x: -1.7899761000001035, y: -0.48384459999988394 },
				{ x: -1.7899761000001035, y: 0.5327141999999867 },
				{ x: -1.7896967000001496, y: 0.5327141999999867 },
				{ x: -1.5761588999999958, y: 0.5321554000000788 },
			]}
			strokeWidth="0mm"
			isFilled
			hasStroke={false}
		/>
		<courtyardoutline
			outline={[
				{ x: -2.4343873000001395, y: 1.13900000000001 },
				{ x: 2.5106127000000242, y: 1.13900000000001 },
				{ x: 2.5106127000000242, y: -1.13900000000001 },
				{ x: -2.4343873000001395, y: -1.13900000000001 },
				{ x: -2.4343873000001395, y: 1.13900000000001 },
			]}
		/>
	</footprint>
);

const pinLabels = {
	pin1: ["A"],
	pin2: ["C"],
} as const;

export const HSMS_C170 = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			symbol={
				<symbol>
					<port
						name="pin1"
						pinNumber={1}
						aliases={["A"]}
						direction="left"
						schX={-0.4}
						schY={0}
						schStemLength={0.2}
					/>
					<port
						name="pin2"
						pinNumber={2}
						aliases={["C"]}
						direction="right"
						schX={0.4}
						schY={0}
						schStemLength={0.2}
					/>
					<schematicpath
						svgPath="M -0.1 0.14 L 0.1 0 L -0.1 -0.14 Z"
						strokeColor="#880000"
					/>
					<schematicpath
						points={[
							{ x: 0.1, y: 0.14 },
							{ x: 0.1, y: -0.14 },
						]}
						strokeColor="#880000"
					/>
					<schematicpath
						points={[
							{ x: -0.2, y: 0 },
							{ x: -0.1, y: 0 },
						]}
						strokeColor="#880000"
					/>
					<schematicpath
						points={[
							{ x: 0.1, y: 0 },
							{ x: 0.2, y: 0 },
						]}
						strokeColor="#880000"
					/>
					<schematicpath
						points={[
							{ x: 0.1, y: 0.2 },
							{ x: 0.18, y: 0.28 },
						]}
						strokeColor="#880000"
					/>
					<schematicpath
						points={[
							{ x: 0.18, y: 0.12 },
							{ x: 0.26, y: 0.2 },
						]}
						strokeColor="#880000"
					/>
					<schematicpath
						svgPath="M 0.24 0.34 L 0.16 0.3 L 0.2 0.26 Z"
						strokeColor="#880000"
					/>
					<schematicpath
						svgPath="M 0.32 0.26 L 0.24 0.22 L 0.28 0.18 Z"
						strokeColor="#880000"
					/>
					<schematictext
						schX={-0.001}
						schY={0.54}
						text="{NAME}"
						fontSize={0.2}
						anchor="bottom_center"
					/>
				</symbol>
			}
			supplierPartNumbers={{
				jlcpcb: ["C6795835"],
			}}
			manufacturerPartNumber="HSMS-C170"
			footprint={HSMS_C170_FOOTPRINT}
			{...props}
		/>
	);
};