GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - delamoure-hw/safe-link-hat: Isolated dual-channel USB-to-RS232 Raspberry Pi HAT PCB designed for Solar-Assistant. Provides galvanic isolation for connecting Axioma, Axpert, Voltronic solar inverters, and Pylontech US5000 batteries.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Hardware
Hardware
 
 
Media
Media
 
 
Software
Software
 
 
README.md
README.md
 
 

Repository files navigation

safe-link-hat

SafeLinkHat is a Raspberry Pi Hat PCB featuring two individually isolated USB-to-RS232 channels.
It protects the host computer against ground loops, high-voltage spikes, and noise.
Based on two TD301D232H chips and a CP2105, this project provides a simple and compact solution for isolating RS232 ports.

SafeLinkHat

Why this project?

While building a home backup power system based on an Axioma (Axpert) hybrid inverter and Pylontech US5000 batteries, I faced the need for statistics gathering and monitoring.
Using Solar-Assistant software on a Raspberry Pi 3 via RS-232 interfaces was the ideal approach.
However, since most commercial solutions lack galvanic isolation, I designed this straightforward Hat.

Project content

  • Schematic
  • Production files
  • BOM

Features

  • Provides two individually isolated USB-to-RS232 channels
  • Fully bus-powered, occupies only one USB port on the Raspberry Pi
  • Allows running RS-232 cables significantly longer than any ready-made adapters
  • LED status indication for data transmission
  • Easy manual soldering, though it requires experience with SMD and QFN packages (automated assembly also possible).
  • Low component count (47 parts)

How to order empty PCBs

You can order them on jlcpcb.com.

  1. Sign in to your account.
  2. Click Order now.
  3. Upload the ZIP archive from the Production files section above.
  4. Complete the Online PCB Quote Form (click to view screenshot)

How to order parts

The complete list of components is available in the Excel sheet within the BOM section above.
You will also find alternative part options there.

Post-Assembly Notes

Once the device is assembled, you need to verify its functionality by connecting it to your computer's USB port. In Windows Device Manager, you will see two COM ports:

two COM ports

However, that's not all.
By default, the CP2105 does not control the RX/TX LEDs.
You will need to activate this functionality as follows (though you can skip this step if you don't need the LED indication).

The required Silicon Labs utility can be downloaded here. I have already prepared the cp2105_gm.configuration

For Windows Command Prompt:

Step 1.

cp210xsmt.exe --device-count 1 --set-config cp2105_gm.configuration

Step 2. Reconnect the device and run:

cp210xsmt.exe --device-count 1 --verify-config cp2105_gm.configuration

Mount the HAT on the Raspberry Pi

I recommend using an acrylic case for this project.

It will look approximately like this:

Ready to setup

Done

Port Configuration

Start Solar-Assistant, and it will detect two CP2105 ports. Now you are ready for the final step: preparing the connection cables.

Solar-Assistant Ports

Inverter and Battery Connections

To connect the HAT to your hardware, you need to make two custom RJ45-to-RJ45 cables. The pinout on the SafeLinkHat side uses standard RJ45 connectors.

1. SafeLinkHat RJ45 Pinout (Both Channels)

The pin assignment on the HAT's isolated RS-232 ports is as follows:

  • Pin 1: TX (Transmit)
  • Pin 2: RX (Receive)
  • Pin 8: GND (Isolated Ground)

All other pins are not connected (NC).


2. Axioma (Axpert) Inverter Cable

The inverter communication port is typically an RJ45 (labeled as COM or RS232).

Pinout mapping:

SafeLinkHat (RJ45) Inverter COM Port (RJ45) Signal
Pin 1 Pin 2 TX → RX
Pin 2 Pin 1 RX ← TX
Pin 8 Pin 8 GND — GND

Cable Axioma


3. Pylontech US5000 Battery Cable

Connect this cable to the CONSOLE port of the master battery (do not use the CONTACT or CAN/RS485 ports). The Pylontech CONSOLE port uses an RJ45 connector.

Pinout mapping:

SafeLinkHat (RJ45) Pylontech CONSOLE Port (RJ45) Signal
Pin 1 Pin 6 TX → RX
Pin 2 Pin 3 RX ← TX
Pin 8 Pin 8 GND — GND

Cable Pylontech

Double-check the connections with a multimeter before plugging the cables into your inverter and battery to prevent damage to the communication ports.

That's all for now. Thanks for reading!

Results Results Results

About

Isolated dual-channel USB-to-RS232 Raspberry Pi HAT PCB designed for Solar-Assistant. Provides galvanic isolation for connecting Axioma, Axpert, Voltronic solar inverters, and Pylontech US5000 batteries.

Topics

axiomaaxpertgalvanic-isolationgerberspcbpylontechraspberry-pirs232solar-assistantus5000

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.