CONNIE – PIR sensor

//the time we give the sensor to calibrate (10-60 secs according to the datasheet)
int calibrationTime = 30;

//the time when the sensor outputs a low impulse
long unsigned int lowIn;

//the amount of milliseconds the sensor has to be low
//before we assume all motion has stopped
long unsigned int pause = 5000;

boolean lockLow = true;
boolean takeLowTime;

int pirPin = 7; //the digital pin connected to the PIR sensor’s output
int ledPin = 9;
void setup(){
pinMode(pirPin, INPUT);
pinMode(ledPin, OUTPUT);
digitalWrite(pirPin, LOW);

//give the sensor some time to calibrate
Serial.print(“calibrating sensor “);
for(int i = 0; i < calibrationTime; i++){
Serial.println(” done”);
Serial.println(“SENSOR ACTIVE”);

void loop(){

FINAL PROJECT : fundamentals of art with tech / SP2014

For the second half of the semester students will work collaboratively in pairs to build a project that uses code to sequence and control physical elements in their artwork.  Students may incorporate some or all of the components and techniques developed earlier in the semester.  Some suggested themes for this final project are: Constructed Biology; Environmental Systems; Activated Space; Alternate Interface; Object Behavior.  This project will be developed in both the Programming and Kinetics sections.

Programming of the artwork will be made possible through the Processing and Arduino development environments.  The Fundamentals of Art & Technology kit that you purchased has an Arduino Board, a breadboard, and a USB cable.  Sketches will be uploaded to the Arduino board via the serial (USB) connection. You will develop a Processing sketch that communicates with the Arduino board allowing you to connect to the physical world through input and/or output devices.

The Arduino microcontroller can also be used as an embedded stand-alone controller for your artwork.  In class we will also look at how the Arduino board can be programmed to send and receive data to and from a processing sketch. We will investigate how to use Processing to read and write through the serial port to the Arduino controller. You will learn to program input and output sketches to the Arduino board.  In workshops we will learn how to use a breadboard with the Arduino and make the necessary electronic connections to switches, lights and motors.

 For each project your team will submit a typed proposal and a sketch of your idea. Proposals must be emailed to both professors on or before the proposal due date.  We will critique this team project the final day of class.

 The use of components and projects developed earlier in either section is strongly recommended.

Project requirements:

Working in pairs you will develop and build the following:

1.  A project that uses code to sequence and interact with physical elements in your artwork.

2. No more than a total of three inputs and/or outputs of control for this project.

3.Typed proposal with sketch and submitted to Canvas under final project assignment to on or before the proposal due date: Apr 1, 2014, time : 9:00 am.