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/power-feed-routes.ts

import type { FanoutTracePath } from "@tscircuit/props";

// Explicit high-current feeds. The low-current branches remain autorouted.
// Coordinates are in the board frame; both ICs are on the bottom layer.
export const powerFeedRoutes: FanoutTracePath[] = [
  {
    connection: "U2.pin7",
    route: [
      {
        route_type: "wire",
        x: 13.658245,
        y: 29.52754953333333,
        width: 0.25,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: 12.8,
        y: 29.52754953333333,
        width: 0.25,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: 12,
        y: 30.32754953333333,
        width: 0.8,
        layer: "bottom",
      },
      {
        route_type: "via",
        x: 12,
        y: 30.32754953333333,
        from_layer: "bottom",
        to_layer: "top",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      {
        route_type: "wire",
        x: 12,
        y: 30.32754953333333,
        width: 2,
        layer: "top",
      },
      {
        route_type: "wire",
        x: -26.3,
        y: 30.32754953333333,
        width: 2,
        layer: "top",
      },
      { route_type: "wire", x: -26.3, y: -17.5, width: 2, layer: "top" },
      { route_type: "wire", x: -18, y: -17.5, width: 2, layer: "top" },
      {
        route_type: "via",
        x: -18,
        y: -17.5,
        from_layer: "top",
        to_layer: "bottom",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      { route_type: "wire", x: -18, y: -17.5, width: 0.8, layer: "bottom" },
      { route_type: "wire", x: -18, y: -20.94996, width: 0.8, layer: "bottom" },
      {
        route_type: "wire",
        x: -17.2,
        y: -20.94996,
        width: 0.5,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: -16.35001,
        y: -20.94996,
        width: 0.5,
        layer: "bottom",
      },
    ],
  },
  {
    connection: "U4.pin6",
    route: [
      {
        route_type: "wire",
        x: -13.64999,
        y: -20.94996,
        width: 0.5,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: -12.5,
        y: -20.94996,
        width: 0.5,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: -10.7,
        y: -22.74996,
        width: 1.2,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: -10.7,
        y: -58.4346427,
        width: 1.2,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: -8.899779000000002,
        y: -58.4346427,
        width: 0.8,
        layer: "bottom",
      },
    ],
  },
  {
    connection: "U2.pin10",
    route: [
      {
        route_type: "wire",
        x: 14.999873,
        y: 29.5478526,
        width: 0.25,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: 14.999873,
        y: 31.2,
        width: 0.25,
        layer: "bottom",
      },
      {
        route_type: "via",
        x: 14.999873,
        y: 31.2,
        from_layer: "bottom",
        to_layer: "top",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      { route_type: "wire", x: 14.999873, y: 31.2, width: 2, layer: "top" },
      { route_type: "wire", x: 26.3, y: 31.2, width: 2, layer: "top" },
      { route_type: "wire", x: 26.3, y: -50, width: 2, layer: "top" },
      { route_type: "wire", x: 18.5, y: -57.8, width: 2, layer: "top" },
      { route_type: "wire", x: 18.5, y: -59.7046427, width: 2, layer: "top" },
      { route_type: "wire", x: 10.5, y: -59.7046427, width: 2, layer: "top" },
      {
        route_type: "via",
        x: 10.5,
        y: -59.7046427,
        from_layer: "top",
        to_layer: "bottom",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      {
        route_type: "wire",
        x: 10.5,
        y: -59.7046427,
        width: 0.8,
        layer: "bottom",
      },
      {
        route_type: "wire",
        x: 8.899778999999999,
        y: -59.7046427,
        width: 0.8,
        layer: "bottom",
      },
    ],
  },
  {
    connection: "CSYS.pin1",
    route: [
      { route_type: "wire", x: -11.0875, y: 26, width: 0.8, layer: "bottom" },
      { route_type: "wire", x: -9, y: 26, width: 0.8, layer: "bottom" },
      {
        route_type: "via",
        x: -9,
        y: 26,
        from_layer: "bottom",
        to_layer: "top",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      { route_type: "wire", x: -9, y: 26, width: 0.8, layer: "top" },
      { route_type: "wire", x: 6.3, y: 26, width: 0.8, layer: "top" },
      { route_type: "wire", x: 6.45, y: 25.85, width: 0.8, layer: "top" },
      { route_type: "wire", x: 8.2, y: 25.85, width: 0.8, layer: "top" },
      { route_type: "wire", x: 8.35, y: 26, width: 0.8, layer: "top" },
      { route_type: "wire", x: 20, y: 26, width: 0.8, layer: "top" },
      {
        route_type: "via",
        x: 20,
        y: 26,
        from_layer: "top",
        to_layer: "bottom",
        via_diameter: 0.6,
        via_hole_diameter: 0.3,
      },
      { route_type: "wire", x: 20, y: 26, width: 0.8, layer: "bottom" },
      { route_type: "wire", x: 24, y: 26, width: 0.8, layer: "bottom" },
      { route_type: "wire", x: 24, y: 29.5, width: 0.8, layer: "bottom" },
      { route_type: "wire", x: 22.9125, y: 29.5, width: 0.8, layer: "bottom" },
    ],
  },
];