LCD PC1602-H Connected to Arduino

I have a lcd display that is a bit different then the others i have. And a keep forgetting how to hook it up to a arduino.

lcd pc1602h

De pin lay out is as follows (seen from the top):
[16][15]
[14][13]
[12][11]
[10][09]
[08][07]
[06][05]
[04][03]
[02][01]

Pin assignment:

Pin assigment

Arduino code:

#include "LiquidCrystal.h"
// POWERTIP LCD PC1602 - H
// LiquidCrystal display with:
// rs lcd  pin 4 on arduino pin 12
// rw lcd pin 5 on arduino pin 11
// enable lcd  pin 6 arduino on pin 10
// d4,d5,d6,d7 lcd pins 11, 12, 13, 14 on arduino pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

int wait=1000;
int val=0;
void setup()
{
    // Print a message to the LCD.

    lcd.begin(16, 2);
    lcd.setCursor(0,0);
    lcd.print("Hello");
    lcd.setCursor(0,1);
    lcd.print("Arduino");
}

void loop()
{
    // set the cursor to column 8, line 1
    // (note: line 1 is the second row, since counting begins with 0):
    lcd.setCursor(9, 1);
    // print the number of seconds since reset:
    lcd.print(millis()/100);
}

// rs on pin 12
// rw on pin 11
// enable on pin 10

Connections:

LCD <-> ARDUINO
[16][15] [—][—]
[14][13] [D02][D03]
[12][11] [D04][D05]
[10][09] [—][—]
[08][07] [—][—]
[06][05] [D10][D11]
[04][03] [D12][Contrats]
[02][01] [-5V][GND]

Well as you can see not soo different at all but te pin layout on a Chinese LCD board YM1604AP had a more “normal” layout :
[01][02][03][04][05][06][07][08][09][10][11][12][13][14][15][16] but the connections are the same
so:
[01] GND
[02] +5V
[03] contrast
[04] RS
[05] RW
[06] Enabled
[07..14] DB00..DB07
[15] A + LED BL
[16] K – LED BL

Image of it all 🙂

Arduino connected to LCD PC1602-H

Polygon Rabbit ( a openscad tool)

Oke first real post here. I made a tool to generate openscad polygons.
Its still under construction but it is usable 😉

Each layer is a module.

Here is a demo

TODO

Here is de online version
http://www.protorabbit.nl/flash/polygonrabbit/PolygonRabbit.html
Here is the AIR (requires air runtime) in de sidebar is badge that will also install the application.
Download PolygonRabbitDesktop now.This application requires Adobe® AIR™ to be installed for Mac OS or Windows.
It will have bug’s so do not kill me.