Git Product home page Git Product logo

single-phase-power-analyser's Introduction

single-phase-power-analyser

A low cost single phase power analyser capable of working with high frequency arbitrary waveforms. Makes use of a USB oscilloscope and sigrok-cli for acquiring data and the numerical python library for analysis.

Features

  • As it makes use of an oscilloscope, it can measure arbitrary waveforms (current and voltage) at high frequency.
  • As the wave forms are acquired and stored in a python array, they can be charted and analysed using the powerful numpy, scipy, matplotlib or similar python libraries.
  • With minor changes, this script could be extended for use with PWM voltage (such as from motor controllers) more oscilloscope channels for 3 phase power analysis. Note that multiple oscilloscopes cannot be used simultaneously unless there is a way to synchronise them due to sigrok-cli only working with one device at a time.

Design

A Hantek 6022BE two channel oscilloscope is used to monitor the voltage (CH1) and current (CH2) of a alternative source. The current can be measured through a shunt resistor, or as I did, with a Hantek current clamp. The oscilloscope acquires a user specified set number of samples at a desired sample rate. This data is then pulled off the oscilloscope over USB using sigrok-cli. As sigrok-cli operates by command prompt only, the python subprocess library is used. The data is then analysed to calculate the apparent power, power factor, peak to peak voltage/current etc. Scipy is also used to fit a sine wave to the voltage and current wave forms for frequency estimation, but is not required for anything else.

Example of the output data acquired from a 50 Hz transformer power some incandescent light globes.

alt text

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.