Garage Door Opener – Phil Rowe

details

Garage-Door

Getting stuck out in the rain without keys was the motivation for this project. It lets you trigger a garage door opener through a website hosted by an Arduino. With the Arduino connected to a wireless network, you can use your smart phone to connect to the webserver, enter a password, activate the garage door and get inside before getting drenched in the downpour.A MegunoLink Pro interface panel is used to configure the program: setting up to 10 passwords, which are stored in the device’s EEPROM.

Dooropener
Hardware

The hardware is pretty simple:
◾An Arduino Etherten – Fully compatible with the the Arduino Uno, the Etherten includes an ethernet module based on the Wiznet chip used in the official Arduino shield. You could also use an Arduino Uno +Ethernet shield or the Arduino Ethernet board for this project.
◾A relay to activate the garage door opener. Most garage door motors have a low-voltage switch near the internal door to the garage. The relay works in parallel with this switch so the Arduino can activate the door without disrupting normal operation. Make sure the switch is low-voltage and safe before wiring anything up.
◾A transistor turns the relay on and off. Any small signal transistor should do the job, such as the 2N2222 or 2N3904.

schematicwithetherten

Source Code :

All the source code is available on BOX. Copies of required libraries are in the “Libraries” folder. The project is setup to build using our Visual Studio Arduino build tool, and it will work in the Arduino IDE as well.
◾Program.cpp is the heart of the program. This is where you’ll find the setup and loop functions which initialize serial command processing and the webserver.
◾Webserver.h/Webserver.cpp handles the web server, returning the page requested by the user. It supplies a form requesting the password and checks the submitted password against stored passwords. We use the reliable Webduino library to create the web server itself.
◾CommandProcessing.h/CommandProcessing.cpp looks after processing of serial commands. The commands supported are:
◾init-pwdr: initializes the eeprom ready to store passwords. Any saved passwords are cleared.
◾list-pwdr: lists the passwords stored in the eeprom.
◾set-pwd [Password Slot] [Password]r: saves a new password in the eeprom. Here [Password Slot], a number from 1 to 10, sets the slot where the password is stored and [Password] is the password to be stored.

 

Configuration Interface

They used the Interface Panel and Serial Monitor visualizers in MegunoLink Pro to make a simple interface to configure the garage door opener through the Arduino serial port. By setting up controls in the Interface Panel, He don’t need to remember the serial commands any more. So push buttons were created to initialize the EEPROM and list the stored passwords. A number control was used to select the password slot and a text control used to enter the password. The configuration for each is given in the table below. Control configuration for the garage door opener Interface Panel.

For more information Link1

For more information Link2

Garage-Door

Getting stuck out in the rain without keys was the motivation for this project. It lets you trigger a garage door opener through a website hosted by an Arduino. With the Arduino connected to a wireless network, you can use your smart phone to connect to the webserver, enter a password, activate the garage door and get inside before getting drenched in the downpour.A MegunoLink Pro interface panel is used to configure the program: setting up to 10 passwords, which are stored in the device’s EEPROM.

Dooropener
Hardware

The hardware is pretty simple:
◾An Arduino Etherten – Fully compatible with the the Arduino Uno, the Etherten includes an ethernet module based on the Wiznet chip used in the official Arduino shield. You could also use an Arduino Uno +Ethernet shield or the Arduino Ethernet board for this project.
◾A relay to activate the garage door opener. Most garage door motors have a low-voltage switch near the internal door to the garage. The relay works in parallel with this switch so the Arduino can activate the door without disrupting normal operation. Make sure the switch is low-voltage and safe before wiring anything up.
◾A transistor turns the relay on and off. Any small signal transistor should do the job, such as the 2N2222 or 2N3904.

schematicwithetherten

Source Code :

All the source code is available on BOX. Copies of required libraries are in the “Libraries” folder. The project is setup to build using our Visual Studio Arduino build tool, and it will work in the Arduino IDE as well.
◾Program.cpp is the heart of the program. This is where you’ll find the setup and loop functions which initialize serial command processing and the webserver.
◾Webserver.h/Webserver.cpp handles the web server, returning the page requested by the user. It supplies a form requesting the password and checks the submitted password against stored passwords. We use the reliable Webduino library to create the web server itself.
◾CommandProcessing.h/CommandProcessing.cpp looks after processing of serial commands. The commands supported are:
◾init-pwdr: initializes the eeprom ready to store passwords. Any saved passwords are cleared.
◾list-pwdr: lists the passwords stored in the eeprom.
◾set-pwd [Password Slot] [Password]r: saves a new password in the eeprom. Here [Password Slot], a number from 1 to 10, sets the slot where the password is stored and [Password] is the password to be stored.

 

Configuration Interface

They used the Interface Panel and Serial Monitor visualizers in MegunoLink Pro to make a simple interface to configure the garage door opener through the Arduino serial port. By setting up controls in the Interface Panel, He don’t need to remember the serial commands any more. So push buttons were created to initialize the EEPROM and list the stored passwords. A number control was used to select the password slot and a text control used to enter the password. The configuration for each is given in the table below. Control configuration for the garage door opener Interface Panel.

For more information Link1

For more information Link2

COMMENTS

Please Login to comment
  Subscribe  
Notify of