Giter Club home page Giter Club logo

emon32's Introduction

Energy Monitor 32

Introduction

Energy Monitor 32 (emon32) is a system for measuring power consumption using current transfomers (CTs). It is based heavily on the work done by OpenEnergyMonitor, particularly the emonTx. It is designed to be compatible with the downstream data requirements of that system.

The emonTx energy monitors are currently based around the ATMega328, as made popular by Arduino, and an extended version, the AVR128DB. These chips are expensive, have few peripherals, and are being pushed to the limit of their data processing capability. The aims of this project are:

  • Provide a low cost, high performance energy monitoring system.
  • Provide a scalable and modular system.
  • Provide an architecture agnostic library to handle energy monitoring functions.

There is also firmware available to enable a complete energy monitoring system.

Getting started

There are currently two implementations:

Microcontroller Selection

The firmware is agnostic to the microcontoller used, although a modern 32 bit core is preferred. This implementation targets the Microchip SAMD series - this allows easy porting from small and cheap (SAMD1x) to higher performance and capability microcontrollers, such as the SAMD2x and SAMD5x. The SAMD family has the following useful functions

  • Differential ADC (dual channel for SAMD5x)
  • Asynchronous event system
    • This allows precise sample timing without any interrupt overhead
  • Generic serial communication modules
  • Flexible clocking system
    • High speed clocks are available for the core, and separate clocks for each peripheral
    • Clocks and peripherals can be gated when not in use
  • USB virtual serial port (SAMD21 and SAMD51 only)
  • USB bootloader (SAMD11, SAMD21, SAMD51 only)

If you would like to use a different microcontroller, the following features are recommended:

  • Minimum 24 MHz clock
  • Timer with 1 us resolution
  • DMA (minimum 2 channels)
  • 2x UART module
  • SPI module
  • I2C module

Functions in the main loop are abstacted from the underlying hardware. Implementation specific configuration (for example, configuring the ADC) must be provided.

License

This project is licensed under the Creative Commons Attribution Sharealike 4.0. Any alterations must be made available immediately, or upon request.

Acknowledgements

  • OpenEnergyMonitor
  • Rob Wall of Open Energy Monitor forums for lots of in depth discussion around sampling strategies.

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.