Giter VIP home page Giter VIP logo

aa-30.zero's Introduction

AA-30.ZERO

Use an AA-30.ZERO antenna analyzer with node.js.

const AA30Zero = require('AA-30.ZERO');

const aa30 = new AA30Zero('/dev/ttyS0');
aa30.on('measurement', console.log);
aa30.init();
aa30.version().then(v => console.log('version', v));
aa30.scan('24848000', '10000', '100').then(data => {
    console.log('Lowest VSWR', data);
});

Constructor

Just pass the path to your serial port, eg. 'COM4' or '/dev/ttyUSB0':

new AA30Zero('/dev/ttyS0');

Methods

  • init() - Required - Sets up event handling and data parsing
  • version() - Request the AA-30.ZERO's version string
    • Returns a Promise which resolves with the version string
  • scan(centre, range, samples) - Perform a scan
    • centre is the centre frequency in Hz (eg. 14150000)
    • range is the sweep range in Hz (eg. 100000 to sweep 50 KHz on either side of centre)
    • samples is the number of readings to take across range
    • Returns a Promise which resolves with { frequency, vswr } of the measurement with the lowest VSWR

Events

  • measurement - Emitted for each measurement that is taken during a scan
    • Callback receives an object parameter with frequency and vswr properties

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.