Skip to the content
2 layers78.2 × 25.1 mmUsb iso rs485, the printed circuit board in 3D

I connected a lot of USB-RS485 adapters to my smart meter readout software and wasn't happy. Either the device is cheap and broken or works but is very expensive.

Size
78.2 × 25.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
39
Nets
31
Pads
126
Tracks, vias
252, 67
Pours
8
Routed
Yes
KiCad
KiCad 4
Created
7 May 2017
Updated
24 Sep 2017

Overview

Usb iso rs485 is an open-source printed circuit board by gonium, from the gonium/usb-iso-rs485 repository on GitHub, published under the MIT licence. It is a 2-layer board of 78.2 × 25.1 mm with 39 parts on 31 nets, routed with 252 tracks and 67 vias.

It is built around the FT232RL and IRLML6402. Its parts include 16 capacitors, 7 connectors, 6 resistors, 5 diodes and 2 ICs. It belongs with the interfaces and adapters boards of this library.

Main components

2

README

README.md

An isolated USB-RS485 adapter

I connected a lot of USB-RS485 adapters to my smart meter readout software and wasn't happy. Either the device is cheap and broken or works but is very expensive. The supercheap adaptors from China often provice no ground connection, one worked fine, another one was unstable. Both did not adhere to the USB spec (90mA initial current draw limit). On the other hand, industrial adaptors like the Meilhaus RedCOM USB-COMi-SI or the ADAM 4561 isolate the RS-485 bus from the USB line and work extremely reliable. But they are really expensive.

This project aims to create an adaptor that works well and is reasonably priced. We use the following components:

  • An FTDI FT232L provides the USB-UART interface and can be configured for RS485 operation.
  • An Analog Devices ADM2582E isolates the RS485 bus and generates the supply voltage for the bus. Please note: this device is rather expensive, but Analog Devices will send you samples at no cost.
  • We use WAGO 233 series connectors to connect to the RS485 bus

The first prototype looks like this:

First prototype

The PCB is too big, and I don't need all those test points any more. Therefore, I have build the second prototype. Please note that the board is slightly smaller, has a different WAGO connector and unpopulated footprints for protection diodes:

Second prototype

The second prototype works quite well. Unfortunately, the holes for the WAGO connector are too small -- I needed to drill them bigger. While doing so, I destroyed a connection to the "A" pin - the copper wire to the right of the WAGO connector replaces the PCB trace I destroyed. In addition, the footprint for the MOSFET is wrong.

Minor layout changes are needed, but the principle is solid.

TODO

  • Copy all footprints to project library
  • Footprint of MOSFET is wrong
  • Increase hole diameter for WAGO connector
  • Fix position of silkscreen on bottom layer

FTDI configuration.

The FTDI chip needs to be configured in order to work in this application. Specifically, the following changes need to be written into its EEPROM:

  • CBUS3 must be set to PwrEN. This ensures that the device draws only 90 mA when plugged in. After completing the USB enumeration process, this pin triggers the onboard MOSFET and the remainder of the board is powered up.
  • CBUS4 must be set to TxDEN. The FTDI toggles the nRE pin of the ADM2582.

You can use Mark Lord's ft232r_prog to change the EEPROM settings. In order to see the current EEPROM content, use

text
$ ft232r_prog --verbose --dump --old-vid 0x0403 --old-pid 0x6001

In order to set CBUS3 to PwrEN, CBUS4 to TxDEN, high-current-io off and the maximum power consumption to 300 mA, use

text
$ ft232r_prog --verbose --dump --old-vid 0x0403 --old-pid 0x6001 \
	--cbus3 PwrEn --cbus4 TxDEN --high-current-io off --max-bus-power 300

On Linux I could successfully compile the binary just by typing make and using it as described above. On Mac OS X, I needed to add /usr/local to the Makefile. The top two lines now read like this:

text
CFLAGS = -Wall -O2 -s -Werror -I/usr/local/include
LDFLAGS = -L/usr/local/lib -lusb -lftdi -s

In my case, a FTDI driver claimed the device, preventing the ft232r_prog command to communicate with the FTDI. You can list the FTDI-related kernel extensions using

text
$ kextstat | grep FTDI
	156    0 0xffffff7f83606000 0x8000     0x8000     com.FTDI.driver.FTDIUSBSerialDriver (2.2.16) 0AB01558-B114-9EF2-1CD9-A13CFA557737 <137 55 5 4 3 1>

Then, to unload the driver, use

text
$ sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver

for all FTDI drivers you found.

Parts

39
QtyValueFootprintReferences
7100nFCapacitors_SMD:C_0805_HandSolderingC1, C2, C7, C8, C12, C14, C16
510nFCapacitors_SMD:C_0805_HandSolderingC3, C4, C5, C6, C10
5TSTMeasurement_Points:Measurement_Point_Round-TH_SmallP3, P9, P10, P11, P12
3P6SMB 6,8CAADM2582E:P6SMB6,8CAD3, D4, D5
2470Resistors_SMD:R_0805_HandSolderingR2, R3
247pFCapacitors_SMD:C_0805_HandSolderingC9, C11
10Resistors_SMD:R_0805_HandSolderingR5
1100kResistors_SMD:R_0805_HandSolderingR6
1100nFCapacitors_THT:C_Rect_L26.5mm_W7.0mm_P22.50mm_MKS4C15
1120Resistors_SMD:R_0805_HandSolderingR1
14,7uFCapacitors_SMD:C_0805_HandSolderingC13
14k7Resistors_SMD:R_0805_HandSolderingR4
1ADM2582EADM2582E:ADM2582E-SOIC20W-Thermal-CorrectU1
1BLM21PG 600Resistors_SMD:R_0805_HandSolderingFB1
1FT232RLHousings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mmU2
1GreenLEDs:LED_0805D2
1IRLML6402ADM2582E:IRLML6402Q1
1JUMPERPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJP1
1RedLEDs:LED_0805D1
1USB_AConnectors:USB_BP2
1WAGO 233-503ADM2582E:WAGO233-503P1

Similar boards

  • 2 layers99.3 × 78 mmFlowerManager, the printed circuit board in 3D

    FlowerManager

    HobbyFactory/PCB-Flower-Manager

    115 parts
  • 2 layers47.6 × 52.1 mmHB RF USB, the printed circuit board in 3D

    HB RF USB

    alexreinert/PCB

    Some of my PCBs

    27 parts104
  • 2 layers34.3 × 17.8 mmHB MOD UART USB, the printed circuit board in 3D

    HB MOD UART USB

    stan23/myPCBs

    Verschiedene Platinen für HomeMatic, AskSinPP und SmartHome

    20 parts21
  • 2 layers47.6 × 52.1 mmHB RF USB, the printed circuit board in 3D

    HB RF USB

    FUEL4EP/HomeAutomation

    Home Automation repository of FUEL4EP

    27 parts15CC0-1.0
  • 2 layers66 × 61.1 mmUSH, the printed circuit board in 3D

    USH

    blue-wind-25/JxMake

    JxMake is a Java-based, cross-platform build system primarily inspired by the syntax and features of GNU Make, Perforce Jam, and CMake.

    76 parts
  • 4 layers81.6 × 88.8 mmCheetah MX4-Mini, the printed circuit board in 3D

    Cheetah MX4-Mini

    KaiPereira/Cheetah-MX4-Mini

    A powerful yet compact 3D printer motherboard that supports TMC stepsticks, fans, heaters, screens and thermistors

    171 parts179

Questions

How big is the Usb iso rs485 PCB?

It measures 78.2 × 25.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Usb iso rs485 use?

39 parts, built around the FT232RL and IRLML6402. 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 Usb iso rs485 KiCad files?

From the gonium/usb-iso-rs485 repository on GitHub, at the commit this page was made from: the board is USB-ISO-RS485/USB-ISO-RS485.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Usb iso rs485 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).