DitroniX | Dave Williams | G8PUO
Published © GPL3+

IPEC ESP32 ATM90E32 IoT Power Energy Controller and Monitor

IPEC is an IoT Power Energy Monitor and Controller. 3 Phase, or 3 x Single Phase with DAC/PWM/MPWM/MPPT/I2C Expansion Port Outputs

BeginnerWork in progress1 hour1,043
IPEC ESP32 ATM90E32 IoT Power Energy Controller and Monitor

Things used in this project

Hardware components

Espressif ESP32-WROOM-32E-N4
×1
AT24C64 EEPROM
×1
Microchip MCP4728 DAC 12bit Quad Output
×1
Microchip ATM90E32 Power Energy Monitor
×1
CH340C USB UART Interface
×1
AP63203 SMPS
×1

Software apps and online services

PlatformIO IDE
PlatformIO IDE
Arduino IDE
Arduino IDE
VS Code
Microsoft VS Code
Autodesk EAGLE
Autodesk EAGLE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Multitool, Screwdriver
Multitool, Screwdriver

Story

Read more

Custom parts and enclosures

IPEC ESP32E ATM90E32 SDK 1.2306.101 - 3D

Beta Board 3D Model
File missing, please reupload.

DitroniX.net Power Energy Monitor Boards SDK Overview

File missing, please reupload.

Schematics

IPEC Power Energy Monitor Board Overview

File missing, please reupload.

DitroniX.net STEM Energy Monitors SDK Board Options

File missing, please reupload.

DitroniX.net STEM Energy Monitors SDK Board Options

File missing, please reupload.

IPEC ESP32E ATM90E32 SDK 1.2306.101 - BETA Schematic

File missing, please reupload.

DitroniX.net Power Energy Monitor Boards SDK Overview

File missing, please reupload.

IPEC ESP32E ATM90E32 SDK Production 1.2307.102P - Schematic

File missing, please reupload.

IPEC ESP32UE ATM90E32 SDK Production 1.2307.102P - Schematic

File missing, please reupload.

IPEC ESP32E ATM90E32 SDK Production 1.2307.102P - Schematic

File missing, please reupload.

IPEC ESP32UE ATM90E32 SDK Production 1.2307.102P - Schematic

File missing, please reupload.

Code

IPEC Test Firmware Output Example

Arduino
This is an example of the IPEC Test Firmware Serial Debug Output
IPEC Test Firmware Output Example

Configuring Board.. Please Wait..

Hardware Options and Auto Configuration
----------------------------------------
Scanning I2C Bus for Devices for Auto Configuration ...
I2C Possible Device(s) found at Address:
* Hex 0x40 (64) PCA9685 12-bit IPEX PWM Driver
* Hex 0x49 (73) ADS1115 16-bit IPEX1 ADC
* Hex 0x50 (80) EEPROM
* Hex 0x60 (96) MCP4728 12-bit IPEC DAC
* Hex 0x70 (112) PCA9685 12-bit IPEX PWM 'All Call'
I2C Bus Scan Complete

IPEC/IPEX1 ESP32 ATM90E32 MCP4728 ADS1115 PCA9685 IoT Power Energy Monitor Controller

IPEC/IPEX1 Register Status and Startup Report
ESP32 Serial ID: E055F4519140
Firmware Version: 230809
Board Location: House

Preparing New EEPROM. Full Formatting... Please Wait...
|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~
EEPROM Cleared and Ready

EEPROM Check: 20 (Validation OK)

DAC MCP4728 Initialised
DAC Output is Enabled from DAC Test Output
DAC Output Voltage Minimum V: 0.000
DAC Output Voltage Maximum V: 3.300
DAC Minimum Power Threshold W: 0005
DAC Maximum Power Limit W: 4000
DAC Resolution Bit: 12
DAC Maximum Resolution: 4095
PWM (ESP32) Output is Disabled
PWM (PCA9685) Output is Disabled
Channel Count: 16
Get Mode 1: 0x21
Get Mode 2: 0x4
Default Frequency: 200
Set Frequency: 1000
Actual Frequency: 1017
ADC (ADS1115) Initialised

AIN0: 2965 0.56V
AIN1: 3081 0.58V
AIN2: 3070 0.58V
AIN3: 3069 0.58V
Testing RGB LED

Wi-Fi Options
--------------
Wi-Fi is Disabled
MQTT Publishing is Disabled
Domoticz Publishing is Disabled
ThingSpeak Publishing is Disabled
Zabbix Publishing Disabled

Software Options
-----------------

AC/DC Voltage Input Detected

Connecting to the ATM90E32
ATM90E32 Connected - OK

IPEC/IPEX1 Hardware Setup and Power-Up Test - Board Initialized

Register Status and Diagnostic Report
ESP32 Serial ID: E055F4519140
Firmware Version: 230809
Location: House

Hardware Configuration for ATM90E32
------------------------------------
AC Voltage Inputs: Single Input V1 will be used for Current Phase Calculations
Split AC Voltage: Disabled
CT Current Clamps: Configured for 1, 2 or 3 Phase

[Status Values]
System Status: S0:0x370 S1:0xFF00
Meter Status: E0:0x300 E1:0x3300

Mains RMS Voltage
------------------
Voltage 1: 247.87 V (Single Line Voltage Selected)

Mains RMS Current
------------------
Current CT1: 0.64 A
Current CT2: 0.64 A
Current CT3: 0.64 A
- - - - - - - - - - - - - - - - - - - - - - -
Actual Total Current: 1.92 A (CT1~CT2~CT3)

Calculated RMS Power
---------------------
Power V1*I1: 158.64 W
Power V1*I2: 158.64 W
Power V1*I3: 158.64 W
- - - - - - - - - - - - - - - - - - - - - - - - -
Calculated Total Power: 158.64 W (CT1~CT2~CT3)

Active Power (Absorbed or Used by the Load)
--------------------------------------------
Active Power CT1: 158.88 W (Import)
Active Power CT2: 0.00 W
Active Power CT3: 0.00 W
- - - - - - - - - - - - - - - - - - - - -
Total Active Power: 158.86 W (Import)
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calculated Total Active Power: 158.88 W (CT1~CT2~CT3)

Re-Active Power
----------------
ReActive Power CT1: 10.03 VAR
ReActive Power CT2: 0.00 VAR
ReActive Power CT3: 0.00 VAR
- - - - - - - - - - - - - - - - - - - - - - - -
Total ReActive Power: 10.03 VAR (CT1~CT2~CT3)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calculated Total Reactive Power: 10.03 W (CT1~CT2~CT3)

Apparent Power (Total Amount of Power Flowing from Source to Load)
-------------------------------------------------------------------
Apparent Power CT1: 159.24 VA
Apparent Power CT2: 0.03 VA
Apparent Power CT3: 0.00 VA
- - - - - - - - - - - - - - - - - - - - - - - -
Total Apparent Power: 159.20 VA (CT1~CT2~CT3)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calculated Total Apparent Power: 159.27 W (CT1~CT2~CT3)

Other Power Information
------------------------
Total Fundamental Power: 158.54 pH(t)

Total Harmonic Power: 0.20

Power Factor
-------------
Power Factor CT1: 1.00 PF
Power Factor CT2: 0.34 PF
Power Factor CT3: 1.00 PF
- - - - - - - - - - - - - - -
Total Power Factor: 1.00 PF

Phase Angle
------------
Phase Angle CT1: 3.60
Phase Angle CT2: 0.00
Phase Angle CT3: 0.00

Other Information
------------------
Chip Temperature: 29.00 °C

Mains Frequency: 50.01 Hz

ADC Raw: 2689 > ADC Adjusted: 2689 > Calculated: 32.43 V

GitHub - DitroniX.net IPEC

Credits

DitroniX | Dave Williams | G8PUO

DitroniX | Dave Williams | G8PUO

19 projects • 33 followers
Electronic Engineering, Software and R&D, play an important motivational seed in supporting community projects and being a STEM Ambassador.

Comments