ESP32 Projects
Start a build
Markdown

Smart 3 Phase Energy Meter for ESP32-C6

An ESP32 display project for ESP32-C6 involving OLED display.

ESP32-C6ESPHomeUnrated
Parts and source

Before you start

Check the exact OLED display configuration against the upstream wiring or parts list.

Upstream README

Smart-3-Phase-Enrgy-Meter

An ESPHome-based energy meter powered by PZEM-004T V4 and Seed Studio Xiao ESP32-C6/ESP32-C3

Componenets

  1. Seed Studio Xiao C6 OR Xiao C3
  2. PZEM-004T V4
  3. SSD1306 0.96 OLED Display
  4. Hi-Link 5V 5W PSU (HLK 5M05)
  5. 1N5819 Schottky barrier diode
  6. 4 Pin JST XH Male Connector - 2.54mm pitch
  7. 4 Pin JST Female to Female Connector - 2.54mm Pitch
  8. 2 Pin Screw Terminal Block - 5mm Pitch
  9. Transparent Junction Box(180X130X100)

Schematics

[!NOTE] If ESPHome is unable to read from all three PZEM modules simultaneously, it is because multiple devices prevent the signal from dropping close enough to GND. To fix this, it is recommended to place a 1N5819 Schottky diode on the TX line of each PZEM . Which I have included in the schematics as well as in the PCB

PCB



Installtion

  1. Download the configuration of your board (c3 or c6), which can be found HERE, and simply go to your ESPHome instance and "import from file" as shown in the picture
2. Set the address to each of the Pzem-004T's using a USB to TTL Serial Adapter as follows

[!NOTE] The address can also be changed in ESPHome, but this is recommended

Phase Address
P1 0x01
P2 0x02
P3 0x03

Reference

  1. ESPHome Pzem-004T Docs
  2. ESPHome SSD1306 OLED Display Docs
  3. Multiple Pzem Communication Error forum