mac online apple blackjack http://www.euro-online.org

Binary Clock

leds1.png

So I’ve taken up the task of making a binary clock using Arduino. Sounds easy but my general lack of talent and understanding are proving a problem.

Mark 1

Using code found on

http://www.danielandrade.net/2008/07/15/binary-clock-with-arduino/

I tried to change the code so that I wouldn’t have to worry about buttons, as the breadboard was looking very full. After thinking I had done this right I found that my clock merely counted seconds and that was it!

So I’ve taken up the task of making a binary clock using Arduino. Sounds easy but my general lack of talent and understanding are proving a problem.

Mark 1

Using code found on

http://www.danielandrade.net/2008/07/15/binary-clock-with-arduino/

I tried to change the code so that I wouldn’t have to worry about buttons, as the breadboard was looking very full. After thinking I had done this right I found that my clock merely counted seconds and that was it!

Mark 2

Using a different setup and code I tried to create this binary clock. Again using LED’s as an output

Mark 3

Well then believe or not…some hours later and another version of code and I have created my first Binary Clock. After a few errors on the way Mark 3 works!!! hurrah. below is a description of what the LED’s equate too and a time lapse video showing my clock working! it runs from to .

Mark 2

Using a different setup and code I tried to create this binary clock. Again using LED’s as an output

Mark 3

Well then believe or not…some hours later and another version of code and I have created my first Binary Clock. After a few errors on the way Mark 3 works!!! hurrah. below is a description of what the LED’s equate too and a time lapse video showing my clock working! it runs from  to .

Video of clock working

What is up with Processing error

If anyone has a clue why my sketch is doing this I will love you forever….. commented all the difficult stuff out and still doesn’t work!!!! BUM!

processing.app.debug.RunnerException: ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:583)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread “Animation Thread” java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:416)
at processing.core.PGraphicsJava2D$ImageCache.update(PGraphicsJava2D.java:931)
at processing.core.PGraphicsJava2D.imageImpl(PGraphicsJava2D.java:809)
at processing.core.PGraphics.image(PGraphics.java:2680)
at processing.core.PApplet.image(PApplet.java:8440)
at JamesArduinoHeadMarkII.draw(JamesArduinoHeadMarkII.java:68)
at processing.core.PApplet.handleDraw(PApplet.java:1606)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)

The Invisible Shapes of Things Past

Art+Com
Really interesting project brought to my attention by Joe Joe! The idea of a physical 3d shape to represent the cameras movement and surroundings creating strange almost cubist renders.

The Invisible Shapes of Things Past (1995-2007)

More pictures 

The Invisible Shapes of Things Past are parametric translations of movies into space. Single frames from a film sequence are lined up in space, according to the camera movement with which they were shot. Through this translation of single frames consisting of single pixels (picture elements) into space, objects of voxels (volume elements) are generated.

Background and motivation:
Influenced by the emergence of film and multi-exposure photographs, cubists and futurists disintegrated the linear representation of space and time in their pictures and sculptures. They aimed at finding ways to represent movement and introduced the display of multiple times and perspectives of one object. At the same time, artists like Fischinger, Ruthmann and Eggeling developed the “absolute film”. Its mission was to free itself from the display of everything representational, to produce abstraction with cinematic means according to abstract painting. Next to many other techniques, thin slices were cut off from a ball of modelling clay, and the continuously changing cutting plane was then filmed with a film camera, image after image. The result was a decomposition of this object into single frames that when put together, presented a tracking shot through the object.

In the middle of the 1990s, the project The Invisible Shapes of Things Past was developed to reverse this system and to generate objects and sculptures from pre-existing single frames. The work was motivated by the wish to manifest a counter position to the mania of the then widespread hyper-realism in computer graphics. Another goal was to introduce a method of finding an architectural or sculptural form based not on manual modelling but on generative processes.

Screen based application (1995):
In a virtual representation of a city these film objects are positioned according to the place and time they had been shot in the real city.

Augmented architectural model (1999):
With the help of a Pepper’s ghost technique (semi-transparent mirror projection), a film object was augmented onto a physical architectural model.

Film based sculptures (2006):
With the advent of 3D printers making it possible to print virtual objects as material ones, these immaterial film objects left hard drives and screens and are presented as physical sculptures.

New code for tiling faces! Forgot to initialize array… godbless sanjay and adrian!

import hypermedia.video.*;
import java.awt.Rectangle;

OpenCV opencv;

// contrast/brightness values
int contrast_value    = 0;
int brightness_value  = 0;
PImage face;
ArrayList faceTiles = new ArrayList();

void setup() {

size( 1000, 800 );

opencv = new OpenCV( this );
opencv.capture( width, height );                   // open video stream
opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT );  // load detection description, here-> front face detection : “haarcascade_frontalface_alt.xml”
}

public void stop() {
opencv.stop();
super.stop();
}

void draw() {

// grab a new frame
// and convert to gray
opencv.read();
opencv.convert( GRAY );
opencv.contrast( contrast_value );
opencv.brightness( brightness_value );

// proceed detection
Rectangle[] faces = opencv.detect( 1.2, 2, OpenCV.HAAR_DO_CANNY_PRUNING, 40, 40 );

// display the image
image( opencv.image(), 0, 0 );

// draw face area(s)
noFill();
stroke(255,0,0);
for( int i=0; i<faces.length; i++ ) {
face = get( faces[i].x, faces[i].y, faces[i].width, faces[i].height );
}

if(face != null) {
face.resize(100,100);
faceTiles.add(face);
int tilingW = 0;
int tilingH = 0;
for(int i=0; i<faceTiles.size(); i++) {
PImage hack = (PImage) faceTiles.get(i);
image(hack, tilingW, tilingH);
tilingW = tilingW + 100;
if( tilingW == 1000) {
tilingH = tilingH + 100;
tilingW=0;
}
}
}
}