A useful circuit snippet #2 - turn led on from ground!!!

Original effects with schematics, layouts and instructions, freely contributed by members or found in publications. Cannot be used for commercial purposes without the consent of the owners of the copyright.
Post Reply
User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

Okay - maybe it is not a complete ready to build project, but some members may find it useful.
I had a problem recently where I needed to illuminate an LED indicator light when a relay was switched from +5v to ground potential( relay on state to relay off state) in an overdrive circuit built in to a vacuum tube guitar amplifier.
The solution for me was to use a very common CMOS IC - the CD4069, a hex inverting buffer 8). This CMOS chip is extremely cheap - you should not have to pay more than US thirty cents for one at the most.
The CD4069 has six individual complementary N and P type mosfets, a ground (or negative) pin and a positive ( or ground) pin marked Vdd and Vss respectively (d = drain, s= source).
Okay - connect all the input pins together (1, 3, 5, 9,11,13) and connect all the output pins together (2, 4, 6, 8, 10, 12).
Paralleling the inputs and outputs like this creates a single inverter with six times the switching current capacity.
Now connect pin 14 to the positive voltage source (+5v to +15v dc), and pin 7 to ground.
Now connect a 1k5 resistor (for current limiting - can be higher for a dimmer LED light) to the cathode ( short lead on LED)to the bundled inverter output pins.
Connect the other end of this resistor to ground.
Okay - now when you connect a positive voltage to the bundled inverter input pins, the LED will not light up.
Once this positive voltage is removed or switched to ground, the inverter will reverse the state and output will be at whatever the supply voltage is being used on pin 14 - the LED will light up.

i know this is a very simple project but hopefully some FSB members may find it as useful as I have.
cheers
Steve
be kind to all animals - especially human beings

User avatar
gus
Breadboard Brother
Information
Posts: 124
Joined: 13 Jul 2007, 22:36
Been thanked: 3 times

Post by gus »

Why not a PNP transistor a LED and a resistor? E to 5V, B to the top of the coil and a LED and resistor to ground in the collector leg. When the Base and Emitter are at 5V the transistor will be off and when the base is at ground the transistor will be on, maybe add a series resistor in the base leg.

This is if I understood the post correctly.

User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

[quote][Why not a PNP transistor a LED and a resistor/quote]
Yes, that will work as well. :)
bajaman
be kind to all animals - especially human beings

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

I've used this one.
Chose one of the LED's for different state of relay, and omit other transistor and two resistors along with LED if not needed.

Hope this would be helpful! :D

User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

thanks himister :wink:
Just goes to show that the problem can be solved in a number of different ways. :thumbsup
bajaman
be kind to all animals - especially human beings

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

Note.

Resistors R6 and R8 should be 2k2 as R2, if 10V supply is used!

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

bajaman wrote:thanks himister :wink:
Just goes to show that the problem can be solved in a number of different ways. :thumbsup
bajaman

No problem! :welcome

That's why we are here! :thumbsup

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

Here it is! The quick pcb and layout! :D

In case anyone needs!

[smilie=rlp_smilie_242.gif]

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

corrected :)
Attachments
footswitch_relay_control.pdf
(54.28 KiB) Downloaded 155 times

User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

very clever - you should repost this as a completely separate topic (with a brief explanation of how it works :wink: ) in the Ready to Build projects section of the forum :D
Welcome to the forum :applause: :applause: :applause:
bajaman
be kind to all animals - especially human beings

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

bajaman wrote:very clever - you should repost this as a completely separate topic (with a brief explanation of how it works :wink: ) in the Ready to Build projects section of the forum :D
Welcome to the forum :applause: :applause: :applause:
bajaman

Thnx very much Bajaman. :wink:

I will post it along with other one I'm working on now, cause it's a part of it! :D

:cheers

User avatar
pz
Solder Soldier
Information
Posts: 217
Joined: 17 Aug 2007, 16:55
Location: Germany/Poland
Has thanked: 2 times
Been thanked: 48 times

Post by pz »

Baja :arrow:
if i understand correctly, you are controlling the relay by applying the +V to the coil?
I don't know the exact circuit, but i think leaving an ultra high impedance CMOS inputs floating is just asking for potential problems. Things look much simpler if you control the realy from the negative side.

himister :arrow:
i think your circuit is a little bit too complicated for such a function. It also draws the current from the source just to turn the LEDs off. It can be made much simpler, using only one transistor:
relayctrl.gif
relayctrl.gif (3.1 KiB) Viewed 1670 times
It also gives you an inverted logic signal to control other relays, switches etc.
I have used it a lot in my latest amp and it works great.

User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

Hey - nice to hear from you again pz :wink:
That amplifier looks very complicated :shock: 8)
The cmos inputs are not floating in my design - good point though :wink:
cheers
bajaman
be kind to all animals - especially human beings

User avatar
pz
Solder Soldier
Information
Posts: 217
Joined: 17 Aug 2007, 16:55
Location: Germany/Poland
Has thanked: 2 times
Been thanked: 48 times

Post by pz »

The amp is a hybrid tube/solid state/digital homerecording guitar station. More info&phots are here, if you are interested. I had a lot of fun while building this monster :)
And here's more ideas using 4069 inverters:
Attachments
relayctrl2.gif
relayctrl2.gif (4.97 KiB) Viewed 1629 times

User avatar
bajaman
Old Solderhand
Information
Posts: 4512
Joined: 26 Jun 2007, 21:18
Location: New Brighton, Christchurch, NZ
Has thanked: 566 times
Been thanked: 2014 times

Post by bajaman »

The first picture is exactly what I used (minus the top LED and resistor)- the rectangle in parallel with the diode being the relay coil.
cheers
bajaman
be kind to all animals - especially human beings

User avatar
himister
Resistor Ronker
Information
Posts: 425
Joined: 07 May 2009, 00:48
Has thanked: 21 times
Been thanked: 28 times

Post by himister »

pz wrote: himister :arrow:
i think your circuit is a little bit too complicated for such a function. It also draws the current from the source just to turn the LEDs off. It can be made much simpler, using only one transistor:

Thnx man. Another way to do it! Great!
This one is drawn from the original circuit made in Laney preamps, but I assume there's a reason why works like that since it has a common PSU with FX loop circuit. I've just added one more tranny, LED and two resistors for extra function of relay logic state!

Anyway it's very useful. If anyone needs I'll draw PCB for your prototype gladly! :D

Cheers

Post Reply