gokul/wireless-calculator
A USB‑C rechargeable battery-powered controller board with MCP73871 Li‑ion charging, TPS63070 buck‑boost and LDO power regulation, ATmega328P and ESP32‑S3 control, LCD/keypad user interface, status LEDs, and UART/programming connectors.
- Version
- 0.0.1
- License
- ISC
- Stars
- 0
lib/battery-connector.tsx
import type { ConnectorProps } from "@tscircuit/props";
// JST PH B2B-PH-K-S: 2 mm pitch, 0.80–0.85 mm finished plated holes.
// See https://www.jst.com/resources/faq/ (PH series PCB hole sizes).
export const BatteryConnector = (props: ConnectorProps) => (
<connector
{...props}
manufacturerPartNumber="B2B-PH-K-S(LF)(SN)"
pinLabels={{ pin1: "BAT_PLUS", pin2: "BAT_MINUS" }}
footprint={
<footprint>
<platedhole
portHints={["pin1"]}
pcbX={-1}
pcbY={0}
holeDiameter={0.85}
outerDiameter={1.8}
shape="circle"
/>
<platedhole
portHints={["pin2"]}
pcbX={1}
pcbY={0}
holeDiameter={0.85}
outerDiameter={1.8}
shape="circle"
/>
<silkscreenrect pcbY={0.5} width={5.9} height={4.5} />
<courtyardrect pcbY={0.5} width={6.9} height={5.5} />
<silkscreentext text="+" pcbX={-2.3} pcbY={-1.2} fontSize={1} />
</footprint>
}
/>
);