Skip to the content
2 layers114.9 × 60 mmEsp32-dmsr, the printed circuit board in 3D

Fluvius smart meter project

Size
114.9 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
43
Pads
86
Tracks, vias
86, 0
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
22 Oct 2021
Updated
27 Nov 2022

Overview

Esp32-dmsr is an open-source printed circuit board by binomaiheu, from the binomaiheu/fluvius-smart-meter repository on GitHub. It is a 2-layer board of 114.9 × 60 mm with 22 parts on 43 nets, routed with 86 tracks and 0 vias.

It is built around the BC547. Its parts include 6 resistors, 4 capacitors, 3 connectors, 2 ICs and 1 diode. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md

Fluvius smart meter readout project

This is my version of a readout board for the Belgian smart energy meter deployed by Fluvius. The device contains 2 ports which allow the interested hobbyist to read out the real time energy consumption every sectond P1 and the full 4kHz waveform via the S1 port. This repo is for my own education as I shamelessly copied and adapted the work of Matthijs Kooijman and Willem Aandwiel, see links below for the originals !

Links

Below is a collection of references with the original material upon which I based this original project :

And a few links on github :

You can find a python decoder for the serial messages here :

The specs for the smart meter can be found here :

Hardware

P1 port pinout

The Fluvius meter P1 port uses an RJ12 connector with the following pinout.

pinfunction
1Power +5 V
2Data Request
3Data GND
4n.c.
5Data line
6Power GND

The protocol is serial TTL between 0 and 5 V, but with polarity reversed, meaning that 5V indicates a 0 and 0V indicates a 1.

Circuit board

The circuit in the kicad/ subfolder is essentially based on the work of Willem Aandewiel (https://opencircuit.nl/blog/Slimme-meter-uitlezer) with some modifications of my own whilst getting to know KiCad.

I'm using a Lolin D32 ESP board (https://www.wemos.cc/en/latest/d32/index.html) to readout & process the telegrams. For the footprint i installed the following library in KiCad :

This contains both the schematic as well as the footprint for the Lolin D32 board.

Manufacturing

See :

Power

For powering the esp32 I found this post on reddit : https://www.reddit.com/r/esp32/comments/bwgn1q/how_to_power_a_lolin_d32_externally_from_a_dc/, it presents 3 options (copy pasted):

  • I figured it out with the help of Dave Bird's Tech Note 097 which explained how the on-board regulator can be disabled (open-circuit) by tying the EN pin to ground. This allows direct application of 3.3V onto the 3V pin, powering the board directly. Additionally, if EN is held low, a USB cable can be connected and serial comms continues to operate, because the CH340C has 3.3V supply. Power from the USB is shorted to ground via 100kohm resistor, which is no big deal.
  • An alternative is to power at 4.2V via the battery connector. The TP4054 can take up to 7V on its BAT pin, and the charger won't enable unless the voltage drops below 4.2V, so one could also supply, say, 5V via this connector. The D2 diode will protect USB.
  • One third option is to supply 5V via VBUS pin, ensuring it is as close as possible to the USB voltage (a difference of a few tenths of a volt may not cause any problems). If paranoid, a diode can be used to protect the USB supply.

Parts

22
QtyValueFootprintReferences
4MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3, , ,
22.2 kOhmResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR2, R3
2220 OhmResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR4, R6
11 kOhmResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR1
11 µFCapacitor_THT:CP_Radial_D7.5mm_P2.50mmC2
110 OhmResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR5
11000 µFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC1
12.2 µFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC4
1220 µFCapacitor_THT:CP_Radial_D7.5mm_P2.50mmC3
14N35Package_DIP:DIP-6_W7.62mmU2
1BC547Package_TO_SOT_THT:TO-92_InlineQ1
1ESP32 PowerConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalJ3
1LCD pin headerConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ1
1LEDLED_THT:LED_D5.0mmD1
1LM1085-3.3Package_TO_SOT_THT:TO-220-3_VerticalU1
1LolinD32Paul's 3D Things:LolinD32M1
1RJ12Connector_RJ:RJ12_Amphenol_54601J2

Similar boards

  • 2 layers83.3 × 65.3 mmSimonShield, the printed circuit board in 3D

    SimonShield

    github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    46 parts14kMIT
  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers99.1 × 99.7 mmRC6502 General Video Adapter, the printed circuit board in 3D

    RC6502 General Video Adapter

    tebl/RC6502-Apple-1-Replica

    An expandable SBC-version of the Apple 1 computer, easy to get started with and lot of cool stuff that can be added to it!

    80 parts193GPL-3.0
  • 2 layers55.9 × 38.6 mmMega Amp, the printed circuit board in 3D

    Mega Amp

    theacodes/genesynth

    A Sega Genesis inspired synthesizer

    40 parts178Apache-2.0
  • 2 layers40 × 100 mmBack pcb, the printed circuit board in 3D

    Back pcb

    ZeroPhone/ZeroPhone-PCBs

    PCB files for ZeroPhone - for gerbers and schematics, go to "Releases" tab!

    118 parts148GPL-3.0
  • 2 layers100 × 100 mmCANBuster, the printed circuit board in 3D

    CANBuster

    GBert/misc

    miscellaneous stuff / unsorted

    182 parts99

Questions

How big is the Esp32-dmsr PCB?

It measures 114.9 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp32-dmsr use?

22 parts, built around the BC547. 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-dmsr KiCad files?

From the binomaiheu/fluvius-smart-meter repository on GitHub, at the commit this page was made from: the board is kicad/esp32-dmsr.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32-dmsr design in my own project?

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