STMicroelectronics AN2799 Application Note Measuring Mains Power Consumption

This document describes a software and hardware solution using the STM32x microcontroller and the STPM01 power meter for measuring mains power consumption, and provides hardware and firmware guidelines to interface the STPM01 with the STM32x microcontroller.


STMicroelectronics AN2799 Application Note Measuring Mains Power Consumption - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
14
File format
PDF
File size
378 KB
Published
06 August, 2012
Updated
28 September, 2023
MD5 checksum
000FB94F0AF3612AF19D5972E38BDE23

About this manual

This document describes a software and hardware solution concerning the STM32x microcontroller and the STPM01 power meter for measuring mains power consumption. It provides hardware and firmware guidelines to interface the STPM01 with the STM32x microcontroller. The system described is the first "brick" to build a complex system for distributed load management.

The solution is based on the STM32F103xx microcontroller and the STPM01 with a current transformer. The document details the file organization, hardware description, functional description, and firmware description, including the object-oriented approach used for the power meter management.

What's inside

  • File organization
  • Hardware description
  • STM32F103xx microcontroller
  • STPM01 power meter
  • Functional description
  • Firmware description
  • Power meter object
  • Hardware abstraction layer
  • Application interface
  • Revision history

Specifications

Microcontroller CoreARM 32-bit Cortex-M3 CPU
Microcontroller Frequency72 MHz
Flash Memory932-to-128 Kbytes
SRAM6-to-20 Kbytes
ADC Resolution12-bit
ADC Channels16-channel
ADC Conversion Range0 to 3.6 V
STPM01 Read Speed32 MHz
STPM01 Write Speed100 kHz
STPM01 Frequency Support50-60 Hz

Frequently asked questions

What microcontroller is used in the solution?

The solution is based on the STM32F103xx microcontroller in the LQFP64 package.

What device is used to measure the phase AC current?

The device used to measure the phase AC current is the STPM01 with a current transformer.

What is the maximum reading speed of the STPM01?

The maximum reading speed of the STPM01 is 32 MHz.

What is the maximum writing speed of the STPM01?

The maximum writing speed of the STPM01 is 100 kHz.

Download PDF (378 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →