Giter VIP home page Giter VIP logo

chaosgit's Introduction

Repo for S.M.A.R.T Sensor

More information available here: https://smart.princeton.edu/

Installation:

Teensyduino for arduino control and sensor readings

Node.js for pipe.js & lstprts.js

  • On Linux/MacOS:
    • Install Node Version Manager (NVM) by running curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
    • Install nvm install node
  • Also available here: https://nodejs.org/en/download/

S.M.A.R.T Sensor

  • Clone this repo

Setup:

  • cd /<path-to-this-repo>
  • npm install serialport
  • npm install --save ws
  • node main.js
  • run node lstprts.js to list all usb ports. Select the correct name and update pipe.js port name variable accordingly.

Usage:

  • Run node pipe
    • Will get PIPE: Serialport Error if USB is not connected
  • Open index.html in browser
    • Used to display three.js visualization
  • Run commands using console in browser
    • See commands documentation below

Commands:

  • L: Toggle laser on or off
  • H: Move to home position
  • C: Disables stepper motors
  • E: Enables stepper motors
  • A<degree>: Move servo A (rotates around vertical axis) to the position indicated by
    • For example: A10 will move A to 10 degrees from the normal
  • B<degree>: Move servo B (rotates around horizontal axis) to the position indicated by
    • For example: B80 will move B to 80 degrees from the normal
  • M: Take a complete measurement at current position, point will be added to dataset
  • R: Take a mylexis reading at current position
  • D: Take a lidar reading at current position
  • start scan: will begin a scan using the current scan pattern
  • load scan <scan name>: load a scan JSON into browser visualization. Scans should be stored in the completedScans directory.
    • For example: load scan f1rst-6v-2017_05_05-studioLABIA.json
  • load pattern <pattern name>: load a scan pattern for future scans. Scan patterns should be stored in the scanParams directory.
    • For example: load pattern 6v-scanPoints.json
    • If this command is not run the default pattern is set in js/smartScanning.js

chaosgit's People

Contributors

eteitelb avatar jakeread avatar nhouchois avatar

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.