No edit summary
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<br clear="all" />
<!--infobox-->
{{OpenKhowHowManifest
|manifest-date-created=
|manifest-date-updated=2020-06-04
|manifest-author-name=Kathy Nativi
|manifest-author-affiliation=Appropedia
|manifest-autho-email=info@appropedia.org
|title=Measuring DC electrical energy production from micro-renewables
|description=Energy monitoring electronics
|intended-use=development
|keywords=
|project-link=https://openenergymonitor.org/
|contact-affiliation=
|contact-appropedia-user=User:TrystanLea
|image=Dcenergymonitor01.jpg
|development-stage=
|made=No
|made-independently=No
|derivative-of=
|manufacturing-files=
|manifest-language=eng
|date-published=
|main-materials=
|sustainable-development-goal=Sustainable Development Goal 8, Sustainable Development Goal 10, Sustainable Development Goal 11
|documentation-language=eng
}}
<!--end infobox-->


==Introduction==
[[Image:Dcenergymonitor01.jpg|thumb|right|The DC energy monitoring electronics]]
[[Image:Dcenergymonitor01.jpg|thumb|right|The DC energy monitoring electronics]]
[[Image:Dcenergymonitor08.jpg|thumb|right|The wind turbine]]
[[Image:Dcenergymonitor08.jpg|thumb|right|The wind turbine]]
==Introduction==
The electronics and software detailed here measures quantities related to DC electrical energy production from micro-renewables. Including: Voltage, Current and Power. (It will soon measure total energy produced and a few other useful quantities)
The electronics and software detailed here measures quantities related to DC electrical energy production from micro-renewables. Including: Voltage, Current and Power. (It will soon measure total energy produced and a few other useful quantities)


Line 37: Line 63:
===Electronics side===
===Electronics side===


[[Image:Dcenergymonitor02.png|thumb|right|Circuit schematic: electrical energy production monitor]]
[[Image:DCcurrentSense.jpg |thumb|right|Circuit schematic: electrical energy production monitor]]
 
[[Image:Dcenergymonitor03.png|thumb|right|Circuit schematic: full battery monitor]]


I came across the circuit design and a lot of good circuit examples of DC current sensing and advice on the linear technologies website [http://www.linear.com/ad/current_sense.jsp here]. The circuit above is half of the battery current monitor circuit which can be found in their [http://www.linear.com/ad/08-dc.pdf DC pdf]. Half is only needed since for measuring current flowing from a micro-generator to a load the current only flows in one direction. The battery monitoring circuit measures current flowing in two directions: current flowing to the battery - charging and current flowing from the battery discharging. I have built the battery monitor circuit so that I can use it for both applications if I need to and the added expense is small. When measuring the total output of the turbine only half of the circuit is needed.
I came across the circuit design and a lot of good circuit examples of DC current sensing and advice on the linear technologies website [http://www.linear.com/ad/current_sense.jsp here]. The circuit above is half of the battery current monitor circuit which can be found in their [http://www.linear.com/ad/08-dc.pdf DC pdf]. Half is only needed since for measuring current flowing from a micro-generator to a load the current only flows in one direction. The battery monitoring circuit measures current flowing in two directions: current flowing to the battery - charging and current flowing from the battery discharging. I have built the battery monitor circuit so that I can use it for both applications if I need to and the added expense is small. When measuring the total output of the turbine only half of the circuit is needed.
Line 127: Line 151:
[[Image:Dcenergymonitor08.png|thumb|right|Graph output of power]]
[[Image:Dcenergymonitor08.png|thumb|right|Graph output of power]]


The DC energy monitor was needed to measure the output of two wind turbines I helped build over the last two years: The [http://www.wyfsd.org/cms/index.php?page=wind_turbine_workshop_2008&lan=en North Wales] wind turbine built on a week long workshop organised by myself, V3 Power and WYFSD, and the [http://cardiffwind.blogspot.com/ wind turbine] built as a training project with the Cardiff branch of Engineers Without Borders. Both wind turbine are [http://scoraigwind.com/ Hugh Piggott] designed 12V DC machines. They can produce up to around 500W of power.  
The DC energy monitor was needed to measure the output of two wind turbines I helped build over the last two years: The North Wales wind turbine built on a week long workshop organised by myself, V3 Power and [http://www.dyfodol.org/ Dyfodol] (formerly the WYFSD), and the [http://cardiffwind.blogspot.com/ wind turbine] built as a training project with the Cardiff branch of Engineers Without Borders. Both wind turbine are [http://scoraigwind.com/ Hugh Piggott] designed 12V DC machines. They can produce up to around 500W of power.  


The DC energy monitor was connected up between the wind turbine and the battery, the wind blew, and the results can be seen in the graph of output power. Hitting 500W was very exiting!
The DC energy monitor was connected up between the wind turbine and the battery, the wind blew, and the results can be seen in the graph of output power. Hitting 500W was very exiting!

Revision as of 15:33, 14 June 2020

FA info icon.svg Angle down icon.svg Device data
Hardware license CERN-OHL-S
Certifications Start OSHWA certification


Introduction

The DC energy monitoring electronics
The wind turbine

The electronics and software detailed here measures quantities related to DC electrical energy production from micro-renewables. Including: Voltage, Current and Power. (It will soon measure total energy produced and a few other useful quantities)

These values are useful for: Sizing the loads - how many lights, computers, batteries etc can be connected. Monitoring the state of charge of the batteries. Monitoring the performance of the system. Identifying any faults.

Note: Initial rough tests seem good, further calibration and more detailed tests to find out the performance and accuracy are needed however.

This project is work in progress, it is part of: The open energy monitor project - a project to develop and build open source energy monitoring and analysis tools for energy efficiency and distributed renewable microgeneration.

How it works and how to build it

Some brief theory

Taking an example of a basic micro-renewable energy installation: A 12V DC wind turbine connected to a 12V battery. It is possible to measure two quantities directly: the voltage of the turbine and battery and the current flowing between the turbine and the battery. If we take a reading of these quantities at any instant and multiply them together we get a value for power, the rate at which energy is transmitted, from the wind turbine to the battery.

Brief overview of method

The DC energy monitor detailed here uses the current sensing resistor (also known as a shunt) method to measure the current. It uses an Arduino to process the output of the initial voltage and current sensing circuit and to send values for voltage, current and power to a computer for graphing via USB.

From the Arduino website:

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.

The DC energy monitor is best described in 3 parts:

  • The Electronics
  • The Arduino based software
  • The Computer based software

Electronics side

Circuit schematic: electrical energy production monitor

I came across the circuit design and a lot of good circuit examples of DC current sensing and advice on the linear technologies website here. The circuit above is half of the battery current monitor circuit which can be found in their DC pdf. Half is only needed since for measuring current flowing from a micro-generator to a load the current only flows in one direction. The battery monitoring circuit measures current flowing in two directions: current flowing to the battery - charging and current flowing from the battery discharging. I have built the battery monitor circuit so that I can use it for both applications if I need to and the added expense is small. When measuring the total output of the turbine only half of the circuit is needed.

Voltage measurement

The voltage is measured using a simple voltage divider to bring the voltage within 0-5V Arduino input voltage requirements. A 12V wind turbine's voltage will vary depending on wind speed and on the load placed on the output. The output of the voltage divider is connected to analog pin 0 of the Arduino.

I'm using resistor values of RVDa = 100kΩ and RVDb=10kΩ for the voltage divider this scales the voltage down just under 11 times keeping it well within the Arduino range.

Current measurement

The current is measured by measuring the voltage drop across a low resistance current sensing resistor placed in between the positive terminal of the load and the positive terminal of the micro-generator (also known as high side current sensing).

This voltages is in turn amplified by the LT1495 op amp chip and the 2N3904 transistor. The LT1495 is quite an expensive chip, it would be good to find a cheaper one sacrificing on accuracy a little. The op-amp needs to be able to take above supply input voltages.

The amplified output voltage corresponding to the current going to the load is then connected to analog pin 1 of the Arduino.

The range of current that can be measured by the circuit is defined by Rsense, RA and RB. The output voltage needs to be again between 0 and 5V.

The Voltage out from the current sensing circuit is given by:

Taking the example of the 500W Hugh Piggott wind turbine. If the voltage at 500W is 12V then the current will be about 42Amps. I ordered my shunt from farnell and the cheapest one they had available that was rated above 42Amps was this one. Its resistance is 0.0005Ω (0.5mΩ) which dictates along with the voltage out needed the values of RA and RB. If used RA = 1kΩ and RB = 220kΩ which gives a voltage out of 4.62V at 42Amps.

To build:

List of components required
1x Arduino
1x LT1495 Opamp
1x 8pin DIL chip holder
1x 0.0005Ω current sensing resistor (Rsens).
1x 220kΩ resistors for RB. (2x for battery monitor)
2x 1kΩ resistors for RA. (4x for battery monitor)
1x 100kΩ resistors for RVDa
1x 10kΩ  resistors for RVDb
1x 2N3904 transistors. (2x for battery monitor)
1x stripboard (for mounting the above)
Wire, connectors...

Layout suggestion

Here are some close-ups of the my board, if you need any guidance on layout, something that's always a challenge...

Circuit layout: bottom
Circuit layout: top

Software side

On the Arduino

The Arduino reads in the signals connected to its analog input pins 0,1. It converts the analog signals to digital information which can be manipulated within the program uploaded to the Arduino.

The first step is to convert this raw analog input information into voltage and current values. The power can then be calculated simply by multiplying the voltage value with the current value.

The Voltage, Current and Power values are then sent along the USB to the computer.

This is all detailed in full in the Arduino sketch (program).

To implement:

  1. Download the Arduino sketch here
  2. Compile and upload the Arduino sketch to the Arduino. For a 'How to' on compiling and uploading the sketch to the Arduino, have a look here
  3. Check that values are being sent from the Arduino in the Arduino serial monitor.

On the Computer

The ArduinoComm java program (link below) reads the values sent from the Arduino. The program outputs the values to the terminal window. Terminal is then used to write the printed data to a file for storage. The data file can be opened simultaneously by KST for real-time graphing.

KST is a free and open source scientific data graphing software that can be downloaded from their site.

To do this:

  1. Download the ArduinoComm java program here.
  2. Compile the program. For a 'How to' on compiling and running java programs have a look here.
  3. Run the program with $ java programName >tmp.dat. The addition of >tmp.dat at the end of the run command line writes the data outputed by the java program to a file for storage.
  4. Open KST for graphing.
  5. Configure KST to open the tmp.dat file.

Testing

Hugh Piggott wind turbine

Wind turbine under test
The monitoring setup
Graph output of power

The DC energy monitor was needed to measure the output of two wind turbines I helped build over the last two years: The North Wales wind turbine built on a week long workshop organised by myself, V3 Power and Dyfodol (formerly the WYFSD), and the wind turbine built as a training project with the Cardiff branch of Engineers Without Borders. Both wind turbine are Hugh Piggott designed 12V DC machines. They can produce up to around 500W of power.

The DC energy monitor was connected up between the wind turbine and the battery, the wind blew, and the results can be seen in the graph of output power. Hitting 500W was very exiting!

Contact

Please don't hesitate to contact me if you have any questions.

My email is: trystan dot lea at googlemail dot com or on the discussion page.

External links

For the version of this page documented on openenergymonitor have a look here: 12V DC Invasive

The open energy monitor project: http://openenergymonitor.org

For more information on Hugh Piggott and his wind turbine designs: http://scoraigwind.com/

The Arduino project: http://www.arduino.cc/

Cookies help us deliver our services. By using our services, you agree to our use of cookies.