Showing posts with label intelligent. Show all posts
Showing posts with label intelligent. Show all posts

Tuesday, April 30, 2013

Intelligent Electronic Lock

This intelligent electronic lock circuit is built using transistors only. To open this electronic lock, one has to press tactile switches S1 through S4 sequentially. For deception you may annotate these switches with different numbers on the control panel/keypad. For example, if you want to use ten switches on the keypad marked ‘0’ through ‘9’, use any four arbitrary numbers out of these for switches S1 through S4, and the remaining six numbers may be annotated on the leftover six switches, which may be wired in parallel to disable switch S6 (shown in the figure). When four password digits in ‘0’ through ‘9’ are mixed with the remaining six digits connected across disable switch terminals, energisation of relay RL1 by unauthorised person is prevented.

Intelligent Electronic Lock circuit diagramFor authorised persons, a 4-digit password number is easy to remember. To energise relay RL1, one has to press switches S1 through S4 sequentially within six seconds, making sure that each of the switch is kept depressed for a duration of 0.75 second to 1.25 seconds. The relay will not operate if ‘on’ time duration of each tactile switch (S1 through S4) is less than 0.75 second or more than 1.25 seconds. This would amount to rejection of the code. A special feature of this circuit is that pressing of any switch wired across disable switch (S6) will lead to disabling of the whole electronic lock circuit for about one minute.

Even if one enters the correct 4-digit password number within one minute after a ‘disable’ operation, relay RL1 won’t get energised. So if any unauthorised person keeps trying different permutations of numbers in quick successions for energisation of relay RL1, he is not likely to succeed. To that extent, this electronic lock circuit is fool-proof. This electronic lock circuit comprises disabling, sequential switching, and relay latch-up sections. The disabling section comprises zener diode ZD5 and transistors T1 and T2. Its function is to cut off positive supply to sequential switching and relay latch-up sections for one minute when disable switch S6 (or any other switch shunted across its terminal) is momentarily pressed.

During idle state, capacitor C1 is in discharged condition and the voltage across it is less than 4.7 volts. Thus zener diode ZD5 and transistor T1 are in non-conduction state. As a result, the collector voltage of transistor T1 is sufficiently high to forward bias transistor T2. Consequently, +12V is extended to sequential switching and relay latch-up sections. When disable switch is momentarily depressed, capacitor C1 charges up through resistor R1 and the voltage available across C1 becomes greater than 4.7 volts. Thus zener diode ZD5 and transistor T1 start conducting and the collector voltage of transistor T1 is pulled low. As a result, transistor T2 stops conducting and thus cuts off positive supply voltage to sequential switching and relay latch-up sections.

Thereafter, capacitor C1 starts discharging slowly through zener diode D1 and transistor T1. It takes approximately one minute to discharge to a sufficiently low level to cut-off transistor T1, and switch on transistor T2, for resuming supply to sequential switching and relay latch-up sections; and until then the circuit does not accept any code. The sequential switching section comprises transistors T3 through T5, zener diodes ZD1 through ZD3, tactile switches S1 through S4, and timing capacitors C2 through C4. In this three-stage electronic switch, the three transistors are connected in series to extend positive voltage available at the emitter of transistor T2 to the relay latch-up circuit for energising relay RL1.

When tactile switches S1 through S3 are activated, timing capacitors C2, C3, and C4 are charged through resistors R3, R5, and R7, respectively. Timing capacitor C2 is discharged through resistor R4, zener diode ZD1, and transistor T3; timing capacitor C3 through resistor R6, zener diode ZD2, and transistor T4; and timing capacitor C4 through zener diode ZD3 and transistor T5 only. The individual timing capacitors are chosen in such a way that the time taken to discharge capacitor C2 below 4.7 volts is 6 seconds, 3 seconds for C3, and 1.5 seconds for C4. Thus while activating tactile switches S1 through S3 sequentially, transistor T3 will be in conduction for 6 seconds, transistor T4 for 3 seconds, and transistor T5 for 1.5 seconds.

The positive voltage from the emitter of transistor T2 is extended to tactile switch S4 only for 1.5 seconds. Thus one has to activate S4 tactile switch within 1.5 seconds to energise relay RL1. The minimum time required to keep switch S4 depressed is around 1 second. For sequential switching transistors T3 through T5, the minimum time for which the corresponding switches (S1 through S3) are to be kept depressed is 0.75 seconds to 1.25 seconds. If one operates these switches for less than 0.75 seconds, timing capacitors C2 through C4 may not get charged sufficiently. As a consequence, these capacitors will discharge earlier and any one of transistors T3 through T5 may fail to conduct before activating tactile switch S4.

Thus sequential switching of the three transistors will not be achieved and hence it will not be possible to energise relay RL1 in such a situation. A similar situation arises if one keeps each of the mentioned tactile switches de-pressed for more than 1.5 seconds. When the total time taken to activate switches S1 through S4 is greater than six seconds, transistor T3 stops conducting due to time lapse. Sequential switching is thus not achieved and it is not possible to energise relay RL1. The latch-up relay circuit is built around transistors T6 through T8, zener diode ZD4, and capacitor C5. In idle state, with relay RL1 in de-energised condition, capacitor C5 is in discharged condition and zener diode ZD4 and transistors T7, T8, and T6 in non-conduction state.

However, on correct operation of sequential switches S1 through S4, capacitor C5 is charged through resistor R9 and the voltage across it rises above 4.7 volts. Now zener diode ZD4 as well as transistors T7, T8, and T6 start conducting and relay RL1 is energised. Due to conduction of transistor T6, capacitor C5 remains in charged condition and the relay is in continuously energised condition. Now if you activate reset switch S5 momentarily, capacitor C5 is immediately discharged through resistor R8 and the voltage across it falls below 4.7 volts. Thus zener diode ZD4 and transistors T7, T8, and T6 stop conducting again and relay RL1 de-energises. 


Sourced by : Extreamcircuits
Continue Reading..

Thursday, April 4, 2013

Intelligent Presence Simulator

However
effective a domestic alarm system may be, it’s invariably better if it
never goes off, and the best way to ensure this is to make potential
burglars think the premises are occupied. Indeed, unless you own old
masters or objects of great value likely to attract ‘professional’
burglars, it has to be acknowledged that the majority of burglaries are
committed by ‘petty’ thieves who are going to be looking more than
anything else for simplicity and will prefer to break into homes whose
occupants are away.

Rather than simply not going on holiday –
which is also one solution to the problem (!) – we’re going to suggest
building this intelligent presence simulator which ought to put
potential burglars off, even if your home is subjected to close
scrutiny. Like all its counterparts, the proposed circuit turns one or
more lights on and off when the ambient light falls, but while many
devices are content to generate fixed timings, this one works using
randomly variable durations.

Intelligent Presence Simulator Circuit Schematic
So
while other devices are very soon caught out simply by daily
observation (often from a car) because of their too-perfect regularity,
this one is much more credible due to the fact that its operating times
are irregular. The circuit is very simple, as we have employed a
microcontroller – a ‘little’ 12C508 from Microchip, which is more than
adequate for such an application. It is mains powered and uses
rudimentary voltage regulation by a zener diode.

A relay is used
to control the light(s); though this is less elegant than a triac
solution, it does avoid any interference from the mains reaching the
microcontroller, for example, during thunderstorms. We mustn’t forget
this project needs to work very reliably during our absence, whatever
happens. The ambient light level is measured by a conventional LDR
(light dependent resistor), and the lighting switching threshold is
adjustable via P1 to suit the characteristics and positioning of the
LDR.

Note that input GP4 of the PIC12C508 is not analogue, but
its logic switching threshold is very suitable for this kind of use. The
LED connected to GP1 indicates the circuit’s operating mode, selected
by grounding or not of GP2 or GP3 via override switch S1. So there are
three possible states: permanently off, permanently on, and automatic
mode, which is the one normally used. Given the software programmed into
the 12C508 (‘firmware’) and the need to generate very long delays so
as to arrive at lighting times or an hour or more, it has been
necessary to make the MCU operate at a vastly reduced clock frequency.

PCB Layout Of Intelligent Presence Simulator

In
that case, a crystal-controlled clock is no longer suitable, so the
R-C network R5/C3 is used instead. For sure, such a clock source is
less stable than a crystal, but then in an application like this, that
may well be what we’re after as a degree of randomness is a design
target instead of a disadvantage. Our suggested PCB shown here takes
all the components for this project except of course for S1, S2, and
the LDR, which will need to be positioned on the front panel of the
case in order to sense the ambient light intensity.

The PCB has
been designed for a Finder relay capable of switching 10 A, which ought
to prove adequate for lighting your home, unless you live in a replica
of the Palace of Versailles. The program to be loaded into the 12C508
is available for free download from the Elektor website as file number
080231-11.zip or from the author’s own website: www.tavernier-c.com. On completion of the solder work the circuit should work immediately and can be checked by switching to manual mode.

The
relay should be released in the ‘off’ position and energized in the
‘on’ position. Then all that remains is to adjust the day/night
threshold by adjusting potentiometer P1. To do this, you can either use a
lot of patience, or else use a voltmeter – digital or analogue, but
the latter will need to be electronic so as to be high impedance –
connected between GP4 and ground. When the light level below which you
want the lighting to be allowed to come on is reached, adjust P1 to read
approximately 1.4 V on the voltmeter.

If this value cannot be
achieved, owing to the characteristics of your LDR, reduce or increase
R8 if necessary to achieve it (LDRs are known to have rather wide
production tolerances). Equipped with this inexpensive accessory, your
home of course hasn’t become an impregnable fortress, but at least it
ought to appear less attractive to burglars than houses that are plunged
into darkness for long periods of time, especially in the middle of
summer. (www.tavernier-c.com)

COMPONENTS LIST
Resistors
R1 = 1k 500mW
R2 = 4k7
R3 = 560R
R4,R6 = 10k
R5 = 7k5
R 7 = LDR
R8 = 470k to 1 M
P1 = 470k potentiometer
Capacitors
C1 = 470µF 25V
C2 = 10µF 25V
C3 = 1nF5
C4 = 10nF
Semiconductors
D1,D2 = 1N4004
D3 = diode zener 4V7 400 mW
LED1 = LED, red
D4 = 1N4148
T1 = BC547
IC1 = PIC12C508, programmed, see Downloads
Miscellaneous
RE1 = relay, 10A contact
S1 = 1-pole 3-way rotary switch
F1 = fuse 100 mA
TR1 = Mains transformer 2x9 V, 1.2 -3 VA
4 PCB terminal blocks, 5 mm lead pitch
5 solder pins

Downloads:

The PCB layout can be downloaded free from our website www.elektor.com; file # 080231-1.
The source code and .hex files for this project are available free on www.elektor.com; file # 080231-11.zip.
Continue Reading..