Skip to content

mashbrno/emoncms-power-reader

Repository files navigation

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.

About

Netduino reader for EmonCMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages