Author Topic: Simple input selector, but still don't get it?  (Read 5271 times)

0 Members and 1 Guest are viewing this topic.

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Simple input selector, but still don't get it?
« on: August 07, 2020, 01:49:23 pm »
I found this push button input selector, but can't find out where the input sources go or get out.
https://320volt.com/en/3-channel-push-button-selector-circuit/

Will you please try to explain it to me in dummies level? :-)
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline The Soulman

  • Frequent Contributor
  • **
  • Posts: 951
  • Country: nl
  • The sky is the limit!
Re: Simple input selector, but still don't get it?
« Reply #1 on: August 07, 2020, 01:57:21 pm »
Nowhere, it has no switching capability, only lighting up leds.
If you want you could replace the led's with transistors or optocouplers, or....
<----
 

Offline LateLesley

  • Frequent Contributor
  • **
  • Posts: 322
  • Country: scotland
Re: Simple input selector, but still don't get it?
« Reply #2 on: August 07, 2020, 02:11:12 pm »
As @Soulman said, it's not switching inputs and outputs, the only input is the pusbuttons, and the output is an LED, latched to show which button has been pressed.

I think what you are looking for, is that circuit could be used with an analog switch/multiplexer, and this circuit, instead of driving LEDs, could drive the multiplexer address pins, allowing you to choose the input.

An example chip would be something like the 74HC4051D.

https://www.nexperia.com/products/analog-logic-ics/i-o-expansion-logic/analog-switches/74HC4051D.html
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #3 on: August 07, 2020, 07:30:49 pm »
I do really like both of your replies, but the idea of just adding a mosfet to each LED. The circuit has already an LED to show what channel is selected, has a latching soft push button "switcher" so the only thing missing is a power switch, that can be done by the mosfet. While second solution, demands me to "think" and try to get that to work. :-)

Is that a wise decision or?
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9536
  • Country: gb
Re: Simple input selector, but still don't get it?
« Reply #4 on: August 07, 2020, 08:03:58 pm »
It can be done simpler by the way. This circuit provides 4 buttons, but for 3 buttons you can use a triple 3 input NOR and squeeze it into a single IC package (active High outputs)....



Alternatively you can do the same with NAND gates with pullup resistors and the buttons connected to GND (Active Low outputs).
« Last Edit: August 07, 2020, 08:07:15 pm by Gyro »
Best Regards, Chris
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #5 on: August 07, 2020, 08:24:47 pm »
My try on making a 4 button, done before your logic gate example.

But would it work?
« Last Edit: August 08, 2020, 09:01:57 am by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline gcewing

  • Regular Contributor
  • *
  • Posts: 197
  • Country: nz
Re: Simple input selector, but still don't get it?
« Reply #6 on: August 08, 2020, 10:53:03 am »
My try on making a 4 button, done before your logic gate example.

But would it work?
Using a single mosfet to switch an analog signal like that is a bit tricky -- it will only work if the voltage at the source remains sufficiently close to ground, so that the gate-source voltage is large enough to keep the mosfet turned on. Also the body diode inside the mosfet can mess things up.

It would be better to use something like a 4066 quad analog switch, which is designed for doing just this kind of thing.

Also, your LEDs won't light connected in series with the mosfet gates like that. You would need to leave the LEDs and their resistors connected as in the original circuit, and connect the mosfet gates (or 4066 control inputs) directly to the outputs of the flip flops.
 

Offline jonovid

  • Super Contributor
  • ***
  • Posts: 1439
  • Country: au
    • JONOVID
Re: Simple input selector, but still don't get it?
« Reply #7 on: August 08, 2020, 11:31:35 am »
Quote
It would be better to use something like a 4066 quad analog switch, which is designed for doing just this kind of thing.
true I have used 4066's on a lot of this type of    IMO look at debouncing & power filtering

 you maybe trying to toggle on & off at the same time? with your switch bus
disconnect the reset and see,  try one channel at a time with all others disconnected.  :-/O
« Last Edit: August 08, 2020, 11:47:42 am by jonovid »
Hobbyist with a basic knowledge of electronics
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #8 on: August 08, 2020, 12:26:27 pm »
It can be done simpler by the way. This circuit provides 4 buttons, but for 3 buttons you can use a triple 3 input NOR and squeeze it into a single IC package (active High outputs)....



Alternatively you can do the same with NAND gates with pullup resistors and the buttons connected to GND (Active Low outputs).
Like this.



By the way, you can use the same technique with 3-input gates.
« Last Edit: August 08, 2020, 02:14:18 pm by Zero999 »
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #9 on: August 09, 2020, 10:01:36 am »
Thanks for helping, I have tried to read about the 4066 and tried to understand the original circuit, I have based "my" circuit on.

As I understand from this site: http://www.learningaboutelectronics.com/Articles/4066-quad-bilateral-switch-circuit.php
A signal do only go trough a channel if a voltage is applied to the channels "gate". For the chip to switch on would, as I again understand it, you have to make some sort of latching circuit. My idea is to make latching push buttons that unlatch if any other push button is pressed.
It does also look like to implementing any "channel LED", I have to add a circuit for that.

About "my" circuit: It should handle the switching, if anyone pushes button is activated? The LED should change at the same time?
I am hoping to use a 12V CC power supply for maintaining constant light on the LEDs and 6V-7V on the mosfet source.

I do understand from you both that my circuit is not going to function as I hope it should?

NEW SCHEMATIC:
« Last Edit: August 09, 2020, 10:37:28 am by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #10 on: August 09, 2020, 03:07:26 pm »
What are you trying to do?

An analogue switch such as the CD4066 is no good for driving LEDs.

What do you want to do? Just switch on an LED when a button is pressed and turn off the others? How much current do the LEDs require?

There are much simpler ways to do this.
 
The following users thanked this post: RJSV

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #11 on: August 09, 2020, 06:49:46 pm »
Thanks for your question! My goal is to make a Voltage ridirector. You push one of 4 soft latching push buttons, a LED, lights up, showing what button is currently pushed. The output that correspond with the number is now letting power go trough to the circuit who are on that number position.
In short, if you push button 3, LED 3 lights up and output 3 is delivering power.

Max CC would properly be about 750mA.
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #12 on: August 10, 2020, 11:15:50 am »
Look at the circuit I posted earlier, with the NOR gates.


Look at how each gate has two inputs, going to the outputs of the other gates. To design the same circuit, but with four switches, use three input NAND gates, again with each input going to the output of the other gates.

Here's a discrete version, showing it can be done without ICs. It works on the same principle, but using discrete NOR gates. Rather than shorting the output to +V to force the output high, the switch shorts the base to 0V. Put C1 across the switch you want it to default to, when the power is first applied. It's possible to build a simlar circuit using NAND gates, made with Darlington pairs/MOSFETs, which can drive the loads directly, but it's only suitable for high supply voltages.


EDIT:
It's easy. Rather than just resistors, use diodes, as well as resistors, to make AND gates before the MOSFETs. If the switches can take the 700mA, required by the LEDs, then the 1k resistors can be eliminated (replaced with a short) and the switches put in parallel with the MOSFETs (drain to source). If the LEDs glowing dimly and associated voltage drop, when they're off isn't an issue, the 10k resistors can be eliminated (replaced with an open circuit)

This circuit will run directly from the constant current source, as long as the forward voltage of the LEDs is high enough MOSFETs on enough. Note, the N=2 next to LED, means that each LED on the schematic represents two models in series, giving a voltage drop of about 7V. Again C1 is in parallel with the switch, which the circuit defaults to, when power is first applied.

« Last Edit: August 10, 2020, 03:15:16 pm by Zero999 »
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #13 on: August 10, 2020, 10:25:05 pm »
I do really like your discrete component solution, and have some noob questions.

The switches, is that "on/of" contacts, not push buttons?
Do channels change when flipping / pushing a corresponding button?
Output of Voltage, what are they cable of delivering (mA)?
« Last Edit: August 11, 2020, 03:50:07 am by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline gcewing

  • Regular Contributor
  • *
  • Posts: 197
  • Country: nz
Re: Simple input selector, but still don't get it?
« Reply #14 on: August 11, 2020, 03:41:02 pm »
My goal is to make a Voltage ridirector. You push one of 4 soft latching push buttons, a LED, lights up, showing what button is currently pushed. The output that correspond with the number is now letting power go trough to the circuit who are on that number position.
Max CC would properly be about 750mA.
My reply was based on the assumption that you were wanting to switch analog signals going into an amplifier or something like that, which is what your use of the term "input selector" suggested.

However, if you want to switch power on and off to various loads, that's a different story. Mosfets are fine for that.

But in your circuit you seem to be using n-channel mosfets to switch the positive side of the supply. That won't work well. You need to use p-channel mosfets with the source connected to the positive supply, and drive them from the Q-bar outputs of the flip flops (because the gate of a p-channel needs to be taken negative with respect to the source to turn it on).
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #15 on: August 12, 2020, 12:51:58 am »
The problem is about definition, it's an input selector but the part where the audio is going into and out of, is separated from everything else. To control the input selector, do I have to redirect power from power input to a 4 ch output redirect or and into the input selector, or in total am I making an input selector.
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #16 on: August 12, 2020, 08:49:28 pm »
I do really like your discrete component solution, and have some noob questions.

The switches, is that "on/of" contacts, not push buttons?
Do channels change when flipping / pushing a corresponding button?
Output of Voltage, what are they cable of delivering (mA)?
They are push buttons.

The one with the MOSFETs can switch high currents, up to the rating of the MOSFETs. The schematic shows it switching LEDs which drop 7V and are driven at 700mA.

The one with BJTs, is only for driving larger transistors, such as MOSFETs.

The problem is about definition, it's an input selector but the part where the audio is going into and out of, is separated from everything else. To control the input selector, do I have to redirect power from power input to a 4 ch output redirect or and into the input selector, or in total am I making an input selector.
That doesn't make much sense.

Is this to switch LEDs, audio, or both? It's possible to make the same circuit with relays.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #17 on: August 13, 2020, 11:55:00 pm »
I have chosen draw the input selector and the Volume / Balance control circuit, to make it easier to see what I am trying to do.
The audio is only going trough the opto couplers, the rest is to control and power the opto couplers.

I hope that it's somewhat understandable.
« Last Edit: August 15, 2020, 06:49:15 am by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #18 on: August 15, 2020, 12:38:28 pm »
I have chosen draw the input selector and the Volume / Balance control circuit, to make it easier to see what I am trying to do.
The audio is only going trough the opto couplers, the rest is to control and power the opto couplers.

I hope that it's somewhat understandable.
Did you remove the schematic, has the forum lost it? I hope you don't mind me reposting it. If you want me to delete it, message me, or ask a moderator to remove it.

Please try to use the correct symbols. The NE3085 is an FET opto-isolator, not an opto-TRIAC. This is important becauser a FET opto-isolator is good for audio, but a TRIAC would produce a lot of distortion.

The solid state relays won't latch, with the selector, but be momentary: is this what you want?

What's going on with Set0?
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #19 on: August 21, 2020, 11:07:26 am »
Hi Zero999

Sorry for my very late answer!
Thank you for making the schematic visible again, do not know what had happened.

You write about a NTE3085 opto-isolator, I'll try to correct my drawing, thanks for your pointing that out! (see below)

About latching relays, it was my hope to be able to push a push button that then switched the privies selected off. Let's say channel 4 was selected and now do I press button 3, that turns off button 4 and redirect power to output 3. Ch3 will now have a steady supply of power, while the other channels are off, until another channel is selected.

Sel0 is just the return-power to the constant current supply.

About the LEDs I am hoping to use one LED as indicator for what channel is selected but your circuit is using two LEDs per channel, is there a way to eliminate one of them, maybe by reducing the input Voltage?

I have tried to simulate the circuit on falstad but I have done something wrong: http://tinyurl.com/y244yxar
« Last Edit: August 21, 2020, 10:18:08 pm by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #20 on: August 23, 2020, 12:52:11 pm »
You won't get 700mA, using those JFET current sinks, more like 700µA.

If you can get relays with four contacts, then you could use those as part of the selector circuit.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #21 on: August 25, 2020, 03:57:14 am »
Thanks to your great drawings, has I finally managed to make the following circuit: http://tinyurl.com/y5epns6b
There are some problems about the right amount of power and a few questions about if the resistor, has to be there?
I have also not yet found a way to add LED's to indicate the active channel.
Is it possible to use solid state instead of mechanical relay?

Note: it says that there are bad connections, but it's simply due to me, ignoring if a line crossed a point in the relay.
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Simple input selector, but still don't get it?
« Reply #22 on: August 25, 2020, 04:40:20 pm »
How do I make a chip 3PST solid state relay, can't seem to find any chips?
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19570
  • Country: gb
  • 0999
Re: Simple input selector, but still don't get it?
« Reply #23 on: August 26, 2020, 06:56:42 pm »
Is there any reason why you want to use solid state relays?

I doubt you'll be able to get a 3PST solid state relay.

If you must use solid state relays, use the circuit I posted previously, with the MOSFETs. Put the LED side of the solid state relay, with a suitable series resistor, in parallel with the LED.
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7789
  • Country: ca
Re: Simple input selector, but still don't get it?
« Reply #24 on: August 26, 2020, 07:54:25 pm »
Here is a cheap AC/DC output optocoupler which can sustain 2 amps, 6 amp pulsed:

TLP241A(F  -  https://www.mouser.com/ProductDetail/Toshiba/TLP241AF?utm_term=TLP241A&qs=bUPhaerQQeE1lWx5mm8O0Q%3D%3D&utm_campaign=TLP241AF&utm_medium=aggregator&utm_source=findchips&utm_content=Toshiba

0.100 Ohm output resistance when on.  40v maximum output voltage between pins when off.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf