This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My final project | Foundations | Pratt SAVI</title> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<meta charset="utf-8"> | |
<link href="https://carto.com/developers/carto-js/examples/maps/public/style.css" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Noto+Serif+JP|Open+Sans" rel="stylesheet"> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My final project | Foundations | Pratt SAVI</title> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<meta charset="utf-8"> | |
<!-- Include Leaflet --> | |
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"></script> | |
<link href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" rel="stylesheet"> | |
<!-- Include CARTO.js --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var levels = 'LEVEL DATA'; | |
var ready= false; | |
var WebSocket = require('ws'), | |
ws = new WebSocket('ws://hidden-fortress-3752.herokuapp.com'); | |
ws.on('open', function() { | |
console.log('open function fired!') | |
ws.send('Arduino here!' ); | |
ready = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <AltSoftSerial.h> | |
AltSoftSerial Xbee; // DOUT -> 8, DIN -> 9 | |
void setup() { | |
Serial.begin(38400); | |
Xbee.begin(9600); | |
} | |
void loop() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Energy - ITP - NYU | |
* Spring 2014 - Jeff Feddersen | |
* Solar challenge - Decibel meter | |
* Abe Rubenstein | |
* | |
* Arduino Uno | |
* Sparkfun microSD Shield | |
* Maxim MAX4466 Electret Microphone | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int i = 0; | |
int j = 0; | |
boolean run = true; | |
void setup() { | |
background(#ffffff); | |
size(600, 600); | |
frameRate(1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Introduction to Physical Computing - ITP - NYU | |
// Fall 2013 - Tom Igoe | |
// Final project - Sound Kites | |
// Abe Rubenstein + Yu Ji | |
// ARDUINO | |
// sensor values | |
int s1 = 0; | |
int s2 = 0; | |
int s3 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Introduction to Physical Computing - ITP - NYU | |
// Fall 2013 - Tom Igoe | |
// Final project - Sound Kites | |
// Abe Rubenstein + Yu Ji | |
// PROCESSING | |
import ddf.minim.*; | |
import processing.serial.*; | |
Minim minim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Introduction to Physical Computing - ITP - NYU | |
// Fall 2013 - Tom Igoe | |
// Midterm Project - Color Flute | |
// Abe Rubenstein + Yu Ji | |
// PROCESSING | |
import processing.serial.*; | |
Serial port; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Introduction to Physical Computing - ITP - NYU | |
// Fall 2013 - Tom Igoe | |
// Midterm Project - Color Flute | |
// Abe Rubenstein + Yu Ji | |
// ARDUINO | |
// global variables for raw sensor values | |
int photo1 = 0; // photoresistor 1 (red) | |
int photo2 = 0; // photoresistor 2 (green) |
NewerOlder