DoorUino
From bildr
Contents |
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
- Put switch on pin 2 with pull-down resistor.
- Place the switch so that when doors are closes, switch is ON.
- This way you will be able to quickly detect if there is something wrong with the switch or wiring.
- Connect Arduino (with ethernet shield) to internet.
- Set up code and upload it to Arduino (dooruino.pde).
- Set up code and upload it to server (receive.php).
Code
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)
This page is an Article on bildr. Articles are pages that define or explain a concept, method, or generic item.