More information available here: https://smart.princeton.edu/
Teensyduino for arduino control and sensor readings
- Available here: https://www.pjrc.com/teensy/td_download.html
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
- Install Node Version Manager (NVM) by running
- Also available here: https://nodejs.org/en/download/
S.M.A.R.T Sensor
- Clone this repo
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 updatepipe.js
port name variable accordingly.
- Run
node pipe
- Will get
PIPE: Serialport Error
if USB is not connected
- Will get
- Open
index.html
in browser- Used to display three.js visualization
- Run commands using console in browser
- See commands documentation below
L
: Toggle laser on or offH
: Move to home positionC
: Disables stepper motorsE
: Enables stepper motorsA<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
- For example:
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
- For example:
M
: Take a complete measurement at current position, point will be added to datasetR
: Take a mylexis reading at current positionD
: Take a lidar reading at current positionstart scan
: will begin a scan using the current scan patternload scan <scan name>
: load a scan JSON into browser visualization. Scans should be stored in thecompletedScans
directory.- For example:
load scan f1rst-6v-2017_05_05-studioLABIA.json
- For example:
load pattern <pattern name>
: load a scan pattern for future scans. Scan patterns should be stored in thescanParams
directory.- For example:
load pattern 6v-scanPoints.json
- If this command is not run the default pattern is set in
js/smartScanning.js
- For example: