MUREX Ethernet Switch V1_



MUREX Robotics is Phillips Exeter Academy’s High School Underwater Robotics Team competing in the MATE Underwater ROV Competition.

We have a grand vision: to democratize technology for all. Despite being just a high school robotics team, MUREX strives to uphold that standard in every way possible. We’ve yet again made a stride towards out ambitious dream in a recent project regarding the networking system of out underwater ROV.

While designing the new electrical system for the MUREX ROV, we realized the need for an embedded (and small) Ethernet switch. We needed something to connect our custom CM4-based control board, PLC module, and vision system –– consisting of multiple IP cameras. Instinctively, we turned towards the internet in search of a performant and affordable solution.

Unfortunately, that search was to no avail. The 5-port Ethernet switch by Blue Robotics — a major sponsor of the MATE ROV Competition — costs a whopping $175 per unit! The SwitchBlox by BotBlox — a company specializing in Ethernet solutions — doesn’t do much better at $72. Finally, we found Allbord, a company offering cheap but robust switches. Sadly, they are based in Shenzhen, China.

So, we decided to take matters into our own hands (as usual)…

After extensive summer research and intermittent work by our budding electrical team throughout the fall, we present the MUREX Ethernet Switch: a 5-port unmanaged Fast Ethernet (100BASE-TX) switch compliant with the IEEE 802.3u standard, matching commercial solutions in size and performance. Additionally, the BOM costs just under $15 per unit! Most importantly, it is fully open-source, so anyone can follow and improve upon our solution.

It works!

>>> Testing Conditions
Two Gigabit enabled computers
running iperf 2.1.9
one serving as local network DHCP host
connected through
MUREX Ethernet Switch
// TCP window size: 162 KByte (default)
>>> Results
Bandwidth (host): 94.1 Mbits/sec
Bandwidth (client): 94.4 Mbits/sec
Total Transfer: 113 MBytes

In this brief post we hope to share our design process, as well as note the various insights and mistakes we made along the way. We are no experts, however, we hope that our readers (yes, you!) will also embrace the open-source spirit and comment any ideas or feedback down below. Let’s get started.

Design Rationale

The IC of choice must be robust, easy to use, and widely available. Of course, a low price tag is also very beneficial. MUREX selected the IP175G due to its availability and commonality in embedded applications, although similar ICs like the RTL8305NB-CG could also be used. The pin-compatible IP175GHI can be used in harsh conditions with wider temperature ranges than the IP175G – perhaps a new version down the road?

The datasheet of the IP175G was very difficult to read, in part due to misspellings and very graphical diagrams. Worst of all, there was no sample implementation schematic. Although we pieced together most of the chip’s required passives and design considerations, a reference schematic helped cement it. After much searching with DuckDuckGo (Google didn’t index this website), we found this.

To make this a truly “embedded” ethernet switch, MUREX opted for external magnetics to a connector for smaller sizing. The board-to-wire connector from the ethernet switch should be compact, locking and directional. We went with the simple and obvious choice, the Molex PicoBlade connector. Since this is a “Fast” (100BASE-TX) ethernet switch and not a Gigabit (1000BASE-TX) ethernet switch, there are only two differential pairs.

alt_text

Great, we now know what we’re doing! Let’s make the schematic in KiCAD Nightly.

Schematic Design

A day or two later, we spun up a design in KiCAD, largely following the standard implementation with a few features and modifications, namely:

alt_text

alt_text

alt_text

alt_text

PCB Design

To be frank, Fast Ethernet is quite lenient with design choices, but it is still good practice to follow application notes from various companies. Here are the key pointers:

Additionally, if chosen as the voltage regulator, a cheap LDO should be cooled with thermal vias and/or a heatsink.

Here are some sources we referenced when designing the board:

Next Revision/Flaws

As with all things, there are many flaws with this board. Although none fatal, these flaws limit the board to what it could be. Here are a few that we thought of while testing the board. (hey, 20/20 hindsight, am I right?)

  1. More configurations for future expandability with queues, CoS, VLAN and so much more.
  2. Breaks out the serial pins for the IP175G, allowing it to be connected to a larger system for more fine-grade control.

alt_text

Conclusion

…or maybe someone else will improve upon this design, integrate it into a robot of some sort (we certainly will!), or learn from it. We don’t have high frequency oscilloscopes or VNAs, nor the know-how to run large-scale simulations and optimize. There are definitely even more flaws with our design that we never even knew about! Feel free to reference and improve upon our design, for that is the beauty of open source. We look forward to seeing what you can learn and create with the MUREX Ethernet Switch. Wrapping up Thanksgiving break, we’ve attempted the impossible, and somehow pulled it off (flaws and all).

> Technology. For. All