Arduino based Office-WTF-Counter

Posted by Nikolaus Gradwohl Fri, 03 Jul 2009 06:37:48 GMT

As in any office, my co-workers and I experience several WTF-Situations during our working day. So we decided to implement a simple system to count the WTF's and use them as a metric for our working climate :-)

we use an "emergency stop"-Button which is connected to an arduino. This arduino sends the string "WTF" on the serial line a little python scrip writes them to a file, another processing app count's the lines in the file and offers the result via http, which is read by a processing app for visualisation ...

wtf-button

wtf-arduino

Read more...

Tags , , ,  | 6 comments | no trackbacks

QR-Code Carpet

Posted by Nikolaus Gradwohl Mon, 29 Jun 2009 17:12:12 GMT

My Mother is always searching for cool motives she can use for her carpets. So i made a generated a qr-code containing her name which she weaved into a QRCode-Carpet

carpet

and the coolest part is IT ACTUALLY WORKS!!!

i made a processing sketch that decodes the image (click here to try it yourself)

and i also decoded it using my G1

carped handy

Tags , , ,  | 1 comment | no trackbacks

New pencil drawings

Posted by Nikolaus Gradwohl Thu, 25 Jun 2009 11:16:00 GMT

i just added 6 new pencil drawings to my drawings gallery

Tags  | no comments | no trackbacks

processing tutorial

Posted by Nikolaus Gradwohl Fri, 19 Jun 2009 00:02:44 GMT

I started to write a little processing tutorial, showing how to write a great sidescrolling space shooter like in this screenshot below.

please give me a little bit of feedback and show me all the great games you make with the help of my tutorial

download

tutorial.pdf examples.zip

screenshot

tutorial

Tags , ,  | 1 comment | no trackbacks

signpost monster

Posted by Nikolaus Gradwohl Tue, 16 Jun 2009 02:47:20 GMT

they are really everywere ...

signpostmonster

Tags ,  | no comments | no trackbacks

bike monster

Posted by Nikolaus Gradwohl Tue, 16 Jun 2009 02:45:41 GMT

i found a new monster. this monster tries to cloak itself as the motor of a bike. i think someone should tell optimus prime

bikemonster

Tags ,  | no comments | no trackbacks

ebook pdf border remover

Posted by Nikolaus Gradwohl Tue, 16 Jun 2009 01:04:00 GMT

cropborder is a little java-tool i wrote to remove the white border of a pdf file, to make it more readable on an ebook-reader.

cropborder example

the white margin around the content is very usefull when printed on paper, but is really anoying on an ebook-reader because it only makes the text smaller.

to use the tool call it with

java -jar cropborder.jar [-in ] [-out ] [-f ] [-l ] [-d ]

the default values for the parameter are

in.pdf for intput out.pdf for output 1.4 for the scaling factor and shift by -100, and -130 points (a point is a 1/72 inch)

the tool uses the iText library and is published under the "do whatever you like, but don't blame me if it goes boom"-Licence

i also made a project page for it

Download

cropborder-0.1.zip

Tags ,  | 1 comment | no trackbacks

colorclock in processing

Posted by Nikolaus Gradwohl Mon, 01 Jun 2009 06:56:24 GMT

I made a processing-sketch that shows the time using colors. i made 3 stripes of colors blending into each other, each of them cycling through the hue value of the color. then i blend between the colors.

the top color shows the hour, the middle color shows the minutes and the low color the seconds. the values start at red, blend to yellow and green, and get turcise at the half of the cycle. than they blend to blue and violet and finally back to red.

click here to see it in action

the screenshot below was taken at 18:07

colorclock screenshot

Tags ,  | no comments | 1 trackback

Simple Isometric graphics with processing

Posted by Nikolaus Gradwohl Wed, 20 May 2009 03:08:26 GMT

I found a very simple way to generate isometric graphics in processing.

isometric

click here to see it as an applet (and get the source)

the trick is to rotate the image by 45 deg and scale it with scale(1, 0.5).

this way the graphic can be draw as always, only the z coordinate has to be substracted from the x and the y coordinate

...
void draw() {
  pushMatrix();
  translate( width/2, height/2 );
  scale( 1, 0.5 );
  rotate( radians( 45 ) );
  translate( -width/2, -height/2 );
  background(255);

  line( x1 - z1, y1 - z1, x2 - z2, y2 - z2 );   

  popMatrix();
}
...

Tags  | 1 comment | no trackbacks

ttslib for processing

Posted by Nikolaus Gradwohl Sat, 16 May 2009 18:31:27 GMT

i have written another library for processing. This time its a wrapper around the freetts library

now processing sketches can have a voice too.

click here to go to the project page.

i cannot present an applet as an example this time, because freetts doesn't work in applets. So i show the example.

import guru.ttslib.*;

TTS tts;

void setup() {
  size(100,100);
  smooth();
  tts = new TTS();
}

void draw() {
  background(255);
  fill(255);
  ellipse( 35, 30, 25, 35 );
  ellipse( 65, 30, 25, 35 );
  fill(0);
  ellipse( 40, 35, 10, 10 );
  ellipse( 60, 35, 10, 10 );
  noFill();
  arc(50,50,50,50,0,PI);

}

void mousePressed() {
  tts.speak("Hi! I am a speaking Processing sketch");
}

Tags ,  | no comments | no trackbacks

Older posts: 1 2 3 ... 15