krishnax12/rs485-breakout
The code models a SparkFun RS-485 transceiver breakout hardware with connected microchip, connectors, resistors, LEDs, capacitors, and mounting holes for serial communication interfacing.
- Version
- 0.1.0
- License
- CC-BY-SA-4.0
- Stars
- 1
dist/index.cjs
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
/**
* SparkFun Transceiver RS-485 Breakout (BOB-10124)
*
* Source: https://github.com/sparkfun/RS-485_Breakout
* Pinned source commit: 08f1d60e6739cf89f001febbcf19147ea7988cf7
* License: CC BY-SA 4.0
*/
const Sp3485 = () => (jsxRuntime.jsx("chip", { name: "U2", manufacturerPartNumber: "SP3485", footprint: "soic8", pcbX: -3.81, pcbY: 0, schX: 0, schY: 0, pinLabels: {
pin1: "RO",
pin2: "RE_N",
pin3: "DE",
pin4: "DI",
pin5: "GND",
pin6: "A",
pin7: "B",
pin8: "VCC",
}, pinAttributes: {
VCC: { requiresPower: true },
GND: { requiresGround: true },
}, schPinArrangement: {
leftSide: {
pins: ["RO", "RE_N", "DE", "DI"],
direction: "top-to-bottom",
},
rightSide: {
pins: ["VCC", "B", "A", "GND"],
direction: "top-to-bottom",
},
} }));
const SparkFunRs485Breakout = () => (jsxRuntime.jsx("board", { width: "22.86mm", height: "27.94mm", routingDisabled: true, children: jsxRuntime.jsxs("schematicsheet", { sheetWidth: "220mm", sheetHeight: "160mm", children: [jsxRuntime.jsx("net", { name: "VCC", isPowerNet: true }), jsxRuntime.jsx("net", { name: "GND", isGroundNet: true }), jsxRuntime.jsx("net", { name: "RTS" }), jsxRuntime.jsx("net", { name: "RX_I" }), jsxRuntime.jsx("net", { name: "TX_O" }), jsxRuntime.jsx("net", { name: "A" }), jsxRuntime.jsx("net", { name: "B" }), jsxRuntime.jsx("net", { name: "RJ45_1" }), jsxRuntime.jsx("net", { name: "RJ45_2" }), jsxRuntime.jsx("net", { name: "RJ45_3" }), jsxRuntime.jsx("net", { name: "RJ45_5" }), jsxRuntime.jsx(Sp3485, {}), jsxRuntime.jsx("connector", { name: "JP9", footprint: "pinrow5_p2.54", pcbX: -8.89, pcbY: 5.08, schX: -6.8, schY: 1, pinLabels: {
pin1: "VCC",
pin2: "RX_I",
pin3: "TX_O",
pin4: "RTS",
pin5: "GND",
} }), jsxRuntime.jsx("connector", { name: "JP2", footprint: "pinrow3_p3.5", pcbX: 6.35, pcbY: -3.429, schX: 7.1, schY: 1.78, pinLabels: { pin1: "GND", pin2: "A", pin3: "B" } }), jsxRuntime.jsx("connector", { name: "JP3", footprint: "pinrow3_p2.54", pcbX: 10.16, pcbY: -2.54, schX: 7.1, schY: 0, pinLabels: { pin1: "GND", pin2: "A", pin3: "B" } }), jsxRuntime.jsx("connector", { name: "JP4", footprint: "pinrow8_p2.54", pcbX: 8.89, pcbY: 0, schX: 7.37, schY: -2.79, pinLabels: {
pin1: "P1",
pin2: "P2",
pin3: "P3",
pin4: "GND1",
pin5: "GND2",
pin6: "P6",
pin7: "B",
pin8: "A",
} }), jsxRuntime.jsx("connector", { name: "JP1", footprint: "pinrow4_p2.54", pcbX: -3.81, pcbY: -12.7, schX: 7.37, schY: 3.81, pinLabels: { pin1: "P6", pin2: "P3", pin3: "P2", pin4: "P1" } }), jsxRuntime.jsx("resistor", { name: "R4", resistance: "220ohm", footprint: "0603", pcbX: -4.064, pcbY: 5.08, schX: 9.4, schY: 1.78, schRotation: 90 }), jsxRuntime.jsx("resistor", { name: "R3", resistance: "330ohm", footprint: "0603", pcbX: -3.81, pcbY: -6.35, schX: -5.08, schY: 0, schRotation: 90 }), jsxRuntime.jsx("led", { name: "LED3", color: "green", footprint: "0603", pcbX: -3.81, pcbY: -7.874, schX: -5.08, schY: -1, schRotation: 90 }), jsxRuntime.jsx("capacitor", { name: "C3", capacitance: "100nF", footprint: "0603", pcbX: -6.477, pcbY: 5.461, schX: 2.8, schY: -0.25, schRotation: 90 }), jsxRuntime.jsx("hole", { name: "H1", diameter: "3.2mm", pcbX: -8.89, pcbY: 11.43 }), jsxRuntime.jsx("hole", { name: "H2", diameter: "3.2mm", pcbX: -8.89, pcbY: -11.43 }), jsxRuntime.jsx("hole", { name: "H3", diameter: "3.2mm", pcbX: 8.89, pcbY: 11.43 }), jsxRuntime.jsx("hole", { name: "H4", diameter: "3.2mm", pcbX: 8.89, pcbY: -11.43 }), jsxRuntime.jsx("trace", { from: ".U2 > .VCC", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".JP9 > .VCC", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".C3 > .pin1", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".U2 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP9 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP2 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP3 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP4 > .GND1", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP4 > .GND2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C3 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".LED3 > .cathode", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U2 > .RE_N", to: "net.RTS" }), jsxRuntime.jsx("trace", { from: ".U2 > .DE", to: "net.RTS" }), jsxRuntime.jsx("trace", { from: ".JP9 > .RTS", to: "net.RTS" }), jsxRuntime.jsx("trace", { from: ".R3 > .pin2", to: "net.RTS" }), jsxRuntime.jsx("trace", { name: "N$4", from: ".R3 > .pin1", to: ".LED3 > .anode" }), jsxRuntime.jsx("trace", { from: ".U2 > .DI", to: "net.RX_I" }), jsxRuntime.jsx("trace", { from: ".JP9 > .RX_I", to: "net.RX_I" }), jsxRuntime.jsx("trace", { from: ".U2 > .RO", to: "net.TX_O" }), jsxRuntime.jsx("trace", { from: ".JP9 > .TX_O", to: "net.TX_O" }), jsxRuntime.jsx("trace", { from: ".U2 > .A", to: "net.A" }), jsxRuntime.jsx("trace", { from: ".JP2 > .A", to: "net.A" }), jsxRuntime.jsx("trace", { from: ".JP3 > .A", to: "net.A" }), jsxRuntime.jsx("trace", { from: ".JP4 > .A", to: "net.A" }), jsxRuntime.jsx("trace", { from: ".R4 > .pin1", to: "net.A" }), jsxRuntime.jsx("trace", { from: ".U2 > .B", to: "net.B" }), jsxRuntime.jsx("trace", { from: ".JP2 > .B", to: "net.B" }), jsxRuntime.jsx("trace", { from: ".JP3 > .B", to: "net.B" }), jsxRuntime.jsx("trace", { from: ".JP4 > .B", to: "net.B" }), jsxRuntime.jsx("trace", { from: ".R4 > .pin2", to: "net.B" }), jsxRuntime.jsx("trace", { from: ".JP4 > .P1", to: "net.RJ45_1" }), jsxRuntime.jsx("trace", { from: ".JP1 > .P1", to: "net.RJ45_1" }), jsxRuntime.jsx("trace", { from: ".JP4 > .P2", to: "net.RJ45_2" }), jsxRuntime.jsx("trace", { from: ".JP1 > .P2", to: "net.RJ45_2" }), jsxRuntime.jsx("trace", { from: ".JP4 > .P3", to: "net.RJ45_3" }), jsxRuntime.jsx("trace", { from: ".JP1 > .P3", to: "net.RJ45_3" }), jsxRuntime.jsx("trace", { from: ".JP4 > .P6", to: "net.RJ45_5" }), jsxRuntime.jsx("trace", { from: ".JP1 > .P6", to: "net.RJ45_5" })] }) }));
exports.SparkFunRs485Breakout = SparkFunRs485Breakout;
exports.default = SparkFunRs485Breakout;