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

Projet ESP32 avec Mosquitto MQTTs, TLS, login/mdp

Size
71.2 × 38.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
120
Nets
147
Pads
465
Tracks, vias
624, 126
Pours
5
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
13 Apr 2025
Updated
24 Apr 2025

Overview

ESP32-Ethgate is an open-source printed circuit board by noeljp, from the noeljp/esp32-mqtts-secure repository on GitHub. It is a 2-layer board of 71.2 × 38.1 mm with 120 parts on 147 nets, routed with 624 tracks and 126 vias.

It is built around the AD8606ARMZ-R7, CH340C and ESP32-WROOM-32U, with the AD736ARZ-R7, ADS1115IDGS and HT7233 among its other parts. Its parts include 48 resistors, 39 capacitors, 14 ICs, 12 connectors and 4 diodes. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

11

README

ESP32-Ethgate-main/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

120
QtyValueFootprintReferences
2910KResistor_SMD:R_0603_1608MetricR1, R12, R24, R25, R26, R27, R28, R29, R30, R31, R32, R33, R34, R35, R36, R37 +13
15100nCapacitor_SMD:C_0603_1608MetricC1, C2, C4, C7, C9, C10, C17, C18, C19, C20, C21, C22, C23, C25, C39
1510uCapacitor_SMD:C_0805_2012MetricC3, C26, C27, C28, C29, C30, C35, C36, C37, C38, C40, C41, C42, C43, C44
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
322uCapacitor_SMD:C_0805_2012MetricC5, C6, C8
3AD8606ARMPackage_SO:MSOP-8_3x3mm_P0.65mmU9, U10, U11
210nCapacitor_SMD:C_0603_1608MetricC12, C15
222nCapacitor_SMD:C_0603_1608MetricC14, C16
2AD736ARZ-R7Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.62x3.51mmIC1, IC2
2ADS1115IDGSPackage_SO:VSSOP-10_3x3mm_P0.5mmU7, U8
2HT7233Package_TO_SOT_SMD:SOT-23-5U1, U4
2REDLED_SMD:LED_0603_1608Metric_CastellatedD2, D4
10RResistor_SMD:R_0603_1608MetricR23
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
1Conn_01x12Connector_PinHeader_1.27mm:PinHeader_1x12_P1.27mm_HorizontalJ5
1ESP32-WROOM-32UCPB:ESP32-WROOM-32U-HandSolderingU2
1GREENLED_SMD:LED_0603_1608Metric_CastellatedD3
1HR911105ACPB:RJ45_Hanrun_HR911105A_OvalJ2
1IN1_0-10Connector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ14
1IN2_0-10Connector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ16
1IN3_4-20mAConnector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ15
1IN4_4-20mAConnector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ17
1IN5_RMSConnector_Phoenix_SPT:PhoenixContact_SPT_2.5_2-H-5.0_1x02_P5.0mm_HorizontalJ6
1IN6_RMSConnector_Phoenix_SPT:PhoenixContact_SPT_2.5_2-H-5.0_1x02_P5.0mm_HorizontalJ7
1IN7_PT100Connector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ8
1IN8_PT100Connector_Phoenix_SPT:PhoenixContact_SPT_2.5_3-H-5.0_1x03_P5.0mm_HorizontalJ13
1LAN8720APackage_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mmU5
1PC847Package_DIP:DIP-16_W7.62mmU13
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

Similar boards

  • 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
  • 4 layers40 × 50 mmEIS Board, the printed circuit board in 3D

    EIS Board

    Steven-Vokoun/RPI4-and-AD5933-EIS-Analyzer

    Independent study project creating a portable potentiostatic EIS solution. Currently under development.

    70 parts2
  • 2 layers41 × 22 mmMoyoECG v4 5, the printed circuit board in 3D

    MoyoECG v4 5

    AuroraHealth12/moyoECG_pcb

    The PCB design in KiCAD has been updated with a notable change: power control now operates through a button, while the slider switch is exclusively designated for extended storage or shipping purposes in contrast to…

    72 partsCERN-OHL-P-2.0

Questions

How big is the ESP32-Ethgate PCB?

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

What parts does the ESP32-Ethgate use?

120 parts, built around the AD8606ARMZ-R7, CH340C, ESP32-WROOM-32U and AD736ARZ-R7. 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 KiCad files?

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

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

Its repository states no licence, so its author keeps all rights: ask noeljp before reusing the design.