tscircuit/ti
ti tscircuit library
- Version
- 1.0.85
- License
- unset
- Stars
- 0
lib/subcircuits/EnvironmentalSensor_HDC3020.circuit.tsx
PCB
Schematic
import type { SubcircuitProps } from "@tscircuit/props";
import { HDC3020DEFR } from "../chips/HDC3020DEFR.circuit.tsx";
export const EnvironmentalSensor_HDC3020 = (props: SubcircuitProps) => (
<subcircuit width={100} height={100} {...props}>
<chip
name="U2"
manufacturerPartNumber="MCU"
footprint="pinrow5"
schX={4.5}
schY={0}
schWidth={3.2}
schHeight={4.6}
pinLabels={{
pin1: "VDD",
pin2: "SCL",
pin3: "SDA",
pin4: "GPIO",
pin5: "GND",
}}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: ["pin1", "pin2", "pin3", "pin4", "pin5"],
},
}}
schPinStyle={{
pin3: {
topMargin: 0.25,
},
}}
connections={{
pin1: "net.VDD",
pin2: "net.SCL",
pin3: "net.SDA",
pin4: "net.ALERT",
pin5: "net.GND",
}}
/>
<HDC3020DEFR
name="U1"
schX={-2.1}
schY={0}
schWidth={3.2}
schHeight={4.6}
schPinArrangement={{
rightSide: {
direction: "top-to-bottom",
pins: ["VDD", "SCL", "SDA", "ALERT", "RESET", "ADDR", "ADDR1", "GND"],
},
}}
schPinStyle={{
VDD: {
topMargin: 1.55,
},
SDA: {
topMargin: 0.25,
},
RESET: {
topMargin: 0.25,
},
ADDR: {
topMargin: 0.45,
},
ADDR1: {
topMargin: 0.25,
},
}}
connections={{
SDA: "net.SDA",
SCL: "net.SCL",
ALERT: "net.ALERT",
VDD: "net.VDD",
ADDR: "net.GND",
ADDR1: "net.GND",
GND: "net.GND",
EP: "net.GND",
}}
noConnect={["RESET"]}
/>
<resistor
name="R1"
resistance="5k"
footprint="0402"
schX={0.7}
schY={2.15}
schRotation="270deg"
connections={{
pin1: "net.VDD",
pin2: "net.SCL",
}}
/>
<resistor
name="R2"
resistance="5k"
footprint="0402"
schX={1.5}
schY={2.15}
schRotation="270deg"
connections={{
pin1: "net.VDD",
pin2: "net.SDA",
}}
/>
</subcircuit>
);
export default EnvironmentalSensor_HDC3020;