

RS-485
A high-speed (12 Mbaud) USB-to-RS485 adapter with 15 W power supply.
- Size
- 68.6 × 22.9 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 14
- Nets
- 50
- Pads
- 191
- Tracks, vias
- 0, 0
- Pours
- 1
- Routed
- Not yet
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 23 Jun 2024
- Updated
- 25 Jun 2024
Overview
RS-485 is an open-source printed circuit board by JetForMe, from the JetForMe/USB-to-RS485 repository on GitHub, published under the MIT licence. It is a 4-layer board of 68.6 × 22.9 mm with 14 parts on 50 nets.
It is built around the LFXTAL055999 and USB4105-GF-A. Its parts include 5 resistors, 4 connectors, 2 capacitors, 2 ICs and 1 crystal. It belongs with the interfaces and adapters boards of this library.
Main components
2README
README.mdHigh Speed USB to EIA-485 Adapter
I got fed up trying to find a USB-to-EIA485 adapter that could do 4 Mbps or better. Most of the available FTDI and CP2102N ICs top out at 3 Mbps, and most of the available EIA-485 driver ICs are slew rate-limited to well below 4 Mbps.
So I’ve created this adapter. Some of its features include:
- USB-C
- 12 Mbps maximum speed
- 5 V, 3 A power output
- 3.3 V, 600 mA (including the adapter itself) power output
- Configurable USB-C PD output, up to 20 V @ 100 W (hopefully)
- FTDI-compatible 3.3 V 6-pin UART header (5V tolerant)
- 3.3 V or 5 V selectable, ±70V fault-protected EIA-485 driver (PROFIBUS compatible)
- Full- or half-duplex operation
- Optional bus termination resistors
- EIA-485A and EIA-422B compatible
- JTAG programmer/debugger
- Interface to many other serial busses (I2C, SPI, etc.)
- All FT232HP GPIO pins brought out on headers
To Do
So much still to do!
- Add 5 V, 3 A buck regulator
- Add 3.3V linear regulator
- Add EEPROM
- Decoupling caps!
- Connect RESET and PWRSAV
- Remove voltage selector from FTDI header? We can't do 5V IO on it, although I think it’s 5V-tolerant.
- PCB layout
- Change schematic PDF generation to happen on push, if possible.
macOS Notes
To set non-standard UART speeds on macOS, you must use ioctl() after calling tcsetattr():
In C/C++:
#include <sys/ioctl.h>
#include <termios.h>
#define IOSSIOSPEED _IOW('T', 2, speed_t) // Defined in <IOKit/serial/ioss.h>
speed_t speed = 4000000;
if (ioctl(fd, IOSSIOSPEED, &speed) != 0)
{
perror(__FILE__ ":" STRINGIZE(__LINE__) ": ioctl set speed");
}From IOSerialTestLib.c:
int _testIOSSIOSPEEDIoctl(int fd, speed_t speed)
{
struct termios options;
// The IOSSIOSPEED ioctl can be used to set arbitrary baud rates other than
// those specified by POSIX. The driver for the underlying serial hardware
// ultimately determines which baud rates can be used. This ioctl sets both
// the input and output speed.
if (ioctl(fd, IOSSIOSPEED, &speed) == -1) {
printf("[WARN] ioctl(..., IOSSIOSPEED, %lu).\n", speed);
goto fail;
}
// Check that speed is properly modified
if (tcgetattr(fd, &options) == -1) {
printf("[WARN] _modifyAttributes: tcgetattr failed\n");
goto fail;
}
if (cfgetispeed(&options) != speed ||
cfgetospeed(&options) != speed) {
printf("[WARN] _modifyAttributes: cfsetspeed failed, %lu, %lu.\n",
speed,Swift version to come! (_IOW defined in <sys/ioccom.h>)
Parts
14| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 120Ω | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4, R5 |
| 2 | 18pF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C2 |
| 2 | 200Ω | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R2, R3 |
| 2 | Conn_01x16_Pin | Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_Vertical | J6, J7 |
| 1 | 12kΩ 1% | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1 |
| 1 | FT232HP | Package_DFN_QFN:QFN-56-1EP_8x8mm_P0.5mm_EP5.9x5.9mm_ThermalVias | U1 |
| 1 | LFXTAL055999 | Oscillator:Oscillator_SMD_TXC_7C-4Pin_5.0x3.2mm_HandSoldering | Y1 |
| 1 | Screw_Terminal_01x06 | TerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-6_1x06_P2.54mm_Horizontal | J2 |
| 1 | USB_C_Plug_USB2.0 | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | P1 |
| 1 | ~ | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U2 |
Similar boards
- 4 layers16.9 × 119.4 mm

- 2 layers21 × 31.5 mm

- 2 layers60 × 111.3 mm

Silkscreen pcb
iandchasse/silkscreen-pcb
Silkscreen: open-hardware ESP32-S3 e-paper reader mainboard (KiCad 9). Formerly the de-link hub.
189 parts589CERN-OHL-S-2.0 - 4 layers99.6 × 76.2 mm

- 2 layers45 × 45 mm

AirCube
StuckAtPrototype/AirCube
Works standalone out of the box. Pairs with Home Assistant in minutes. Other platforms are supported through community-contributed extensions.
61 parts379Apache-2.0 - 4 layers22.9 × 61 mm

- 4 layers55 × 14.7 mm

- 4 layers17.8 × 38.1 mm

Questions
How big is the RS-485 PCB?
It measures 68.6 × 22.9 mm and has 4 copper layers, 1.6 mm thick.
What parts does the RS-485 use?
14 parts, built around the LFXTAL055999 and USB4105-GF-A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the RS-485 KiCad files?
From the JetForMe/USB-to-RS485 repository on GitHub, at the commit this page was made from: the board is hardware/RS-485/RS-485.kicad_pcb and its schematic hardware/RS-485/RS-485.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the RS-485 design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).