Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Automatic door opener

Automatic door opener

This circuit can be used to operate an electric strike or an electromagnetic lock on a door. It is not the door being opened or closed, but a small electromagnetic strike which unlocks the door. The opener has the following features currently programmed in software.
automatic operation when a guest pushes the doorbell, the strike is operated immediately – can be set by a switch (SW) manual remote operation – by pushing a button (BUTTON), the strike is operated immediately timer delayed operation by pushing the same button longer than 500 ms – the strike is operated after a pre-set time programmable timer delays for relay operating time and delay before timer opening two-color LED display shows current state

usage

After power-on the circuit will be operating and the display LED will be constant RED when the auto switch is in OFF state and will be slowly changing between red and green when the switch is in AUTO state. Shortly pushing the BUTTON will operate the door relay for about 3 seconds (this delay can be reprogrammed). Holding down the PUSH button for a bit longer will operate the door relay after about 20 seconds. This timer delay is also reprogrammable. The display LED lights in constant YELLOW while the delay timer is running.

delay programming

WARNING: entering inappropriate codes for the timers will result in strange operation (too long/short delays) and you may have to break the power for the device to reset and start again.

To enter the delay programming mode, hold down the BUTTON and change the state of the SWITCH. The LED display will turn OFF until the release of the BUTTON. In this mode the software reads the values for the two timers in the form of 4 hex numbers. The first two numbers make up an 8-bit value for the timer of the door opening time and the second two numbers make up an 8-bit value for the delay timer. The values are given in a rough 10 ms unit.

entered digits: D1 D2 D3 D4

door opening time: D1*16+D2

opening delay time: D3*16+D4

to program 3 seconds opening time and 20 seconds delay time you would enter digits 30c8 (3,0,12,8)

to return to the hard-coded original delay times, break the power to the device for a few seconds.

Entering digits: press the BUTTON the number of times the digit you want to enter. Eg. if you want to enter digit 8, press the button eight times. To finish entering a digit, wait for about 1 second and the LED color will blink, indicating that the code is stored and you can proceed entering the next digit (if there are more). Not pushing the button for 1 second in this mode will store the digit 0 and proceed with a LED blink. After all 4 digits are stored the program will restart with the new values.

software

the software for the microcontroller is available in source format. It is developed under the Microchip MPLAB development environment, and you will need it or some other PIC compiler to build the object code for the device. If you program the object code, check the fuse settings and make sure that all the I/O pins are programmed to be I/O lines and not OSC or MCLR. In the beginning of the source you find a #define line which sets the PIC chip under which the code will compile. It is a good idea to develop on a 16F84 device and when everything is working, compile the code for the one-time programmable 12C508.

Visit Here for more.







 

More Articles to Read

App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits

Top


Shares