How openenergymonitor/stm32 works
This repository is a collection of STM32 firmware examples and development notes for OpenEnergyMonitor hardware, not one single application. Its main product workflow is firmware that samples analog inputs and performs energy-monitoring calculations; variants add temperature sensing, radio, meter communication, and board-specific behavior. The source excerpts show HAL-based ADC activity in the Sombrero firmware, while the README documents the broader example capabilities. Many example implementations were not sampled, so their internal links are omitted rather than inferred.
Main entry points: stm32f3xx_hal.h STM32 HAL · Src/main.c Sombrero Mini · Src/main.c Sombrero Full
Components 18
Board Basics
- Blink
Software/Blink/Src/main.c - ADC Example
Software/ADC/Src/main.c - DMA Example
Software/DMA/Src/main.c - STM32 HAL
Software/ADC/Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h
Energy Measurement
- Emon Example
Software/Emon/Src/main.c - Single CT
Software/Emon1CT/Src/main.c - CT with Temperature
Software/Emon1CT_ds18b20/Src/main.c - Phase Angle
Software/Emon1CT_phase_angle/Src/main.c - Three CTs
Software/Emon3CT/Src/main.c - CB Three CTs
Software/Emon3CT_CB/Src/main.c - CB Three CTs v2
Software/Emon3CT_CB_v2/Src/main.c - VET Monitor
Software/Emon3CT_VET/Src/main.c - Multichannel Monitor
Software/emonTxshield_dBC/Src/main.c - Sombrero Mini
Software/Sombrero_CB_STM32mini/Src/main.c - Sombrero Full
Software/Sombrero_VE_STM32full/Src/main.c
Communications
- Radio Monitor
Software/Emon3CT_RFM69/Src/main.c - RFM69 Example
Software/RFM69/Src/main.c - MBUS Reader
Software/MBUS/Src/main.c
Connections 2
- Sombrero Full → STM32 HAL: calls ADC APIs
Software/Sombrero_VE_STM32full/Src/main.c - Sombrero Mini → STM32 HAL: calls ADC APIs
Software/Sombrero_CB_STM32mini/Src/main.c