Code Monkey home page Code Monkey logo

emoncms-power-reader's Introduction

Description

.Net MicroFramework code for measuring voltage and current and posting values to an EmonCMS site. Software is tested on Netduino Plus 2 with MF 4.3.

Other hardware requirements

Based on your setup, you need two resistors for voltage divider and a current sensor. I'm using one based on ACS712 using Hall effect.

Sample wiring

For 300 VDC and 10A, I will use ACS712 30A chip and resistors 470k and 4k7 ohms to keep output voltage safely under 3.3 volts.

Both resistors are in serie between plus and minus pole. Their connection is connected to analog A1 port of Netduino.

ACS712 is powered by 5V from Netduino, OUT port is connected to A2 Netduino's port.

Code compilation

You need a Visual Studio 2015 with Micro Framework extensions as described on this forum. There is also link for used Netduino firmware.

Sending data to EmonCMS

Currently configuration is stored in EmonCmsProxy. Update your read-write ApiKey and ServerUrl at least. Data are sent in order current, voltage and in this order the server is processing them. Suggested configuration is:

  • Log current to a feed.
  1. Log voltage to a feed.
  2. Multiply with current feed.
  3. Log result to solar_power feed. Name matters for solar dashboard.
  4. Use Power to kWh conversion.
  5. Log result to energy feed.

Other order can result to do calculations before current actual value is stored.

emoncms-power-reader's People

Watchers

 avatar  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.