There was a bug in the code I displayed (but did not run) during class. I’ve attached two working examples of using timers instead of delay(): class-9
Assignment for Thursday: get an IFTTT account that, prefer a disposable one.
48-339/739 Spring 2018
There was a bug in the code I displayed (but did not run) during class. I’ve attached two working examples of using timers instead of delay(): class-9
Assignment for Thursday: get an IFTTT account that, prefer a disposable one.
Design and make an interactive system with Arduino and p5.js that assists someone in a task.
We will discuss in class on Tuesday and also consider ways to document it for the web.
Due for class demonstration 13 Feb, post documentation by 15 Feb.
Notes for class-7
Sending data to an Arduino from a p5.j sketch:
Bruce Sterling will give a talk at SCI on 7 February and we’ll discuss his talk on the 8th, so please attend.
I’m a huge fan of science fiction movies and I think part of the attraction is special effects, more specifically practical effects. CGI can be a tool for fantastic visions in movies (ex: TRON, Avatar) but a practical effect is a real, physical thing in an actor’s hands while they are shooting a movie. One side of practical effects is the world of fandom and at the opposite end are the people who make movies like Blade Runner 2049. (Probably some spoilers in this but if you haven’t seen 2049 yet now you have two problems.)
If someone asks you to develop this, the correct response is “I quit.”
Due 23:59, 5 Feb, please post a .zip folder with your p5.js folder, Arduino sketch, and Fritzing sketch. If you can post video, great.
Tie your previous project (or a new one if you like) to a p5.js client: display the state of your client and any relevant sensor data in p5.js. Use graphics, animation, sound, or any other p5.js feature you think is the best element for displaying this data.
In addition to the tools we discussed Tuesday, we’ll need two more for today’s class:
https://github.com/vanevery/p5.serialcontrol/releases
John Cage, 10 Rules for Students and Teachers
RULE ONE: Find a place you trust, and then try trusting it for a while.
RULE TWO: General duties of a student: pull everything out of your teacher ; pull everything out of your fellow students.
RULE THREE: General duties of a teacher: pull everything out of your students.
RULE FOUR: Consider everything an experiment.
RULE FIVE: Be self-disciplined: this means finding someone wise or smart and choosing to follow them. To be disciplined is to follow in a good way. To be self-disciplined is to follow in a better way.
RULE SIX: Nothing is a mistake. There’s no win and no fail, there’s only make.
RULE SEVEN: The only rule is work. If you want it to lead to something. It’s the people who do all of the work.
RULE EIGHT: Do not try to create and analyze at the same time. They’re different processes.
RULE NINE: Be happy whenever you can manage it. Enjoy yourself. It’s lighter than you think.
RULES: We’re breaking all the rules. Even our own rules. And how do we do that? By leaving plenty of room for X quantities.
HINTS: Always be around. Come or go to everything. Always go to classes. Read anything you can on your hands. Look at movies carefully, often. Save everything. It might come in handy later.
’nuff said.
Install p5.js
Install node.js
Software development requires you use an editor that supports plain text (ASCII and UNICODE) and doesn’t do goofy formatting things with HTML. Most (all?) software development editors will handle JavaScript. Note that “which editor is best?” is what we refer to as “an underwear argument.” This is when adults waste countless hours arguing about briefs, boxers, boyshorts, thongs, hipsters, and going commando.
Open source options include:
There are plenty of commercial options, if you already use BBEdit (equiv) or XCode that should be fine.
A very detailed history of p5.js. This will answer a lot of what/why questions.
Since we just did arrays, here is how they work in p5.js.
Later in the semester we will look at “scraping” data from the interweb to use in class project, here’s one way we can do this.
bookmark this page