Devesh36/bench-eight
Eight-channel 0–10 V measurement and control console: dual ADS1115 ADCs, buffered inputs, Pico controller, microSD, RTC, RS-485, four protected low-voltage outputs and a separate OLED/encoder panel in a tscircuit assembly.
- Version
- 0.1.3
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone Devesh36/bench-eight # download the package files into ./bench-eight
tsci add Devesh36/bench-eight # add it to your project as @tsci/Devesh36.bench-eightIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
imports/INA219AIDCNR/INA219AIDCNR.tsx
import objPath from "./INA219AIDCNR.obj";
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["IN_POS"],
pin2: ["IN_NEG"],
pin3: ["GND"],
pin4: ["VS"],
pin5: ["SCL"],
pin6: ["SDA"],
pin7: ["A0"],
pin8: ["A1"],
} as const;
const pinAttributes = {
pin3: { requiresGround: true },
pin1: { isInput: true },
pin2: { isInput: true },
pin4: {
requiresPower: true,
shouldHaveDecouplingCapacitor: true,
recommendedDecouplingCapacitorCapacitance: "100nF",
},
pin8: { isInput: true },
pin7: { isInput: true },
pin6: {
isBidirectional: true,
capabilities: ["i2c_sda"],
needsExternalPullup: true,
canUseOpenDrain: true,
},
pin5: { isInput: true, capabilities: ["i2c_scl"], needsExternalPullup: true },
} satisfies NonNullable<ChipProps["pinAttributes"]>;
export const INA219AIDCNR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
jlcpcb: ["C87469"],
}}
manufacturerPartNumber="INA219AIDCNR"
footprint="dfn8_pillpads_p0.65mm_w3.7mm_pw0.36mm_pl1.25mm_pin1location(rightside,bottom)"
cadModel={{
objUrl: objPath,
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C87469.step?uuid=7304035254c941188b587adb626783d8",
pcbRotationOffset: 180,
modelOriginPosition: {
x: 0,
y: -0.000012699999956566899,
z: -0.049083,
},
}}
{...props}
/>
);
};