Jump to content
Electronics-Lab.com Community

Help: Circuit Design 4in NOR Gate


Guest eminence

Recommended Posts

Guest eminence

I own an Alfa Romeo 75 car and I have fitted an alarm. Unfortunately Alfa decided to make the doors switches opposite to usual. When the doors are open they supply 0v GND (ground/negative) and when shut they supply 12v GND. So this makes it difficult to hook up to my alarm as it wants a 12v GND or 12v POS (positive) supply when the doors are open.

So not being that savy with electronics I figured I could get by with 4 relays (with NO/NC terminals), one for each trigger wire. I could not use one as there would still be 12v supplied if the other doors where shut and only one was opened. I rigged these up but as you would expect they chewed through the cars battery power pretty quickly as the coils were nearly always active because as you realise doors spend most of their time shut! :)

I went to a local electronics shop (JayCar) in Geelong, Australia and the person behind the counter recommended the following circuit layout.

[EDIT]Circuit diagram attached below[/EDIT]

I have put his suggestion together, but I am not getting the reaction I had hoped for. The basic idea of the above circuit is that if door switch 1 or 2 or 3 or 4 are not switched/pulled/toggled/on/down/together then the NOR gate will tell the transistor to switch the relay on or off. Where the lamp is hooked into the above circuit the alarms positive door trigger wire would be hooked up in the actual application.

I hope that I have given you enough information to help me come up with a circuit that works.

Thanks in advance,
Simon

post-0-14279141989919_thumb.gif

Link to comment
Share on other sites


Hi Simon,
If you don't want to add doorswitches your circuit should work with a few changes (and if the relay coil's current is within the ratings of the transistor):

1) Add a diode across the relay coil to protect the transistor from the flyback voltage spike from the relay coil.
2) Replace the transistor that probably got damaged by the flyback voltage spike.
3) Remove R2 that keeps the transistor turned-on all the time.
4) Reduce the value of R1 so that the transistor gets enough base current.

Of course the IC should have its power pins connected to the car's power, and the inputs of the unused gate should be grounded.

See my corrected schematic.

post-1706-14279141990161_thumb.jpg

Link to comment
Share on other sites

Simon,
Audioguru has given you some good advice. I only have one addition:
Add a resistor from the base of the transistor to the 12V supply. A good value is 10 times the value of the base resistor. You want to have a pull-up here at all times unless your chip pulls it low. This will insure against false triggering.

MP

Link to comment
Share on other sites

A resistor from base to collector would be a good insurance policy. This problem has hit me in the past, so I highly recommend it from experience. You are correct that the gate should be either logic high or logic low, but when something causes it to become unstable, you sometimes see levels in the middle region. This is especially so on cars where grounding loops are such a problem.

Just my 2 cents.

MP

Link to comment
Share on other sites

There is a way to simulate the input of a gate so that it matches the output. You could load the output with another gate just to match it right. Otherwise, you should simulate the situation using the correct current draw which for TTL the source is less than the sink. If you use a common base transistor it should work. It's very easy and assures the correct current. This is just a guess. I really don't recall designs that utilize this, maybe because they are mostly CMOS.

Link to comment
Share on other sites

Hi Simon,
I didn't see any schematics posted on the EDA site so I don't know what they are talking about nor your solution. It is frustrating to jump from site to site.
On yet another site (Electro-tech-online) that you posted this problem, someone sketched a DIY DTL NOR gate. Maybe your solution is similar. Just think what those rectifiers will do if you drove under power lines or near a high-power radio transmitter. They might even set off the alarm!

Link to comment
Share on other sites

Hi Simon,
Your description of the door switch's function sure caused a lot of confusion. No wonder the first few circuits didn't work.

If the door switch closes its contact to ground when the door is closed but becomes an open circuit (switch is turned off) when the door is open, then your last circuit should work. But only if the input current requirement for the alarm can be supplied by a 10K resistor and a diode voltage drop.

The current through all 10K resistors won't drain the battery too quickly. It should last for months.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...