astra/iphone-encoder-counter

A CR2450-powered MSP430 FRAM counter combines an always-on dual-channel TMR rotation sensor, pushbutton input, and ST25DV NFC tag with an integrated tuned printed antenna and I²C/GPIO interface.

Version
1.0.3
License
unset
Stars
0

imports/SKRPANE010.tsx

// Four-terminal switch; manufacturer contacts 1-2 and 3-4 are internally common.
import type { PushButtonProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["pin1"],
  pin2: ["pin2"],
  pin3: ["pin3"],
  pin4: ["pin4"]
} as const

export const SKRPANE010 = (props: PushButtonProps<typeof pinLabels>) => {
  const { name = "SW1", ...restProps } = props

  return (
    <pushbutton
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C470426"
  ]
}}
      manufacturerPartNumber="SKRPANE010"
      footprint={<footprint>
        <smtpad portHints={["pin3"]} pcbX="-2.135505mm" pcbY="-1.074928mm" width="0.999998mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="2.135759mm" pcbY="-1.074928mm" width="0.999998mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.135759mm" pcbY="1.074928mm" width="0.999998mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-2.135759mm" pcbY="1.074928mm" width="0.999998mm" height="0.6999986mm" shape="rect" />
<silkscreenpath route={[{"x":-2.09227420000002,"y":1.6000222000001258},{"x":2.1077174000000696,"y":1.6000222000001258}]} />
<silkscreenpath route={[{"x":-2.09227420000002,"y":-1.5999713999998448},{"x":2.1077174000000696,"y":-1.5999713999998448}]} />
<silkscreenpath route={[{"x":-2.09227420000002,"y":0.4938776000000189},{"x":-2.09227420000002,"y":-0.4938267999998516}]} />
<silkscreenpath route={[{"x":2.1077174000000696,"y":-0.4938267999998516},{"x":2.1077174000000696,"y":0.4938776000000189}]} />
<silkscreenpath route={[{"x":-0.7555737999999792,"y":-0.7609585999998671},{"x":0.7684262000000217,"y":-0.7609585999998671}]} />
<silkscreenpath route={[{"x":-0.7555737999999792,"y":0.7630414000000201},{"x":0.7696961999999985,"y":0.7620254000000841}]} />
<silkscreenpath route={[{"x":-2.09227420000002,"y":0.4938776000000189},{"x":-2.09227420000002,"y":0.4940046000000393},{"x":-2.0916645999999446,"y":0.4946142000000009}]} />
<silkscreenpath route={[{"x":-1.5119095999999672,"y":1.0743691999999783},{"x":-0.986256600000047,"y":1.6000222000001258}]} />
<silkscreenpath route={[{"x":1.5273019999999633,"y":1.1311636000000362},{"x":1.0584433999999874,"y":1.6000222000001258}]} />
<silkscreenpath route={[{"x":1.5273019999999633,"y":-1.18191279999985},{"x":1.1092434000000821,"y":-1.5999713999998448}]} />
<silkscreenpath route={[{"x":-1.5119095999999672,"y":-1.1505183999998962},{"x":-1.062456599999905,"y":-1.5999713999998448}]} />
<silkscreenpath route={[{"x":-0.7555737999999792,"y":-0.7609585999998671},{"x":-0.9910447497136374,"y":-0.7236636654167796},{"x":-1.2034661622468548,"y":-0.6154295497136673},{"x":-1.3720447497136092,"y":-0.4468509622467991},{"x":-1.480278865416949,"y":-0.23442954971369545},{"x":-1.5175738000000365,"y":0.0010414000000764645},{"x":-1.480278865416949,"y":0.23651234971384838},{"x":-1.3720447497136092,"y":0.44893376224695203},{"x":-1.2034661622468548,"y":0.6175123497138202},{"x":-0.9910447497136374,"y":0.7257464654169326},{"x":-0.7555737999999792,"y":0.7630414000000201}]} />
<silkscreenpath route={[{"x":0.7696961999999985,"y":0.7620254000000841},{"x":0.7684262000000217,"y":-0.7609585999998671}]} />
<silkscreentext text="{NAME}" pcbX="0.017145mm" pcbY="2.62687mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.8744550000000118,"y":1.8768700000000536},{"x":2.908745000000067,"y":1.8768700000000536},{"x":2.908745000000067,"y":-1.848929999999882},{"x":-2.8744550000000118,"y":-1.848929999999882},{"x":-2.8744550000000118,"y":1.8768700000000536}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C470426.obj?uuid=3b4659526cb047749d5c2a5ae931fe04",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C470426.step?uuid=3b4659526cb047749d5c2a5ae931fe04",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.00007619999996677507, y: -0.000025400000140507473, z: 0 },
      }}
      {...restProps}
    />
  )
}