
SGW-01 V1.0
ymhtwe/SGW01
ESP-IDF based IoT gateway for solar pump monitoring and control using SIM7600 4G modem and Modbus RTU.

The hardware folder contains a KiCad PCB design, designed around the ESP32-C6-MINI-1. Both the antenna and non-antenna (U1) versions will work here due to the location of the ESP32.
Modbus Adapter is an open-source printed circuit board by tomasmcguinness, from the tomasmcguinness/esp32-modbus-serial-adapter repository on GitHub. It is a 2-layer board of 27.9 × 41.7 mm with 23 parts on 42 nets, routed with 153 tracks and 34 vias.
It is built around the MAX3485ED, AP2112K-3.3 and ESP32-C6-MINI-1. Its parts include 7 resistors, 6 capacitors, 3 ICs, 3 connectors and 2 diodes. It belongs with the interfaces and adapters boards and the ESP32 and RISC-V boards of this library.
The goal of this project is to provide a Modbus (RS-485) adapter with an onboard ESP32, allowing for a variety of uses. Designed around the ESP32-C6 MCU, so can be used with ESPHome, ESP-IDF and Arduino. The radio supports WiFi, Thread and Zigbee, giving you lots of flexibility.
The hardware folder contains a KiCad PCB design, designed around the ESP32-C6-MINI-1. Both the antenna and non-antenna (U1) versions will work here due to the location of the ESP32.
My PCB design also includes some debugging headers, allowing access to UART0 for debugging and flashing.
If you wish to purchase a pre-assembled board, I make them available on Tindie - https://www.tindie.com/products/edit/modbus-rtu-rs-485-esp32-c6-adapter/
At present, there are three Matter based example available. I have these three devices at home and I use my boards to get information from them!
As I'm a big fan of Matter, I've been using that exclusively. All of these firmware examples just read data from the device. I hope to expand support in the future to allow some control, where it makes sense.
The first device supported by this project is the Eastron SDM120M Single Phase Energy Meter. The readings from this device will be exposed as a Matter Electrical Sensor Device Type.
This exposes the various numbers, like power, PV string power and battery state over the Matter Solar Power Device Type. It can be connected directly to the inverter.
I adapted an ethernet patch cable to give me the right A/B terminal connections. I use the data from this device in my Home Energy Manager project.
Exposes readings like flow and return temperatures in addition to a read only thermostat over the Heat Pump Device Type.
It also reports on hot water status. I'm using it in my Matter powered Heating Monitor project.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 5.1K | Resistor_SMD:R_0805_2012Metric | R3, R4, R6, R8 |
| 2 | 0.1µ | Capacitor_SMD:C_0805_2012Metric | C1, C4 |
| 2 | 10K | Resistor_SMD:R_0805_2012Metric | R5, R9 |
| 2 | 1µF | Capacitor_SMD:C_0805_2012Metric | C3, C7 |
| 2 | LED | LED_SMD:LED_0805_2012Metric | D1, D2 |
| 2 | SW_Push | Button_Switch_SMD:SW_SPST_TS-1088-xR025 | SW1, SW2 |
| 1 | 120 | Resistor_SMD:R_0805_2012Metric | R10 |
| 1 | 1µ | Capacitor_SMD:C_0805_2012Metric | C5 |
| 1 | 22µ | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | Conn_01x04_Pin | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-03P_1x03_P5.00mm | J4 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | ESP32-C6-MINI-1 | PCM_Espressif:ESP32-C6-MINI-1 | U1 |
| 1 | MAX3485 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J2 |

ymhtwe/SGW01
ESP-IDF based IoT gateway for solar pump monitoring and control using SIM7600 4G modem and Modbus RTU.


tomasmcguinness/matter-esp32-mbus-adapter
An ESP32-C6 adapter board for wired M-Bus (EN 13757) meters, with firmware examples that expose meter readings to a Matter fabric over Thread.

Sunewst/garden-microcontroller
A microcontroller designed for use in garden projects in mind. Deep-Sleep compatible MUX/I2C ports, Li-Po battery power option, SD card reader, and easier chain ability of multiple boards.

1vers1on/Mega
A microcontroller based on the RP2350B with a dedicated dac and adc, plus wifi and bluetooth.

lachlanfysh/45lux
4x5 large format camera light meter PCB — 16x TSL2591 HDR sensors, ESP32-S3 BLE, SSD1327 OLED, LIS2DH IMU


mcskny/wireless-he-macropad
A wireless, 12-key Hall-effect macropad built around a custom PCB, an ESP32-C6 sender, an ESP32-S3 USB receiver, and a native macOS companion app.
It measures 27.9 × 41.7 mm and has 2 copper layers, 1.6 mm thick.
23 parts, built around the MAX3485ED, AP2112K-3.3 and ESP32-C6-MINI-1. 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.
From the tomasmcguinness/esp32-modbus-serial-adapter repository on GitHub, at the commit this page was made from: the board is hardware/Modbus-Adapter.kicad_pcb and its schematic hardware/Modbus-Adapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask tomasmcguinness before reusing the design.