This electronic lock can be used with any type of iButtons you may already have, since the only thing needed is the internal serial number, that's different for every iButton. The command used to read the serial number is the same for all iButtons. The iButton family code that goes with every iButton can be anything and is calculated as part of the whole serial number. We must also notice that DS1990A series iButtons are the cheapest. This electronic lock is designed to work stand-alone and it's easy to construct. What the user sees (outside of the door for example) is an iButton socket and a LED. From inside the door, we can open it using a simple push button. For the actual lock of the door, a solenoid and a bolt are used. The solenoid must be rated at 12V DC. iButtons serial numbers stored in memory can be removed and updated when needed. One master key is used to manage the rest of them. Totally a number of 9 different keys can be stored in memory. Schematic diagram is shown at figure 1. The circuit is built around an Atmel AT89C2051 (U1) microcontroller. The port 1 (P1) of the MCU is used to connect a 7-segment common anode LED display. This LED display will be used for the programming of additional keys. For the same reason, a push-button labelled SB1 is connected on P.3.7. Storage of iButtons serial numbers is done on a 24C02 EEPROM (U3). It is connected on P3.4 (SDA) and P3.5 (SCL) of U1. The external iButton socket is connected on port P3.3 via XP2 pin array. The rest of the components VD4, R3, VD5, and VD6 are used for protection of MCU ports. One pull-up resistor R4 is used as required from the 1-wire protocol. An additional iButton socket is connected in parallel with the predefined at pins XS1. This one is used for programming the keys. The door OPEN button is connected on P3.2 through XP1 connector, using the same protection components as above. The solenoid that does the lock is connected on XT1 connector. The solenoid is controlled from a power MOSFET IRF540 (VT3). Diode VD7 is added to protect the MOSFET from voltage strikes due to solenoid inductance. Transistor VT3 is controlled from VT2, which reverses the logic state that appears on P3.0, so on VT3 we have output 0V and 12V. This additional transistor is useful as it translates the MCU logic levels to 0V and 12V, capable of driving the solenoid. A LED is used to indicate the state of the electronic lock, which is controlled from the same pin as the solenoid, using transistor TV1. This LED is connected to the board using the same pin array XP2. But we need to ensure that the circuit will always work without supervision. For that reason, ADM1232 (U2) is added that does the MCU reset pin control. This chip has a counter and voltage test circuits inside it. On pin P3.1, the MCU produces pulses when it works right. If for a reason the MCU freezes, then U2 sends it a reset pulse and work is resumed.
This electronic lock has its own power supply on board, consisting of transformer T1, bridge rectifier VD9-VD12, and voltage regulator U4. As power backup, an array of 10 AA batteries is used (BT1-BT10). Total capacity is 800mAH. When the circuit is connected to the main voltage, the battery pack is charged via R10 with a current of 20mA. This current is equal to 0.025C (where C is the battery capacity), and that's a very small current depending on total capacity. This puts the battery on a steady charge to compensate for losses over time, and no charge completion detection is needed. That can be done as the excess energy is consumed in heat, which cannot harm the batteries as it is low.
Overall board dimensions are 150 x 100 x 60 mm. Most components are placed on the board, including the transformer. Batteries are placed in battery holders. In the place of AA batteries, a 12V sealed Lead-Acid battery could be used. External components are connected to the board with 2 or 3 pin connectors. Part numbers HG1, SB1, and XS1 are used only in programming mode, so they can be placed inside the plastic enclosure. LED VD3 can be placed on the face of the enclosure to indicate proper powering of the board. A connection diagram is shown in figure 2.
The electronic lock system integrates multiple components for effective operation. The Atmel AT89C2051 microcontroller serves as the central processing unit, managing inputs from the iButton socket and the push-button. The 24C02 EEPROM provides non-volatile storage for up to 9 iButton serial numbers, allowing for easy updates and management of access keys. The use of a 7-segment LED display facilitates user interaction during the key programming process.
The solenoid mechanism is powered through a MOSFET, enabling efficient control of the locking mechanism while safeguarding against inductive voltage spikes with a flyback diode. The ADM1232 ensures continuous operation by monitoring the microcontroller and providing a reset function if necessary. The power supply design incorporates both AC mains and a battery backup, ensuring reliability in various conditions. The thoughtful layout of components on the PCB maximizes space utilization while maintaining accessibility for external connections.This electronic lock can be used with any type of iButtons you may already have, since the only thing needed is the internal serial number, that's different for every iButton. The command used to read the serial number is the same for all iButtons. The iButton family code that goes with every iButton, can be anything and is calculated as part of the whole serial number.
We must also notice that DS1990A series iButtons are the cheapest. This electronic lock designed to work stand-alone and it's easy to construct. What the user sees (outside of the door for example) is a iButton socket and a led. From inside the door, we can open it using a simple push button. For the actual lock of the door a solenoid and a bold are used. Solenoid must be rated at 12Vdc. iButtons serial numbers stored in memory can be removed and updated when needed. One master key is used to manage the rest of them. Totally a number of 9 different keys can be stored in memory. Schematic diagram is shown at figure 1. The circuit is build around an Atmel AT89C2051(U1) microcontroller. The port 1 (P1) of mcu is used to connect a 7-segment common anode led display. This led display will be used on the programming of additional keys. For the same reason a push-button labelled SB1 is connected on P.3.7. Storage of iButtons serial numbers is done on a 24C02 EEPROM (U3). It is connected on P3.4 (SDA) and P3.5 (SCL) of U1. The external iButton socked is connected on port P3.3 via XP2 pin array. The rest of components VD4, R3, VD5 and VD6 are used for protection of mcu ports. One pull-up resistor R4 is used as required from 1-wire protocol. An additional iButton socket is connected parallel with the predefined at pins XS1. This one is used for programming the keys. The door OPEN button is connected on P3.2 through XP1 connector, using the same protection components as above. The solenoid that does the lock is connected on XT1 connector. Solenoid is controlled from a power MOSFET IRF540 (VT3). Diode VD7 is added to protect MOSFET from voltage strikes due to solenoid inductance. Transistor VT3 is controlled from VT2, which reverses the logic state that's appears on P3.0, so on VT3 we have output 0V and 12V.
This additional transistor is useful as it translates the mcu logic levels to 0V and 12V, capable to drive the solenoid. A led is used to indicate the state of the electronic lock, which is controlled from the same pin as the solenoid, using transistor TV1.
This led is connected to the board using the same pin array XP2. But we need to ensure that the circuit will always work without supervision. For that reason we added ADM1232 (U2) that does the mcu reset pin control. This chip have a counter and voltage test circuits inside it. On pin P3.1 mcu produces pulses when it works right. If for a reason mcu freeze then U2 send it a reset pulse and work is resumed. This electronic lock has it's own power supply on board, consisting of transformer T1, bridge rectifier VD9-VD12 and voltage regulator U4. As power backup an array of 10 AA batteries is used (BT1-BT10). Total capacity is 800mAH. When the circuit is connected on main voltage the battery pack is charged via R10 with a current of 20mA.
This current is equal to 0.025C (where C is the batteries capacity) and that's a very small current depending on total capacity. That's put the battery on a steady charge to compensate losses among time and no charge completion detection is needed.
That can be done as the excess energy is consumed in heat, that can not harm batteries as its low. Overall board dimensions are 150?100?60mm. The most components are placed on the board, including the transformer. Batteries are placed on battery holders. In the place of AA batteries we could use a 12V sealed Lead - Acid battery. External components are connected on board with 2 or 3 pin connectors. Part numbers HG1, SB1 and XS1 are used only in programming mode so can be placed inside the plastic enclosure. Led VD3 can be placed on the face of enclosure, to indicate proper powering of board. A connection diagram is show on figure 2. 🔗 External reference
The DS1307 is a hardware real-time clock that operates using the I2C protocol. It features improved graphics with a traditional alphanumeric LCD (model HD44780). Icons indicate the status of the Alarm ON/OFF state, enhancing the visual appeal of the...
The Multimeter Clock consists of three multimeters, the first meter displays hours, the second displays minutes and the last displays seconds. A 16F628A PIC microcontroller keeps track of time and outputs a calculated current to each meter to display...
The MM5314 is a monolithic MOS integrated circuit that incorporates P-channel low threshold enhancement mode and ion implanted depletion mode devices. It features an internal multiplex oscillator, fast and slow set controls, a single power supply, 7-segment outputs, leading...
This is my electronic combination lock to use with an outdoor gate. The functionality is implemented in software. It turns on a relay (usually to open a door) for a few seconds if someone enters the valid code. This...
A clock-and-data recovery (CDR) circuit is utilized to recover the clock from a transmitted data stream and re-time that data with the recovered clock. These circuits are generally positioned at the front-end of receiver chips to extract the clock...
The AD524 is a low-drift instrumentation amplifier characterized by a drift voltage of 0.5 mV and a maximum drift of 25 mV at room temperature. It has low noise performance with a noise level of 0.3 mVp-p in the...
We use cookies to enhance your experience, analyze traffic, and serve personalized ads.
By clicking "Accept", you agree to our use of cookies.
Learn more