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.
48-339/739 Spring 2018
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.
In addition to the tools we discussed Tuesday, we’ll need two more for today’s class:
https://github.com/vanevery/p5.serialcontrol/releases
’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
First off, if you’re on a Mac and seeing the error about “Disk Not Ejected Properly”, I posted a fix for this last Fall.
Second, the problem I had with my Metro was apparently a short. When I got back to my studio I took out all the components and my Metro worked fine. I replaced the components one by one, doing a new build and upload on each component. By the time I was finished, it all worked correctly.
Magic.
Interrupts are a part of our daily life. The best example is a door bell. You have two options:
1) Go to the door once a minute and see if anyone is there.
2) Install a door bell. When someone comes to the door they push the bell and you are notified. You can choose whether or not to respond to the door bell.
Almost every input to a computing device is based on interrupts:
Take a look at the attached Arduino and Fritzing sketches. We will continue to discuss interrupts as well as state machines on Thursday. I’ll email the reading assignment in a few, please read it and be prepared for a short discussion on potential interaction methods.
class-3 updated 25 Jan with more examples of interrupts
full details at https://learn.adafruit.com/adafruit-metro-m0-express-designed-for-circuitpython/overview
Board installation instructions:
https://learn.adafruit.com/experimenters-guide-for-metro/configure-arduino-for-the-metro-express
Sketches show examples of
Class Theme – Improving Life
How can we improve someone’s life by making their physical environment interactive and responsive?
Syllabus is posted, please ask if you have any questions or concerns.
The class blog from 2008 that we skimmed in class.
Last year’s class blog that we can review in class Thursday if there is interest.
A guide to the materials on the walls of A10.
For the reading assignment, please read Tom Igoe’s “Physical Computing’s Greatest Hits (and Misses)“. I use this as a guide for what projects I’ll accept in this class, we’ll discuss it briefly at the start of class on Thursday.