imrishabh18/nema-23-stepper-controller
A tscircuit package created by imrishabh18.
- Version
- 1.3.13
- License
- unset
- Stars
- 1
voltage-monitor.tsx
import { INA238AIDGSR } from "./imports/INA238AIDGSR";
const monitor = { schSheetName: "sensing", schSectionName: "voltage_monitor" };
/** Read the actual motor supply after the eFuse and reverse-blocking diode.
* INA238's 85 V VBUS input tolerates VM being present with logic power off.
* I2C1 address 0x40 (A1=A0=GND), distinct from TMP102 at 0x48.
* This is voltage-only: unused shunt inputs are grounded, ALERT is unused.
*/
export function PowerVoltageMonitor() {
return <group name="POWER_VOLTAGE_MONITOR" pcbRelative pcbX={0} pcbY={0} schAutoLayoutEnabled schMarginTop={2.5} schMarginX={1.2} schSheetName="sensing">
<INA238AIDGSR schWidth={1.45} name="U_VMON" pcbX={-10} pcbY={-17} pcbRotation={90} schMarginX={0.8} schMarginY={0.8} {...monitor}
noConnect={["ALERT"]}
connections={{ A1: "net.GND", A0: "net.GND", SDA: "net.TEMP_SDA", SCL: "net.TEMP_SCL",
VS: "net.V3V3", GND: "net.GND", VBUS: "net.VM", IN_NEG: "net.GND", IN_POS: "net.GND" }} />
<capacitor name="C_VMON" manufacturerPartNumber="CL05B104KO5NNNC" supplierPartNumbers={{ jlcpcb: ["C1525"] }} capacitance="100nF" maxVoltageRating="16V" footprint="0402"
pcbX={-12} pcbY={-14} pcbRotation={90} schOrientation="vertical" schMarginX={0.6} schMarginY={0.8} {...monitor}
connections={{ pin1: "net.V3V3", pin2: "net.GND" }} />
</group>;
}