DoorUino

Description
DoorUino is a project based on Arduino Duemilanove. With a switch on the door we count how many times doors have been opened and closed.

What you need (Parts)

 * Arduino Duemilanove
 * Ethernet shield for Arduino
 * Switch for door
 * Server to upload data

Hooking it up

 * 1) Put switch on pin 2 with pull-down resistor.
 * 2) Place the switch so that when doors are closes, switch is ON.
 * 3) This way you will be able to quickly detect if there is something wrong with the switch or wiring.
 * 4) Connect Arduino (with ethernet shield) to internet.
 * 5) Set up code and upload it to Arduino (dooruino.pde).
 * 6) Set up code and upload it to server (receive.php).

Code
doorUino

Example
In my case I used Google Charts and make hour statistic (X - hour of the day, Y - how many times doors have been opened/closed)