Category: ITP Fall 2018

PCM Wk 8: Transistors, Relay, Motors

Controlling High-Current Loads Notes: For controlling devices that need more electrical current than micro controllers can supply, we can use 1.) relays, 2.) transistors, 3.) optoisolator Relays – devices that control a switch through magnetism; a little slower to close ( a few miliseconds delay) 2 types of relays: electromechanical, solid states solid state relays: […]

Animation Wk 6-7

Idea:  When the user shows this hand drawn x symbol to the screen, which is often seen when the console shows an error in your code, a coding syntax character will appear. Associated with each character is a little blurb about the syntax and some helpful reminders when using it. This AR piece is intended […]

ICM Wk 7: Data

Overview For this week’s assignment to create a sketch that uses an external data source. I decided to proceed by finding dataset regarding suicide rates in different countries and use the table function of p5.js to help visualize the rates. Here is the final code: https://editor.p5js.org/elinsterz/sketches/r1Zh07EnQ Below is a video that shows the final results:   […]

PCM Wk 7: Serial Output From P5.js

Followed along with the lab: Process: a.) Set up breadboard b.) Program p5.js for serial communication See video below for example of the keyPressed() function and mouseDragged() function c.) Mousedragged() function in p5js to change the values displayed on the p5.js canvas and the LED brightness.   d.) keyPressed() function in p5js reading the pressed […]

PCM Wk 6-7: Fortune Teller’s Crystal Ball

Overview: For our Halloween project, Chunhan Chen and I collaborated with NYU’s Graduate Musical Theatre Writing Program to create an interactive crystal ball for their fortune teller room. The idea is that 2 – 3 guests would enter the room and have their tarot cards read by the NPC (non-player character). In the middle of […]

ICM Wk 6: DOM Elements

Here is the final code for this week’s homework: https://editor.p5js.org/elinsterz/sketches/ByaOUtiom Below is a video of the sketch above.   — Process:  For this week’s assignment to create our own HTML page with the following: Pre-defined HTML Elements Pre-defined CSS Styles HTML Elements generated by your p5 sketch Some kind of mouse interaction with an HTML Element […]

PCM Wk 6: Serial Input to p5.js

Following along with the Lab: Serial Input to p5.js 1.) First, I hooked up the potentiometer on the breadboard to the Analog Input pin on the Arduino. 2.) Followed along with the video to install the “p5.serialcontrol” App and download the “p5.js serialport library”. Then added the library to the p5.js sketch. 3.) Added the […]

PCM Wk 6: Asynchronous Serial Communication Lab

Following along with the Intro to Asynchronous Serial Communication Lab. 1.) I used 2 analog inputs sensors: a force sensing resistor and a potentiometer. I hooked up the Arduino accordingly, using a 1 kΩ resistor to connect to GND for the force sensing resistor. 2.) Then, I ran a sketch with that has a “Serial.print(SensorValue)” statement […]

PCM Wk 5: Serial Communication

Serial Communication Notes (for personal reference): Electrical agreement between laptop and Arduino needs to have: Voltage level Speed (Ex: 9600 bps; needs to know how frequently to sample) Logic (what do the pulses of high and low mean) The laptop and Arduino need to agree on whether the binary representation is inverted or non-inverted When 2 […]

ICM Wk 5 : Object-Oriented Sketch

Final results: sketch 1 , sketch 2 This week’s project is to create a sketch in an object-oriented fashion. Here are the steps to take for this project: 1. Make one single object with just variables. 2. Put one or more functions in the object. 3. Try manually making two objects. 4. Duplicate the object using an […]