mohan-bee/temperature-meter
The code defines a compact PCB assembly featuring a USB-C power input, an AMS1117 voltage regulator, a LM335 temperature sensor, an ATtiny85 microcontroller with ICSP and I2C headers, a pushbutton, and associated passive components like resistors and capacitors, all interconnected with traces and mounted on labeled footprints.
- Version
- 1.0.3
- License
- unset
- Stars
- 1
imports/c9753.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["GND"],
pin2: ["DQ"],
pin3: ["VDD"]
} as const
export const DS18B20_ = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C9753"
]
}}
manufacturerPartNumber="DS18B20_"
footprint={<footprint>
<platedhole portHints={["pin3"]} pcbX="1.46999955mm" pcbY="0mm" holeWidth="0.700024mm" holeHeight="1.4000226mm" outerWidth="0.8999982mm" outerHeight="1.5999968mm" shape="pill" />
<platedhole portHints={["pin2"]} pcbX="0.19999955mm" pcbY="0mm" holeWidth="0.700024mm" holeHeight="1.4000226mm" outerWidth="0.8999982mm" outerHeight="1.5999968mm" shape="pill" />
<platedhole portHints={["pin1"]} pcbX="-1.07000045mm" pcbY="0mm" holeWidth="0.700024mm" holeHeight="1.8200624mm" outerWidth="0.8999982mm" outerHeight="1.5999968mm" rectPad={true} pcbRotation="0deg" shape="pill" />
<silkscreenpath route={[{"x":2.179904150000084,"y":-1.4998699999999872},{"x":-1.7799050499999112,"y":-1.4998699999999872}]} />
<silkscreenpath route={[{"x":2.1811995500000876,"y":-1.501139999999964},{"x":2.3219681222166173,"y":-1.7081825003868971},{"x":2.4411803624694812,"y":-1.9283434180451877},{"x":2.5376252355629276,"y":-2.159386215691711},{"x":2.610322991971998,"y":-2.3989638108532745},{"x":2.658535120773081,"y":-2.6446424190527296},{"x":2.6817718519163236,"y":-2.8939262777681733},{"x":2.6797971316277653,"y":-3.144283000006908},{"x":2.652631020395688,"y":-3.393169299932765},{"x":2.600549489184118,"y":-3.6380568292131557},{"x":2.5240816159396218,"y":-3.876457861618178},{"x":2.424004210876433,"y":-4.10595056495788},{"x":2.3013339251331217,"y":-4.324203603621527},{"x":2.1573169229726545,"y":-4.5289998217972425},{"x":1.9934162224377587,"y":-4.718258766776103},{"x":1.8112968330652848,"y":-4.890057823539678},{"x":1.612808841640458,"y":-5.042651745930129},{"x":1.3999686178166257,"y":-5.174490385990225},{"x":1.1749383305248102,"y":-5.284234441372291},{"x":0.9400039832613629,"y":-5.3707690608389385},{"x":0.6975521913819875,"y":-5.433215169643745},{"x":0.4500459373173271,"y":-5.470938399743773},{"x":0.19999955000002956,"y":-5.483555534119546},{"x":-0.05004683731738169,"y":-5.470938399743773},{"x":-0.2975530913820421,"y":-5.433215169643745},{"x":-0.5400048832613038,"y":-5.3707690608389385},{"x":-0.7749392305246374,"y":-5.284234441372291},{"x":-0.9999695178165666,"y":-5.174490385990225},{"x":-1.212809741640399,"y":-5.042651745930129},{"x":-1.411297733065112,"y":-4.890057823539678},{"x":-1.5934171224376996,"y":-4.718258766776103},{"x":-1.7573178229725954,"y":-4.5289998217972425},{"x":-1.901334825132949,"y":-4.324203603621527},{"x":-2.02400511087626,"y":-4.10595056495788},{"x":-2.1240825159395627,"y":-3.876457861618178},{"x":-2.200550389184059,"y":-3.6380568292131557},{"x":-2.252631920395743,"y":-3.393169299932765},{"x":-2.27979803162782,"y":-3.144283000006908},{"x":-2.281772751916378,"y":-2.8939262777681733},{"x":-2.258536020772908,"y":-2.6446424190527296},{"x":-2.210323891971825,"y":-2.3989638108532745},{"x":-2.137626135562755,"y":-2.159386215691711},{"x":-2.041181262469422,"y":-1.9283434180451877},{"x":-1.9219690222165582,"y":-1.7081825003868971},{"x":-1.7812004500000285,"y":-1.501139999999964}]} />
<silkscreentext text="{NAME}" pcbX="0.18729955mm" pcbY="3.6162mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.564600450000057,"y":2.8662000000001626},{"x":2.9391995499998984,"y":2.8662000000001626},{"x":2.9391995499998984,"y":-1.9010000000000673},{"x":-2.564600450000057,"y":-1.9010000000000673},{"x":-2.564600450000057,"y":2.8662000000001626}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9753.obj?uuid=86c9a28785b84e52859c2af3e4e264a5",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9753.step?uuid=86c9a28785b84e52859c2af3e4e264a5",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.19999955000002956, y: 0.015055300000088923, z: -0.000010000000000509601 },
}}
{...props}
/>
)
}