Coder Social home page Coder Social logo

yj490732088 / stm32-solar-power-data-logger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcutree/stm32-solar-power-data-logger

0.0 1.0 0.0 12.06 MB

This is the code I wrote to monitor the solar energy production and electricity consumption in my home

License: GNU General Public License v3.0

C 94.14% C++ 3.07% Shell 0.01% Python 0.33% Assembly 2.22% Makefile 0.16% Objective-C 0.08%

stm32-solar-power-data-logger's Introduction

HAOYU-MINISTM32 energy monitor

STM32 energy monitor / logger powered by the $32 HAOYU-MINISTM32V

I wrote this device and software to live monitor and log the solar energy production and household energy consumption, using a compellingly priced board, you can get here: HAOYU-MINISTM32V

I attached this device via GPIO in to the pulse outputs of the two Eastron SDM120 energy meters, which meter the production and consumption circuits. The code is adapted to the pulse rates of those meters. If you have different meters, you will have to adapt the macro WATT_HOURS_PER_IMP to the rate of your meter.

I connected this to a Raspberry pi via serial interface, which reads out the production/consumption values of the current day and uploads those to pvoutput.org (but the raspi-sourcecode is not part of this repository). Also the setting of the board clock is done per serial interface. (You will have to read the source code to figure out how it works).

The code I wrote is covered by the license in the LICENSE file, all pieces of code adapted/copied from other projects are covered by their respective licenses.

I wrote this using the arm-none-eabi-gcc toolchain, but an older version. On the most recent toolchain version the code crashes with a hardfault. I have not been willing to set aside the time to find out why, so I just keep compiling using the old tool chain version. (Which I currently don't know, because the computer power supply of that PC has died and I did not have to recompile for months now, as it runs stable).

This is also probably not the very latest version, since it resides on the PC hard disk which has died, but I will update as soon as I feel inclined to get that PC running again. I published this because the code has been working well for years now, and I hope some other people might benefit from it.

Best regards, Hans

stm32-solar-power-data-logger's People

Contributors

adamgreig avatar hansfbaier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.