All projects
PRJ-06 · Custom Hardware + Firmware
Professional ProjectThree-Phase Energy MeteringCustom Hardware + Firmware

3-Phase Wi-Fi Energy & Power Meter

Custom PCB and Embedded Firmware Development using ATM90E36A + ESP8266

Professional three-phase energy metering device combining custom PCB development with embedded firmware development, built around the ATM90E36A energy metering IC and the ESP8266 Wi-Fi module for real-time electrical data transmission.

ATM90E36AESP82663-Phase PowerEnergy MeteringEmbedded C/C++Custom PCBWi-FiIoTSPI
Assembled three-phase Wi-Fi energy meter test board photographed on a workbench
Custom three-phase Wi-Fi energy meter PCB — professional hardware and firmware project.
01 Project Overview

The 3-Phase Wi-Fi Energy & Power Meter is a custom three-phase energy metering device developed for professional use. The project combined custom hardware development with embedded firmware development to produce a compact device capable of measuring and transmitting real-time electrical data over Wi-Fi.

The hardware was designed around the ATM90E36A energy metering IC and the ESP8266 Wi-Fi module. The firmware implemented metering data acquisition, SPI communication, configuration, measurement processing, calibration and wireless data transmission.

02 My Contribution

I was responsible for the complete hardware and firmware development of the device.

Hardware
  • ▸PCB design
  • ▸Component selection
  • ▸Power supply design
  • ▸Voltage and current measurement interfaces
  • ▸Metering IC interfacing
  • ▸ESP8266 integration
  • ▸Programming and debug interfaces
  • ▸Enclosure integration
Firmware
  • ▸ATM90E36A driver development
  • ▸SPI communication
  • ▸Register configuration
  • ▸Measurement data acquisition
  • ▸Data processing
  • ▸Calibration implementation
  • ▸Wi-Fi communication
  • ▸Configuration handling
  • ▸Device integration and debugging
03 Custom Hardware Design
Assembled three-phase Wi-Fi energy meter PCB showing the ESP8266 module, power supply sub-board, terminal block and metering circuitry
Assembled three-phase Wi-Fi energy meter board — custom PCB with integrated metering, processing and wireless connectivity.
The hardware integrates
  • ▸Custom PCB
  • ▸Power supply section
  • ▸Voltage measurement circuitry
  • ▸Current measurement circuitry
  • ▸Three-phase electrical connections
  • ▸ATM90E36A metering IC
  • ▸ESP8266 Wi-Fi module
  • ▸Programming and debug interfaces
  • ▸Compact enclosure integration

// Component placement is not annotated on the photograph.

04 System Architecture
Three-Phase Supply
Voltage & Current Sensing
ATM90E36A Metering IC
SPI
ESP8266 Firmware
Wi-Fi
Monitoring System
The device makes these values available
Instantaneous powerEnergy totalsRMS voltageRMS currentPower factorFrequency
05 Electrical Parameters Measured

The metering IC provides the electrical measurements; the firmware reads them over SPI and converts the raw readings into engineering values. The groups below are the metering capabilities of the ATM90E36A as used by this device.

Power
  • ▸Active power
  • ▸Reactive power
  • ▸Apparent power
Energy
  • ▸Active energy
  • ▸Reactive energy
Voltage & Current
  • ▸RMS voltage
  • ▸RMS current
Power Quality
  • ▸Power factor
  • ▸Frequency
06 Firmware Architecture
System initialisation
ATM90E36A configuration
Measurement data acquisition
Data processing and calibration
Wi-Fi communication
Data transmission
Supporting modules
Configuration handlingStatus monitoringError handlingDevice debugging
07 ATM90E36A Metering Interface
Voltage & Current Inputs
ATM90E36A
SPI
ESP8266
Processed Measurements

The metering IC performs the electrical measurements. The firmware configures the IC, reads its registers over SPI and converts the raw readings into engineering values.

Engineering units
PowerW
EnergyWh
VoltageV
CurrentA
Power factor—
FrequencyHz
08 Measurement Calibration

Calibration allowed the measured values to be corrected against reference values so the reported measurements agree with reference instruments.

Measurement acquisition
Reference comparison
Calibration calculation
Coefficient storage
Scaled measurements

// Calibration is described conceptually — the implemented procedure and constants are proprietary and not published.

09 Wi-Fi Connectivity
Device
Wi-Fi Network
Data Transmission
Monitoring System

The device transmits measurement data over Wi-Fi so the electrical parameters can be monitored remotely. The implementation is kept general to protect proprietary details.

10 Testing & Validation
Verification covered
  • ▸Hardware bring-up
  • ▸Power supply verification
  • ▸Voltage measurement verification
  • ▸Current measurement verification
  • ▸Energy measurement verification
  • ▸SPI communication debugging
  • ▸Wi-Fi connectivity debugging
  • ▸Calibration testing
  • ▸Long-duration stability testing
  • ▸Enclosure integration testing
Hardware verification
Firmware verification
Communication verification
Measurement verification
Calibration
System testing
11 Engineering Challenges
  1. 01
    Power supply design
    Providing a stable supply for the metering IC, the Wi-Fi module and the measurement circuitry from a three-phase supply.
  2. 02
    Voltage measurement interfaces
    Conditioning the three phase voltages so the metering IC receives signals within its input range.
  3. 03
    Current measurement interfaces
    Feeding the current signals to the metering IC so the measured values track the actual load.
  4. 04
    SPI communication
    Getting reliable register read and write access to the metering IC from the Wi-Fi module.
  5. 05
    Metering IC configuration
    Setting up the ATM90E36A correctly so the readings are meaningful and repeatable.
  6. 06
    Wi-Fi integration
    Keeping the wireless link up and the measurement data flowing from the device.
  7. 07
    Measurement accuracy and calibration
    Getting the measured values to agree with reference instruments across the operating range.
12 Technology Stack
Hardware
ATM90E36AESP8266Custom PCBThree-Phase Power InterfacePower Supply Design
Firmware
Embedded C/C++SPIMetering DriversMeasurement ProcessingCalibration
Connectivity
Wi-FiIoTData Transmission
Testing
Hardware DebuggingMeasurement VerificationCommunication DebuggingStability Testing

// Selected technical details have been generalized to protect proprietary product information.