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-io

In 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.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import React from "react"
import { PowerBlock } from "./src/power"
import { McuBlock } from "./src/mcu"
import { Rs485Block } from "./src/rs485"
import { InputsBlock } from "./src/inputs"
import { OutputsBlock } from "./src/outputs"

export default () => (
  <board
    width="100mm"
    height="70mm"
    layers={2}
    title="Isolated RS-485 industrial I/O module"
    partsEngineDisabled
    routeRemaining
  >
    <net name="GND" isGroundNet />
    <net name="V3_3" isPowerNet />
    <net name="V5" isPowerNet />
    <net name="V24" isPowerNet />
    <net name="V24_F" />
    <net name="V24_P" />
    <net name="V1_1" />
    <net name="ISO_5V" />
    <net name="ISO_GND" />
    <net name="FIELD_COM" />

    <schematicsheet name="Power" displayName="24 V input, 5 V buck, 3.3 V LDO" sheetIndex={0} />
    <schematicsheet name="MCU" displayName="RP2040, QSPI flash, clock, SWD" sheetIndex={1} />
    <schematicsheet name="RS485" displayName="Isolated RS-485" sheetIndex={2} />
    <schematicsheet name="Inputs A" displayName="Opto inputs 1-4" sheetIndex={3} />
    <schematicsheet name="Inputs B" displayName="Opto inputs 5-8" sheetIndex={4} />
    <schematicsheet name="Outputs" displayName="Relay outputs 1-4" sheetIndex={5} />

    <hole name="H1" diameter="3.2mm" pcbX={-40} pcbY={32.5} />
    <hole name="H2" diameter="3.2mm" pcbX={41} pcbY={32.5} />

    <PowerBlock />
    <McuBlock />
    <Rs485Block />
    <InputsBlock />
    <OutputsBlock />
  </board>
)