Skip to the content
PCBKitNew board
2 layers50 × 48 mmHexGateway, the printed circuit board in 3D

An internet gateway for Bluetooth LE, OpenThread and/or Zigbee devices.

Size
50 × 48 mm
Copper layers
2
Thickness
1.6 mm
Parts
89
Nets
122
Pads
392
Tracks, vias
583, 145
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
15 Jan 2022
Updated
27 Jan 2024

Overview

HexGateway is an open-source printed circuit board by gblach, from the gblach/HexGateway repository on GitHub. It is a 2-layer board of 50 × 48 mm with 89 parts on 122 nets, routed with 583 tracks and 145 vias.

It is built around the ESP32-C3, SN74LV1T34DBV and LM1117-3.3, with the WS2812B among its other parts. Its parts include 45 capacitors, 13 resistors, 8 connectors, 6 ICs and 6 inductors. It belongs with the radio and wireless boards and the ESP32, nRF52 and nRF5x and RISC-V boards of this library.

Main components

4

README

README.md

HexGateway

An internet gateway for Bluetooth LE, OpenThread and/or Zigbee devices.

It employs three chips:

  • nrf52840 - has support for Bluetooth LE, OpenThread and Zigbee networks.
  • esp32-c3 - has support for WiFi at 2.4GHz.
  • enc28j60 - has support for Ethernet network.

HexGateway render

Hardware

To build your own board you need this gerber file and bill of materials.

Note that U102 is required only if your are using esp32-c3 (U101) without built-in flash memory.

Programmers

nrf52840 (U1) can be programmed using the standalone Segger J-Link or the on-board Segger J-Link (this can be found for e.g. on nrf52840dk board). This programmer must be connected to J1 (TagConnect) or J2 (IDC 10) connector.

esp32-c3 (U101) can be programmed using ESP-Prog. This programmer must be connected to J101 (TagConnect) or J102 (IDC 6) connector.

enc28j60 (U201) does not need to be programmed.

Software

For the nrf52840 chip you have to write your own software that will meet your requirements. The best way is to use Zephyr RTOS. The board definition for Zephyr can be found in boards/arm/hexgw1 directory.

esp32-c3 can be controlled with AT commands. To do this, you need to upload ESP-AT firmware.

Sponsorship

PCBWay

The production of these gateways was sponsored by PCBWay, they manufacture prototype PCBs and assemble components on the boards. I got 5 almost complete devices from this company for testing and evaluation, I had to solder only connectors for antennas and RJ45 ports by myself.

The visual impression of the boards is very good. All the contacts are gold plated, the silkscreen is readable, the whole board is thoroughly covered with soldiermask and all the components are soldered with a small amount of tin, so I was not worried about a potential short circuit anywhere.

HexGateway photo

So it remained to upload test programs to check if everything works properly. First I uploaded ESP-AT to the ESP32-C3 chips, and that passed without any problem. Next, I uploaded four programs one at a time to the nRF52840 chips. The first to check if bluetooth works, the second to check WiFi operation, the third to check Ethernet and the fourth to check LEDs. In the case of 4/5 boards, everything works as expected, so they are fully functional devices. However, for the fifth one, the programmer gave me a message that it does not detect the voltage of the processor. With a multimeter I checked the voltage on the VDD pin and there was indeed 0V there. This means that this chip is defective or more likely not all pins are soldered correctly. I am not surprised by this situation, because the nrf52840 chip has very small and densely spaced pins, so if something was to be soldered wrong, it would be with this chip.

My final rating for the quality of devices produced by PCBWay is 4/5 stars, and this is higher than the two competing companies I have worked with. So I will probably change the company where I will produce the PCBs in the future.

Parts

89
QtyValueFootprintReferences
15100nF, X7R, 10%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC5, C7, C8, C12, C106, C107, C110, C112, C201, C202, C203, C204, C205, C208, C209
510uF, 20%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC50, C51, C52, C105, C211
412pF, NP0, 2%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC1, C2, C17, C18
420pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC101, C102, C220, C221
450R, 1%Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR202, R203, R204, R205
310k, 1%Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR108, R120, R150
310nF, 10%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC104, C206, C207
31uF, 20%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC103, C111, C150
3TestPoint_SmallTestPoint:TestPoint_Pad_D1.0mm3V3, 5V, VDD
21.0uF, X7R, 10%Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC14, C15
210uH, 80mA, 20%Inductor_SMD:L_0603_1608Metric_Pad1.05x0.95mm_HandSolderL2, L4
2330RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR206, R207
24.7uF, X7R, 10%Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC6, C19
25.1k, 10%Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R2
2Conn_CoaxialSMA_EdgeMount:SMA_EdgeMountJ3, J103
2WS2812BWS2812B_4020:WS2812B_4020D1, D2
10.5pF, NP0, 10%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC4
10.8pF, NP0, 10%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC3
11.5pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC109
1100pF, NP0, 5%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC11
115nH, 10%Inductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL3
12.0nH, (0.1nH), 450mAInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL101
12.0pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC108
12.32k, 1%Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR201
125MHz, 15/16pFCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmX201
13.9nHInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL102
132.768kHz, 9pF, 50ppmCrystals:Crystal_SMD_3215-2Pin_3.2x1.5mmX2
132MHz, 8pF, 40ppmCrystals:Crystal_SMD_2016-4Pin_2.0x1.6mmX1
14.7nH, 5%Inductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderL1
140MHz, 15pF, 10ppmCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY101
147nF, X7R, 10%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC16
1499R, 1%, 1/20WResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR102
1820pF, NP0, 5%Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC9
1Conn_02x03_Odd_EvenConnector_PinHeader_1.27mm:PinHeader_2x03_P1.27mm_VerticalJ102
1Conn_02x03_Odd_EvenConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ101
1Conn_02x05_Counter_ClockwiseConnector:Tag-Connect_TC2050-IDC-NL_2x05_P1.27mm_Vertical_with_bottom_clipJ1
1Conn_02x05_Odd_EvenConnector_PinHeader_1.27mm:PinHeader_2x05_P1.27mm_VerticalJ2
1ENC28J60x-SSPackage_SO:SSOP-28_5.3x10.2mm_P0.65mmU201
1LM1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1MX25R3235FM2xx1Package_SO:SOP-8_5.28x5.23mm_P1.27mmU102
1RJ45_Hanrun_HR911105ARJ45_Hanrun_HR911105A:RJ45_Hanrun_HR911105AJ201
1SN74LV1T34DBVPackage_TO_SOT_SMD:SOT-23-5_HandSolderingU5
1SW_PushButton_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx31-2LFSSW1
1TestPoint_SmallTestPoint:TestPoint_Pad_1.0x1.0mmGND
1USB4125-GF-A_REVAUSB-C:GCT_USB4125-GF-A_REVAJ4
1esp32-c3Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.7x3.7mmU101
1nRF52840Package_DFN_QFN:Nordic_AQFN-73-1EP_7x7mm_P0.5mmU1

Questions

How big is the HexGateway PCB?

It measures 50 × 48 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HexGateway use?

89 parts, built around the ESP32-C3, SN74LV1T34DBV, LM1117-3.3 and WS2812B. 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 HexGateway KiCad files?

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

Can I use the HexGateway design in my own project?

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

Similar boards

  • 2 layers53 × 50 mmSunmachine A2, the printed circuit board in 3D

    Sunmachine A2

    gblach/Sunmachine-A2-pcb

    The driver for WS2812, SK6812 or similar LED strips controlled via Bluetooth LE. It supports both RGB and WWA LEDs.

    18 parts
  • 2 layers53 × 50 mmSunmachine A3, the printed circuit board in 3D

    Sunmachine A3

    gblach/Sunmachine-A3-pcb

    The driver for WS2812, SK6812 or similar LED strips controlled via Bluetooth LE. It supports both RGB and WWA LEDs.

    25 parts
  • 4 layers80 × 45.6 mmEsphome sound thermometer, the printed circuit board in 3D

    Esphome sound thermometer

    H3mul/esphome-sound-thermometer

    Quick project with an LED strip illuminating in response to sound volume changes

    26 parts1MIT
  • 2 layers119 × 121.9 mmGame board mini, the printed circuit board in 3D

    Game board mini

    Moritz-Dilg/MenschAergereDichNicht

    248 parts1MIT
  • 2 layers203 × 68.5 mmSemafor, the printed circuit board in 3D

    Semafor

    renata7zemanova/Semafor

    114 parts1
  • 2 layers145.5 × 174.5 mmHippanel, the printed circuit board in 3D

    Hippanel

    sneurlax/hip-badge

    And join our matrix discussion channel: https://matrix.to/#/#hipbadge:matrix.org

    630 parts1
  • 2 layers20 × 20 mmTux mini v01, the printed circuit board in 3D

    Tux mini v01

    tux-friend/ESP32-Tux

    Documentation for ESP32-Tux Dev Board

    40 parts1GPL-3.0
  • 4 layers25 × 0.5 mmMLS Schematic, the printed circuit board in 3D

    MLS Schematic

    NerdST/MIDILights-PCB

    The PCB KiCAD schematic and board files for the MIDI Lights module.

    94 parts