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/ATTINY85_20SU.tsx

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

const pinLabels = {
  pin1: ["pin1", "RESET"],
  pin2: ["pin2", "PB3"],
  pin3: ["pin3", "PB4"],
  pin4: ["GND"],
  pin5: ["pin5", "PB0"],
  pin6: ["pin6", "PB1"],
  pin7: ["pin7", "PB2"],
  pin8: ["VCC"]
} as const

export const ATTINY85_20SU = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C89852"
  ]
}}
      manufacturerPartNumber="ATTINY85_20SU"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.905mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-0.635mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="0.635mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="1.905mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="-1.905mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="-0.635mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="0.635mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="1.905mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<silkscreenpath route={[{"x":-2.6387044000000515,"y":-2.1763989999999467},{"x":-2.6387044000000515,"y":2.1763990000000604},{"x":2.6387044000000515,"y":2.1763990000000604},{"x":2.6387044000000515,"y":-2.1763989999999467},{"x":-2.6387044000000515,"y":-2.1763989999999467}]} />
<silkscreenpath route={[{"x":-1.7548859999999422,"y":-1.4239240000000564},{"x":-1.7600010105124966,"y":-1.4627763621365375},{"x":-1.774997462536362,"y":-1.4989810000000716},{"x":-1.7988533726489777,"y":-1.5300706273510514},{"x":-1.8299429999999575,"y":-1.5539265374637807},{"x":-1.866147637863378,"y":-1.5689229894875325},{"x":-1.9050000000000864,"y":-1.5740379999999732},{"x":-1.9438523621365675,"y":-1.5689229894875325},{"x":-1.980056999999988,"y":-1.5539265374637807},{"x":-2.0111466273510814,"y":-1.5300706273510514},{"x":-2.035002537463697,"y":-1.4989810000000716},{"x":-2.049998989487449,"y":-1.4627763621365375},{"x":-2.055114000000003,"y":-1.4239240000000564},{"x":-2.049998989487449,"y":-1.3850716378634615},{"x":-2.035002537463697,"y":-1.3488669999999274},{"x":-2.0111466273510814,"y":-1.3177773726490614},{"x":-1.980056999999988,"y":-1.2939214625364457},{"x":-1.9438523621365675,"y":-1.2789250105124665},{"x":-1.9050000000000864,"y":-1.2738100000000259},{"x":-1.866147637863378,"y":-1.2789250105124665},{"x":-1.8299429999999575,"y":-1.2939214625364457},{"x":-1.7988533726489777,"y":-1.3177773726490614},{"x":-1.774997462536362,"y":-1.3488669999999274},{"x":-1.7600010105124966,"y":-1.3850716378634615},{"x":-1.7548859999999422,"y":-1.4239240000000564}]} />
<silkscreenpath route={[{"x":-2.522220000000061,"y":-3.5300920000000815},{"x":-2.5273350105126156,"y":-3.5689443621365626},{"x":-2.542331462536481,"y":-3.605148999999983},{"x":-2.5661873726490967,"y":-3.6362386273510765},{"x":-2.5972770000000764,"y":-3.660094537463692},{"x":-2.633481637863497,"y":-3.675090989487444},{"x":-2.6723340000000917,"y":-3.6802059999999983},{"x":-2.7111863621366865,"y":-3.675090989487444},{"x":-2.747391000000107,"y":-3.660094537463692},{"x":-2.7784806273510867,"y":-3.6362386273510765},{"x":-2.802336537463816,"y":-3.605148999999983},{"x":-2.817332989487568,"y":-3.5689443621365626},{"x":-2.822448000000122,"y":-3.5300920000000815},{"x":-2.817332989487568,"y":-3.491239637863373},{"x":-2.802336537463816,"y":-3.4550349999999526},{"x":-2.7784806273510867,"y":-3.423945372648973},{"x":-2.747391000000107,"y":-3.400089462536357},{"x":-2.7111863621366865,"y":-3.3850930105124917},{"x":-2.6723340000000917,"y":-3.3799779999999373},{"x":-2.633481637863497,"y":-3.3850930105124917},{"x":-2.5972770000000764,"y":-3.400089462536357},{"x":-2.5661873726490967,"y":-3.423945372648973},{"x":-2.542331462536481,"y":-3.4550349999999526},{"x":-2.5273350105126156,"y":-3.491239637863373},{"x":-2.522220000000061,"y":-3.5300920000000815}]} />
<silkscreentext text="{NAME}" pcbX="-0.0889mm" pcbY="5.3434mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.0693999999999733,"y":4.593399999999974},{"x":2.891599999999926,"y":4.593399999999974},{"x":2.891599999999926,"y":-4.745800000000031},{"x":-3.0693999999999733,"y":-4.745800000000031},{"x":-3.0693999999999733,"y":4.593399999999974}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C89852.obj?uuid=4652e19b90fa4dbb8662aa4cba61a532",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C89852.step?uuid=4652e19b90fa4dbb8662aa4cba61a532",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.000012700000070253736, y: -0.000012699999956566899, z: -0.069425 },
      }}
      {...props}
    />
  )
}