Do I Need a Relay for My Digital Lock?

  • Thread starter Thread starter manshuk89
  • Start date Start date
  • Tags Tags
    Relay
Click For Summary

Discussion Overview

The discussion revolves around the integration of a keypad with a digital lock that operates on 12V DC, specifically addressing whether a relay is necessary for this setup. The conversation includes technical considerations for isolation and protection against inductive loads, as well as future enhancements involving password generation and SMS notifications.

Discussion Character

  • Technical explanation
  • Exploratory
  • Conceptual clarification

Main Points Raised

  • One participant inquires whether a relay is needed to connect a keypad to a digital lock that operates on 12V DC.
  • Another participant suggests that if the keypad runs on regulated 12V DC, an npn open collector could be used to operate the lock, while noting that a relay offers additional isolation for inductive current.
  • A different participant describes the benefits of using a relay, including isolation and signal amplification, while mentioning potential reliability issues due to moving parts.
  • The original poster reports success in creating a password-protected lock using a relay and expresses interest in adding features such as changing the password every two days and sending SMS notifications.
  • The original poster seeks advice on incorporating a GSM device for SMS functionality.

Areas of Agreement / Disagreement

Participants present varying views on the necessity and benefits of using a relay, with some advocating for its use due to isolation and protection, while others suggest alternatives. The discussion remains unresolved regarding the best approach for integrating the keypad and GSM device.

Contextual Notes

Participants mention considerations such as the need for a diode and capacitor to manage switching spikes with inductive loads, but do not fully resolve the implications of these components in the overall design.

Who May Find This Useful

Individuals interested in electronics, particularly those working on security systems or digital lock mechanisms, may find this discussion relevant.

manshuk89
Messages
7
Reaction score
0
i have just purchased a digital lock that works on 12v dc...
the lock has a transformer and a rectifier , hence i connect it directly to the mains...
when i switch the button on, the lock opens...

now i want to connect a keypad to this digital lock such that it opens only when a correct code is entered...
my question do i need a relay to operate this mechanism..? if yes then why?
 
Engineering news on Phys.org
If the keypad runs on 12V dc (regulated), then you could use an npn open collector (common ground) to operate the lock. A relay does provide an extra layer of isolation, however, in case the lock solenoid requires a lot of inductive current.
Bob S
 
A relay is an old fashioned device which does a lot for you. It provides very good isolation (it can switch AC, for example) and, effectively, very high signal amplification. You may need a diode and capacitor to deal with switching spikes with an inductive load but that is not a problem. The only thing wrong with relays is reliability, because they have moving parts (and, of course, they are non-linear). Nonetheless, they are a very effective low-cost way to achieve just what you seem to want. Reliability is not really an issue.
 
thanks a lot for the reply guys...
i have successfully made a password protected lock using a relay... i think i will add the diode for protection against spike just in case...

i am now thinking about takin this module to the next step...
i want the password to change every 2 days and a notification 2 be sent via an sms to the mobile phones of some predetermined individuals...

i know a few mechanisms of password generation...
can anyone tip me as how to incorporate a gsm device for the sms purpose?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 5 ·
Replies
5
Views
935
Replies
37
Views
7K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 25 ·
Replies
25
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K