STM32 Energy Monitoring
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.
https://github.com/openenergymonitor/STM32
Category: Energy Systems
Sub Category: Building Energy Monitoring
Keywords from Contributors
wifi-network serial esp8266-arduino rfm69pi rfm69cw rfm12pi rfm12b openenergymonitor emoncms sustainability
Last synced: about 12 hours ago
JSON representation
Repository metadata
STM32 Energy Monitoring
- Host: GitHub
- URL: https://github.com/openenergymonitor/STM32
- Owner: openenergymonitor
- Created: 2018-03-17T09:39:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T14:42:59.000Z (about 4 years ago)
- Last Synced: 2025-04-17T21:25:23.163Z (10 days ago)
- Language: C++
- Homepage:
- Size: 168 MB
- Stars: 78
- Watchers: 6
- Forks: 28
- Open Issues: 0
- Releases: 0
-
Metadata Files:
- Readme: README.md
README.md
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.
- 1. Blinking an LED using the NUCLEO-F303RE Development board & STM32Duino
- 2. Basic NUCLEO-F303RE energy monitor using an EmonTxShield & EmonLib discreet sampling STM32Duino library
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
- Eagle design 01
- Prototype 1, breadboard, voltage follower & anti-alias
- STM32-pi_basic eagle design 02
- STM32-pi_basic eagle design 03
- STM32-pi_basic eagle design 04
- Design Notes v4
- STM32-pi_basic eagle design 05
STM32-pi_full
Misc
Firmware Examples
Firmware examples included in this repository:
- 1. Blink
- 2. ADC
- 3. DMA
- 4. Emon: EmonTxShield Voltage and CT1 current measurement, single ADC example.
- 5. Emon1CT: EmonTxShield Voltage (ADC1) and CT3 current measurement (ADC2) example.
- 6. Emon1CT_ds18b20: EmonTxShield Voltage (ADC1) and CT3 current measurement (ADC2) example with DS18B20 temperature measurement.
- 7. Emon3CT: EmonTxShield Voltage (ADC1) and 3x CT inputs on ADC2.
- 8. Emon3CT_CB: Firmware for Hardware/stm32-pi_basic/5
- 9. Emon3CT_CB_v2: Firmware for Hardware/stm32-pi_basic/5 v2.
- 10. Emon3CT_RFM69: EmonTxShield Voltage (ADC1), 3x CT inputs on ADC2 and RFM69 support.
- 11. Emon3CT_VET: Basic firmware for Hardware/stm32-pi_full v2 by Trystan Lea.
- 12. emonTxshield_dBC (v13): Mutli-channel energy monitor example firmware thanks to @dBC see https://community.openenergymonitor.org/t/stm32-development/6815/232
- 13. RFM69: RFM69 library and examples.
- 14. MBUS: Example of reading data from an MBUS meter using Serial and DMA's.
STM32 Pi Full
- STM32 pi v0.7 firmware basics
- Sombrero_VB_Blink
- Sombrero_VE_ADC-test
- Sombrero_VE_Blink
- Sombrero_VE_Working5
Other:
Owner metadata
- Name: OpenEnergyMonitor
- Login: openenergymonitor
- Email: [email protected]
- Kind: organization
- Description: Open-source energy monitoring tools to help us relate to our use of energy, our energy systems and the challenge of sustainable energy.
- Website: https://openenergymonitor.org
- Location: United Kingdom
- Twitter: Openenergymon
- Company:
- Icon url: https://avatars.githubusercontent.com/u/758944?v=4
- Repositories: 53
- Last ynced at: 2023-03-12T00:36:21.368Z
- Profile URL: https://github.com/openenergymonitor
GitHub Events
Total
- Watch event: 4
Last Year
- Watch event: 4
Committers metadata
Last synced: 6 days ago
Total Commits: 349
Total Committers: 5
Avg Commits per committer: 69.8
Development Distribution Score (DDS): 0.479
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Daniel Bates | d****2@g****m | 182 |
TrystanLea | g****n@o****g | 101 |
Trystan Lea | t****a@g****m | 56 |
Glyn Hudson | g****n@g****m | 6 |
TrystanLea | t****a@g****m | 4 |
Committer domains:
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 3
Total pull requests: 17
Average time to close issues: 2 months
Average time to close pull requests: 7 days
Total issue authors: 3
Total pull request authors: 3
Average comments per issue: 4.67
Average comments per pull request: 0.06
Merged pull request: 14
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- MohammedBENHADINE (1)
- Paul-Reed (1)
- TeguhTeknisi (1)
Top Pull Request Authors
- danbates2 (10)
- glynhudson (4)
- TrystanLea (3)
Top Issue Labels
Top Pull Request Labels
Score: 5.966146739123692