This repository contains the open hardware design files for the Twomes P1 Gateway device, which can read measurement data from a smart meter adhering to the Dutch Smart Meter Requirements (DSMR). It can also receive data from various other Twomes 'satellite' measurement devices via the ESP-NOW protocol. The Twomes P1 Gateway can upload this measurement data to a Twomes server via Wi-Fi using secure HTTPS.
This repository contains the source files and fabrication files of the hardware designs of the Twomes P1 Gateway device and its enclosure. It also includes a docs
folder with recent printouts of the schematics and PCB layout.
You can run different kinds of firmware on this device:
- twomes-p1-reader-firmware, if you need it to work on a server that supports v2 of the Twomes API.
- twomes-p1-gateway-firmware, if you need the device to serve as a gateway for the twomes-room-monitor and/or twomes-boiler-monitor.
To fabricate the printed circuit board you can use various PCB services.
The folder pcb/jlcpcb includes all exported files needed to have the PCBs manufactured by JLCPCB. Upload the zipped gerber files to the JLCPCB quote page, select the amount of PCBs and a colour for the silkscreen. All other options can be left on default. If SMT assembly is desired, also select this option before ordering. This will take you to a page where the BOM and POS file can be uploaded. Use the files BOM-TwomesGateway.csv and CPL-TwomesGateway.csv.
N.B. All components marked "DO NOT PLACE" in the BOM-*.csv file can not be ordered from JLCPCB and need to be ordered from other services and placed manually.
To fabricate the enclosure you can use your own 3D printer or use a 3D printing service.
The folder enclosure/fabrication contains exported STL files for the case, the lid and the button of the Twomes P1-gateway enclosure. The STL files can be imported into any slicer and turned into G-Code for a 3D printer.
To change the hardware design of the PCB, you need:
- KiCad installed to change te PCB design.
The KiCad source files of the PCB can be found in the folder pcb.
To convert the PCBs into a format suitable for fabrication, consult the webpage of your PCB manufacturer of choice. For example, see the JLCPCB guide on how to export Gerbers and the JLCPCB guide how to export the BOM and POS files. You may also use a KiCad plug-in for this purpose such as kicad-jlcpcb-tools.
To change the hardware design of the enclosure, you need either:
- Autodesk Fusion 360 installed (Autodesk provides 30 day free trials and free one-year educational access to its products and services for eligible students, teachers and research staff);
- or FreeCAD, an open source alternative.
The source files of the enclosure can be found in the folder enclosure. We include both .f3d source files and .step source files we obtained after conversion.
The Twomes P1 Gateway features the following main hardware components:
- ESP32-WROOM-32E module;
- female RJ12 connector for connection to the P1 port of a smart meter adhering to the Dutch Smart Meter Requirements (smart meters compatible with DSMR v5 provide enough power for the Twomes P1 gateway);
- micro USB input for a 5 V power supply (only needed for smart meters adhering to DSMR v4 and lower);
- FTDI compatible serial programming header (3.3 V).
Project is: in progress
The hardware designs in this repository are available under the CERN-OHL-P v2 license, Copyright 2022 Research group Energy Transition, Windesheim University of Applied Sciences
This open hardware design made by:
- Sjors Smit · @Shorts1999
Thanks also go to:
- Fredrik-Otto Lautenbag · @Fredrik1997
- Gerwin Buma · @GerwinBuma
- Marco Winkelman · @MarcoW71
Product owner:
- Marco Winkelman · @MarcoW71
We use and gratefully acknowlegde the efforts of the makers of:
- KiCad Libraries, by the KiCad Development Team, licensed under an adapted version of the CC-BY-SA 4.0 License