CONSTRUCTION OF A SECURITY SYSTEM
USING NAND GATE
INTRODUCTION:
Security is a topic of concern to everybody because bad things are happening around us and it is growing worse every day. There are several ways to approach insecurity and deal with it. It can be the rich way or the cheap but effective way, it all depends on your person.
For those who doesn’t have much to afford the better or higher security measure around their home and property I hope this piece of work can help in some way if you can do it.
That burglar could have been stopped, that bad man with wicked plans could have been startled and send running home by confusing him and alarming about the danger with this devices you are about to see. It is extremely useful handy and cheap too, it has a wide range of application or style you could use it.
CIRCUIT DESCRIPTION OPERATION ANALYSIS
I assume we all know what electronic logic gates are and their types? Well, first a logic gate is an electronic circuit which makes logic decisions. It has a single output and one or several inputs. The circuits we are about to use are logic gate based and we are going to actually see how we can make these gates using diodes, transistor and IC forming a system or device that will help us do some work. There are many types of logic gates, let’s treat NAND gate now… but if you are interested in seeing the already treated AND gate click here.
- NAND or (NOT-AND) gate
- NAND gate using transistors
- NAND gate using IC
NAND GATES (NOT– AND) GATE
The NAND gate is the second most popular electronic logic gate after the AND gate and its operation is different in that, it works in reverse or do the opposite of what AND gate does. The table below should explain it well:
A | B | Output (x) |
L | L | H |
L | H | H |
H | L | H |
H | H | L |
A | B | Output (x) |
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
A | B | Output (x) |
- | - | + |
- | + | + |
+ | - | + |
+ | + | - |
Compare the three tables above with that of AND gate previously treated and you will see the difference.
The above implies that in AND gate, 1x0=0 then in NAND (NOT AND) gate 1x0=1. Implying that in NAND gate, crossing positive with negative will give you positive and the same the other way round. The only way to have a negative output result is to cross positive with positive. And we can achieve this fit electrically by using some resistors and a pair of transistors or an IC like IC4093.
NAND gate using transistor
Above is the transistor circuit for a NAND gate which is made of two transistors (optional) and three resistors (optional). The transistor Base resistors provide a forward biasing current good enough to open the passage for circuit current to pass from Emitter to collector without damaging the transistor. When the trigger is (closed) the transistors do not conduct because there is no Base current to forward bias it in that, the Base current that comes is grounded via the Emitter of the transistor (remember Emitter and Base terminals do connect or link together internally) and so they will remain in an OFF state until when the trigger is released (open) the battery current is seen at the Collector terminal of the transistor implying that anything put at the Output point at the collector terminal will receive current and be activated as long as the system remains in this state.
The trigger point is the point to activate whatever thing you feed at the load point; be it a piezo buzzer or any other alarm device, be it a relay for activating something bigger it’s up to you. But what I know is that for example if you place a buzzer there at the load point it will sound an alarm whenever the (always closed) trigger is opened. We can apply this thing to work for us in a more mature way as demonstrated in the diagram below.
The diagram features this circuit in a big box and it is concealed in another tiny almost invisible box or bag placed at the corner of the box hidden. Indicating that once this circuit is finished one should conceal it in a black rubber plastic or tape it or put it in a tiny box to hide it well and make it smart. Assuming you want to mount this finished device in a brief case so that an unauthorized person cannot open it when you don’t want it to be opened, if he tries to open it, he blows an alarm it is just for you to power it with a 9 volt dry cell battery switch it on and:
- Take point (1) of the trigger and connect it neat and clean to the upper hook of the case and
- Take point (2) of the trigger and connect it also to the lower socket of the case in which the hook do clip fix when the case is closed. Make sure in every connection you make the wires contact the metallic / socket respectively. And there you go: once somebody tries to open your box unauthorized the logic gate is awakened because the battery current is allowed to reach the buzzer by that action therefore activating the alarm buzzer which will continue to sound as long as the box is open except it is closed.
Also this device can be placed in a door in the same manner as demonstrated above so that, if someone opens the door, the alarm sounds. Apart from using the piezzo buzzer alarm at the load point in the circuit, you can use things like relay so that a heavy current load can be manipulated once the device is triggered. With a relay you can connect a security light, sound system or even your car outside to it so that once the device is triggered by whosoever that tries to open your thing the security light, sound system or car engine is ON therefore scaring the intruder away and warning you of an intruder at the same time.
NAND gate using IC 4093
From the IC pin outs diagram one can see that the IC internal structure is made of four independent NAND gates all powered by the one source. Both the input and output pins combine to form a total of 14 pins out from the IC. Now since what we are going to do involves only a single input and output we are going to use only one of these NAND gates inside and that is to say three pins only exception of the power pins 14 and 7. And as seen the pin we are going to use are the 8, 9, and 10 pins. Where pin 8 and 9 are the inputs and pin 10 the output.
The diagram below is simple and self-explanatory
No comments:
Post a Comment