tscircuit/sparkfun-boards
This code defines a detailed PCB schematic and physical footprint layout for various embedded hardware modules, mapping electrical pins, mechanical mounting holes, and silk-screen annotations for manufacturing and assembly.
- Version
- 0.0.32
- License
- unset
- Stars
- 3
boards/SparkFun-I2C-DAC-Breakout-MCP4725/SparkFun I2C DAC Breakout - MCP4725.circuit.tsx
import { sel } from "tscircuit"
import { MCP4725A1T_E_CH } from "./MCP4725A1T_E_CH"
const I2CDACBREAKOUT = () => (
<board width="15.24mm" height="15.24mm">
<MCP4725A1T_E_CH
name="U1"
connections={{
VOUT: sel.JP6.pin2,
VSS: sel.net.GND,
VDD: sel.net.VCC,
SDA: sel.net.SDA,
SCL: sel.net.SCL,
A0: sel<"pin2">("SJ2").pin2,
}}
/>
<resistor
resistance="4.7k"
name="R1"
pcbRotation={270}
pcbY={4.445}
footprint="0603"
schY={1}
schX={2}
schRotation={90}
connections={{
pin1: sel.net.SCL,
pin2: sel<"pin3">("SJ1").pin3,
}}
/>
<resistor
resistance="4.7k"
name="R2"
pcbRotation={90}
pcbY={4.445}
pcbX={-1.905}
footprint="0603"
schY={1}
schX={3}
schRotation={90}
connections={{
pin1: sel.net.SDA,
pin2: sel<"pin1">("SJ1").pin1,
}}
/>
<resistor
resistance="10k"
name="R3"
pcbRotation={90}
pcbY={-3.81}
pcbX={1.905}
footprint="0603"
schY={-2.6}
schX={0}
connections={{
pin1: sel.net.GND,
pin2: sel<"pin3">("SJ2").pin3,
}}
/>
<capacitor
capacitance="0.1uF"
name="C1"
pcbRotation={90}
pcbY={4.445}
pcbX={1.905}
footprint="cap0603"
schY={0}
schX={5}
schRotation={270}
connections={{
pin1: sel.net.VCC,
pin2: sel.net.GND,
}}
/>
<jumper
name="JP6"
pinLabels={{
pin1: ["GND"],
pin2: ["VOUT"],
}}
footprint="pinrow2_p2.54_id1.016_od1.88_nosquareplating_pinlabeltextalignleft_pinlabelorthogonal_doublesidedpinlabel"
pcbX={-6.35}
pcbY={5.08}
pcbRotation={90}
schY={0.1}
schX={-3.2}
connections={{
pin1: sel.net.GND,
}}
/>
<jumper
name="JP5"
pinLabels={{
pin1: ["SCL"],
pin2: ["SDA"],
pin3: ["VCC"],
pin4: ["GND"],
}}
footprint="pinrow4_p2.54_id1.016_od1.88_pinlabeltextalignright_pinlabelorthogonal_pinlabelverticallyinverted_doublesidedpinlabel"
pcbX={-6.35}
pcbY={-2.54}
pcbRotation={270}
schY={0}
schX={8}
connections={{
pin4: sel.net.GND,
pin2: sel.net.SDA,
pin1: sel.net.SCL,
pin3: sel.net.VCC,
}}
/>
<silkscreentext
text="I2C"
layer="bottom"
pcbX={0}
pcbY={4.2}
fontSize={0.5}
/>
<silkscreentext
text="PULLUPS"
layer="bottom"
pcbX={0}
pcbY={3.2}
fontSize={0.5}
/>
<silkscreentext text="GND" pcbX={0} pcbY={-2.5} fontSize={0.5} />
<silkscreentext text="VCC" pcbX={0} pcbY={-6.5} fontSize={0.5} />
<silkscreentext
text="ADDR"
pcbX={-0.8}
pcbY={-4.5}
pcbRotation={90}
fontSize={0.5}
/>
<silkscreentext
text="MCP4725"
pcbX={6.5}
pcbRotation={270}
fontSize={0.7}
/>
<schematictext
fontSize={0.3}
text="Vcc = 2.7V to 5.5V"
schX={2}
schY={3.5}
anchor="center_left"
/>
<schematictext
fontSize={0.3}
text="I2C Address"
schX={2}
schY={-3.5}
anchor="center_left"
/>
<schematictext
fontSize={0.3}
text="GND = 1100000 (0x60) (Default)"
schX={2}
schY={-3.8}
anchor="center_left"
/>
<schematictext
fontSize={0.3}
text="VCC - 1100001 (0x61)"
schX={2}
schY={-3.2}
anchor="center_left"
/>
<solderjumper
cadModel={null}
name="SJ1"
pinCount={3}
bridgedPins={[
["pin1", "pin2"],
["pin2", "pin3"],
]}
footprint="solderjumper3_bridged123_p0.8_pw0.635_ph1.270"
pcbX="0.8"
pcbY="5.715"
layer="bottom"
schY={2}
schX={2.5}
schRotation={180}
connections={{
pin2: sel.net.VCC,
}}
/>
<solderjumper
cadModel={null}
name="SJ2"
pinCount={3}
footprint="solderjumper3_p0.8_pw0.635_ph1.270"
pcbX="0"
pcbY="-5.245"
pcbRotation={90}
schY={-2.5}
schX={1.8}
schRotation={180}
connections={{
pin1: sel.net.VCC,
}}
/>
<hole name="MH1" diameter="3.302mm" pcbX="5.715mm" pcbY="5.715mm" />
<hole name="MH1-2" diameter="3.302mm" pcbX="5.715mm" pcbY="-5.715mm" />
</board>
)
export default I2CDACBREAKOUT