aj0070/rs485-io
A 100×70 mm industrial I/O PCB with protected 24 V power conversion, RP2040 control, isolated RS-485, eight opto-isolated digital inputs, and four transistor-driven relay outputs.
- Version
- 1.0.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/rs485-io # download the package files into ./rs485-io
tsci add aj0070/rs485-io # add it to your project as @tsci/aj0070.rs485-ioIn 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.
src/rs485.tsx
import React from "react"
// ISO3082 isolated RS-485 with B0505S isolated supply, 120 ohm termination
// jumper, fail-safe bias and SM712 TVS. Schematic sheet: RS485 (sheet 2).
export const Rs485Block = () => (
<>
<chip
name="U5"
footprint="soic16"
manufacturerPartNumber="ISO3082"
pinLabels={{
pin1: "VCC1",
pin2: "GND1",
pin3: "R",
pin4: "RE_N",
pin5: "DE",
pin6: "D",
pin7: "NC1",
pin8: "GND1B",
pin9: "GND2",
pin10: "NC2",
pin11: "NC3",
pin12: "B",
pin13: "A",
pin14: "NC4",
pin15: "GND2B",
pin16: "VCC2",
}}
noConnect={["NC1", "NC2", "NC3", "NC4"]}
connections={{
VCC1: "net.V3_3",
GND1: "net.GND",
GND1B: "net.GND",
R: "net.RS485_RX",
RE_N: "net.RS485_DE",
DE: "net.RS485_DE",
D: "net.RS485_TX",
GND2: "net.ISO_GND",
GND2B: "net.ISO_GND",
A: "net.RS485_A",
B: "net.RS485_B",
VCC2: "net.ISO_5V",
}}
pcbX={41}
pcbY={8}
pcbRotation={0}
schSheetName="RS485"
schX={0}
schY={2}
schWidth={2.15}
schHeight={1.8}
/>
<chip
name="U6"
footprint="pinrow4_p2.54mm"
manufacturerPartNumber="B0505S-1W"
pinLabels={{ pin1: "VIN_N", pin2: "VIN_P", pin3: "VOUT_N", pin4: "VOUT_P" }}
connections={{
VIN_N: "net.GND",
VIN_P: "net.V5",
VOUT_N: "net.ISO_GND",
VOUT_P: "net.ISO_5V",
}}
pcbX={29}
pcbY={1}
schSheetName="RS485"
schX={-5.5}
schY={2}
schWidth={2.245}
schHeight={0.6}
/>
<capacitor
name="C20"
footprint="0603"
capacitance="100nF"
connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
pcbX={35.5}
pcbY={4}
pcbRotation={180}
schSheetName="RS485"
schX={-2.5}
schY={5}
schRotation={270}
/>
<capacitor
name="C21"
footprint="0805"
capacitance="10uF"
connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
pcbX={35.5}
pcbY={7}
pcbRotation={180}
schSheetName="RS485"
schX={-1.4}
schY={5}
schRotation={270}
/>
<capacitor
name="C22"
footprint="0603"
capacitance="100nF"
connections={{ pin1: "net.ISO_5V", pin2: "net.ISO_GND" }}
pcbX={46}
pcbY={6}
schSheetName="RS485"
schX={2.5}
schY={5}
schRotation={270}
/>
<capacitor
name="C23"
footprint="0805"
capacitance="10uF"
connections={{ pin1: "net.ISO_5V", pin2: "net.ISO_GND" }}
pcbX={46}
pcbY={9}
schSheetName="RS485"
schX={3.6}
schY={5}
schRotation={270}
/>
<resistor
name="R20"
footprint="0805"
resistance="120"
connections={{ pin1: "net.RS485_TERM", pin2: "net.RS485_B" }}
pcbX={38}
pcbY={20.5}
pcbRotation={0}
schSheetName="RS485"
schX={8.5}
schY={4}
schRotation={270}
/>
<solderjumper
name="JP1"
footprint="solderjumper2"
pinLabels={{ pin1: "A", pin2: "TERM" }}
connections={{ pin1: "net.RS485_A", pin2: "net.RS485_TERM" }}
pcbX={39.7}
pcbY={16.5}
pcbRotation={180}
schSheetName="RS485"
schX={10}
schY={4}
schRotation={270}
/>
<chip
name="D20"
footprint="sot23"
manufacturerPartNumber="SM712"
pinLabels={{ pin1: "A", pin2: "B", pin3: "GND" }}
connections={{ A: "net.RS485_A", B: "net.RS485_B", GND: "net.ISO_GND" }}
pcbX={47}
pcbY={13}
schSheetName="RS485"
schX={6.5}
schY={1.5}
schWidth={1.58}
schHeight={0.6}
/>
<resistor
name="R21"
footprint="0603"
resistance="680"
connections={{ pin1: "net.ISO_5V", pin2: "net.RS485_A" }}
pcbX={45.5}
pcbY={0}
schSheetName="RS485"
schX={5.5}
schY={3.5}
schRotation={270}
/>
<resistor
name="R22"
footprint="0603"
resistance="680"
connections={{ pin1: "net.RS485_B", pin2: "net.ISO_GND" }}
pcbX={48.5}
pcbY={0}
schSheetName="RS485"
schX={5.5}
schY={0}
schRotation={270}
/>
<connector
name="J3"
footprint="pinrow3_p5.08mm"
pinLabels={{ pin1: "A", pin2: "B", pin3: "COM" }}
connections={{ pin1: "net.RS485_A", pin2: "net.RS485_B", pin3: "net.ISO_GND" }}
pcbX={46}
pcbY={26}
pcbRotation={90}
allowOffBoard
schSheetName="RS485"
schX={10}
schY={-2}
>
<footprint insertionDirection="from_above" />
</connector>
</>
)