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

// Land geometry transcribed from NVE's 2.5x2.5DFN6.kicad_mod.
// KiCad +Y is down; tscircuit +Y is up. Pins 3 and 4 MUST float.
import type { ChipProps } from "@tscircuit/props"
const pins = {pin1:["VDD"],pin2:["SIN"],pin3:["DNC3"],pin4:["DNC4"],pin5:["COS"],pin6:["GND"],pin7:["EP"]} as const
export const ADT002 = (props: ChipProps<typeof pins>) => <chip
 supplierPartNumbers={{jlcpcb:["C17208043"]}} manufacturerPartNumber="ADT002-10E" pinLabels={pins}
 noConnect={["DNC3","DNC4"]}
 footprint={<footprint>
  {[[-0.65,-1.25,1],[0,-1.25,2],[0.65,-1.25,3],[0.65,1.25,4],[0,1.25,5],[-0.65,1.25,6]].map(([x,y,n])=>
   <smtpad key={n} portHints={[`pin${n}`]} pcbX={x} pcbY={y} width={0.35} height={0.6} shape="rect" />)}
  <smtpad portHints={["pin7"]} pcbX={0} pcbY={0} width={2} height={1.3} shape="rect" />
  <silkscreenpath route={[{x:-1.25,y:-1.25},{x:-1.25,y:1.25}]} />
  <silkscreenpath route={[{x:1.25,y:-1.25},{x:1.25,y:1.25}]} />
  <silkscreentext text="1" pcbX={-2} pcbY={-1.25} fontSize={1} />
 </footprint>} {...props}/>