Home

Awesome

STM32 Energy Monitoring

The STM32 platform is a family of microcontrollers based on the Arm Cortex M processor, offering among many powerful features, plenty of 12-bit analog inputs and high speed sampling, making them particularly suitable for energy monitoring applications.

The following resources are a work in progress guide to using the STM32 platform for energy monitoring, being written as part of development work into the next generation of OpenEnergyMonitor hardware. To be included as a section in http://learn.openenergymonitor.org

OpenEnergyMonitor Forum threads:

Getting started: STM32 (Arduino integration)

If you are familiar with the Arduino platform getting the basics working using the familiarity of the Arduino IDE and the STM32Dunio Arduino integration is a good place to start.

Introducing STM32CubeMX

ADC access using the Arduino analogRead command gives limited performance, its possible to sample much faster across many channels by using the lower level STM32 HAL (Hardware Access Layer) provided by ST. The development pathway to access these features is different and quite daunting if your primarily familiar with the Arduino platform. There is a tool called STM32CubeMX which is a kind of project builder that you can use to generate the initial outline of your project, from there you can enter your own 'user code' into the relevant placeholders in the generated project. The following set of guides give an introduction to this process:

Hardware

Notes on hardware development and initial designs:

STM32-pi_basic

STM32-pi_full

Misc

Firmware Examples

Firmware examples included in this repository:

STM32 Pi Full

Other: