Skip to the content
PCBKitNew board
2 layers71.2 × 38.1 mmESP32-Ethgate rounded, the printed circuit board in 3D

ESP32-Ethgate rounded

c-/ESP32-Ethgate47

ESP32-WROOM with LAN8720A

Size
71.2 × 38.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
56
Nets
79
Pads
231
Tracks, vias
523, 126
Pours
273
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Jul 2021
Updated
20 Apr 2024

Overview

ESP32-Ethgate rounded is an open-source printed circuit board by c-, from the c-/ESP32-Ethgate repository on GitHub, published under the CC0-1.0 licence. It is a 2-layer board of 71.2 × 38.1 mm with 56 parts on 79 nets, routed with 523 tracks and 126 vias.

It is built around the CH340C, ESP32-WROOM-32U and HT7233, with the LAN8720A-CP, USBLC6-2SC6 and B5817W among its other parts. Its parts include 22 resistors, 17 capacitors, 6 ICs, 4 diodes and 4 connectors. It belongs with the ESP32 boards of this library.

Main components

8

README

README.md

ESP32-Ethgate

This is an ESP32 (ESP32-WROOM-32 module) with LAN8720A PHY project intended to be an ESP-NOW to (wired) MQTT gateway.

Photo of working board

It was designed to be produced in my PCB mill. If your PCB mill can handle QFN24 footprints and double-sided PCB's then you might be able to duplicate this. Or you can just order a PCB from pretty much anywhere. I had a few made by Oshpark.

Oshpark After Dark PCB

Oshpark After Dark PCB

Design

For simplicity, it uses the GPIO17 PLL clock technique rather than the GPIO0-based crystal, and includes a second 3.3v regulator to control the entire ethernet power rail independently. It needs stable USB power, although at some point I might take a stab at a PoE version.

The CH340C runs off the first regulator along with the ESP32. The HT7233 is rated for 300mA, which is just marginal for an ESP32, but so far I haven't noticed any power issues (power consumption for the whole board averages maybe 250mA). I've thrown in some USB ESD protection, a fuse, and some reverse protection (I know that's not supposed to be a problem with USB... things happen, don't ask). ESD protection for the Ethernet port would be a nice-to-have at some point.

The CH340C supports the usual auto-programming. Note that you may need to dial back the default upload baud rate.

I've added a small (1.25mm pitch) header with 3V3, GND, and two GPIO's to allow for things like environmental sensors. Note that temperature sensors will need to stay a minimum of 10cm off the board to avoid the heat thrown by this board. I've also broken out the USB interface with a small header (uUSB connectors can be brittle pieces of junk).

BOM

Most of the components are from LCSC. There's an interactive BOM page which should tell you what you need. Passives are 0603 with a few 0805 for the larger capacitors.

Firmware

The Arduino-ESP32 ETH_LAN8720 sketch should work with the following configuration:

text
#define LED_BUILTIN 2	// or use a NodeMCU-type of board definition
#define ETH_CLK_MODE    ETH_CLOCK_GPIO17_OUT
#define ETH_POWER_PIN   12
#define ETH_TYPE        ETH_PHY_LAN8720
#define ETH_ADDR        1
#define ETH_MDC_PIN     23
#define ETH_MDIO_PIN    18

ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN,
	ETH_TYPE, ETH_CLK_MODE)

I flash mine with the ESP32 clock set at 80MHz, which seems to be more stable at 100Mbps connection speeds and draws approximately 25% less power.

Parts

56
QtyValueFootprintReferences
7100nCapacitor_SMD:C_0603_1608MetricC1, C2, C4, C7, C9, C10, C17
71K5Resistor_SMD:R_0603_1608MetricR3, R5, R7, R10, R13, R17, R18
410RResistor_SMD:R_0603_1608MetricR6, R9, R11, R14
449R9Resistor_SMD:R_0603_1608MetricR16, R20, R21, R22
310KResistor_SMD:R_0603_1608MetricR1, R4, R8
322uCapacitor_SMD:C_0805_2012MetricC5, C6, C8
210nCapacitor_SMD:C_0603_1608MetricC12, C15
222nCapacitor_SMD:C_0603_1608MetricC14, C16
2HT7233Package_TO_SOT_SMD:SOT-23-5U1, U4
2REDLED_SMD:LED_0603_1608Metric_CastellatedD2, D4
10RResistor_SMD:R_0603_1608MetricR23
110uCapacitor_SMD:C_0805_2012MetricC3
112K1Resistor_SMD:R_0603_1608MetricR19
11u1RCapacitor_SMD:C_0603_1608MetricC11
130RInductor_SMD:L_0603_1608MetricFB1
133RResistor_SMD:R_0603_1608MetricR15
1470RResistor_SMD:R_0603_1608MetricR2
1470pCapacitor_SMD:C_0603_1608MetricC13
1750mAFuse:Fuse_0805_2012Metric_Pad1.15x1.40mm_HandSolderF1
1B5817WDiode_SMD:D_SOD-323_HandSolderingD1
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU3
1ESP32-WROOM-32UCPB:ESP32-WROOM-32U-HandSolderingU2
1GPIOConnector_Molex:Molex_PicoBlade_53047-0410_1x04_P1.25mm_VerticalJ4
1GREENLED_SMD:LED_0603_1608Metric_CastellatedD3
1HR911105ACPB:RJ45_Hanrun_HR911105A_OvalJ2
1LAN8720APackage_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mmU5
1UMH3NPackage_TO_SOT_SMD:SOT-363_SC-70-6_HandsolderingQ1
1USBConnector_Molex:Molex_PicoBlade_53047-0410_1x04_P1.25mm_VerticalJ3
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6_HandsolderingU6
1USB_B_MicroCPB:USB_Micro-B_CNC_C10418J1

Questions

How big is the ESP32-Ethgate rounded PCB?

It measures 71.2 × 38.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32-Ethgate rounded use?

56 parts, built around the CH340C, ESP32-WROOM-32U, HT7233 and LAN8720A-CP. 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 ESP32-Ethgate rounded KiCad files?

From the c-/ESP32-Ethgate repository on GitHub, at the commit this page was made from: the board is ESP32-Ethgate-rounded.kicad_pcb and its schematic ESP32-Ethgate.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32-Ethgate rounded design in my own project?

Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers71.2 × 38.1 mmESP32-Ethgate, the printed circuit board in 3D

    ESP32-Ethgate

    noeljp/esp32-mqtts-secure

    Projet ESP32 avec Mosquitto MQTTs, TLS, login/mdp

    120 parts
  • 2 layers38.3 × 20.8 mmESP AHT10-Extra, the printed circuit board in 3D

    ESP AHT10-Extra

    c-/ESP-AHT10-Extra

    minimalist ESP-8266 temperature/humidity sensor

    27 parts20
  • 2 layers122 × 87.4 mmGETWAY, the printed circuit board in 3D

    GETWAY

    maivananh111/GETWAY_PCB

    264 parts
  • 2 layers100 × 60 mmGatewayPlus V1.4, the printed circuit board in 3D

    GatewayPlus V1.4

    maivananh111/PCB_GatewayPlus_V1.4

    278 parts
  • 2 layers62.2 × 35.6 mmESP8285-WLED, the printed circuit board in 3D

    ESP8285-WLED

    c-/ESP8285-WLED

    ESP8285 WLED PCB

    58 parts3
  • 2 layers19.1 × 24.1 mmMalenki nano2, the printed circuit board in 3D

    Malenki nano2

    MarkR42/malenki-esc

    A small electronic speed controller for e.g. tiny fighting robots or other rc models

    25 parts7
  • 4 layers65.9 × 52.9 mmEX CSB1, the printed circuit board in 3D

    EX CSB1

    DCC-EX/EX-CSB1

    Open source EX-CSB1 CommandStation / Booster

    103 parts13