Author |
Message |
commathe
Joined: Jul 26, 2013 Posts: 153 Location: Beijing
Audio files: 5
|
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
|
Back to top
|
|
|
commathe
Joined: Jul 26, 2013 Posts: 153 Location: Beijing
Audio files: 5
|
Posted: Sun Dec 21, 2014 2:54 am Post subject:
|
|
|
I've never really used the 4052, so I didn't think of that. Your's is definitely a lot more graceful (and useful)! |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5581 Location: Moon Base
Audio files: 705
|
Posted: Sun Dec 21, 2014 5:34 am Post subject:
|
|
|
yep, a mux works great to make use of all the 3 settings of the toggle switch. I thought I posted a schematic using that setup,
but the only thing I find that resembles it is this forced state switch. (which is pretty much it except that it uses fixed high/low levels and only 1 input).
It happens to me too that I spend hours or days trying to come up with asolution and after I do I find a much easier solution.
But you usually learn something from it anyway. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
elektrouwe
Joined: May 27, 2012 Posts: 143 Location: Germany
|
Posted: Sun Dec 21, 2014 11:11 am Post subject:
Re: Turning an on-off-on switch into a three-way selector |
|
|
commathe wrote: | ... after hours of banging my head against the desk.... |
obviously it did not help your circuit is a real overkill to select between 3 signals A,B,C : connect A to to the left pos. of your switch, C to the right, and B via a 10k to the middle which is also the output of your 3-way-selector.(Use a non inverting gate as buffer if you don't want the 10k series R when selecting B)
I came up with this after seconds not hurting myself |
|
Back to top
|
|
|
elmegil
Joined: Mar 20, 2012 Posts: 2177 Location: Chicago
Audio files: 16
|
Posted: Sun Dec 21, 2014 1:56 pm Post subject:
|
|
|
Just get one of the on-on-on dp3t switches..... No active electronics required. |
|
Back to top
|
|
|
commathe
Joined: Jul 26, 2013 Posts: 153 Location: Beijing
Audio files: 5
|
Posted: Sun Dec 21, 2014 6:29 pm Post subject:
|
|
|
elektrouwe wrote: | commathe wrote: | ... after hours of banging my head against the desk.... |
obviously it did not help your circuit is a real overkill to select between 3 signals A,B,C : connect A to to the left pos. of your switch, C to the right, and B via a 10k to the middle which is also the output of your 3-way-selector.(Use a non inverting gate as buffer if you don't want the 10k series R when selecting B)
I came up with this after seconds not hurting myself | Again:
At least I learnt a lot from the experience, if nothing else.
elmegil wrote: | Just get one of the on-on-on dp3t switches..... No active electronics required. | A weeks worth of searching and not being able to find any was what inspired this. I could only get the 1P2T type that just connect both lugs in the middle position. |
|
Back to top
|
|
|
elmegil
Joined: Mar 20, 2012 Posts: 2177 Location: Chicago
Audio files: 16
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5581 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
elmegil
Joined: Mar 20, 2012 Posts: 2177 Location: Chicago
Audio files: 16
|
Posted: Mon Dec 22, 2014 6:57 am Post subject:
|
|
|
And then you spend how much more for chips and wiring and solder and stripboard to jury rig the on-on-on functionality......
Seriously, I'm not suggesting this as a general purpose switch! |
|
Back to top
|
|
|
karczilla
Joined: Dec 10, 2014 Posts: 34 Location: nyc
|
Posted: Mon Dec 29, 2014 7:30 pm Post subject:
|
|
|
synaesthesia wrote: | and does analog too. |
hey synaesthesia/anyone, when you say it does analog, is that with GND/0V and V+?
my cmos cookbook says for analog, apply -5V to pin X and +5V to pin Y, and the signal can be -5V to +5V peak to peak....
and now that i'm thinking about it, they say to use -5V in order to pass a signal that oscillates around 0V (btwn -5 and +5)....
what i'm asking is....I can use 0V and +5V supply and fully pass any waveform through (stepped triangle, sine, ramp) without it being "sampled" and converted to digital as long as its between my single supply voltages (0 and +xV!?!?!?
|
|
Back to top
|
|
|
commathe
Joined: Jul 26, 2013 Posts: 153 Location: Beijing
Audio files: 5
|
Posted: Mon Dec 29, 2014 7:44 pm Post subject:
|
|
|
Don't be shy! It's a reasonable question. The problem comes from the fact that digital can mean two things, and we maybe use the word a little differently here on the Lunetta forum.
When we use the word digital here on the Lunetta forum we basically mean a square wave. It's digital because it can only be high (V+) or low (GND/V-) which is basically the same as binary. You can think of a square wave as being a 1-bit digital signal
Most of the time when people use the word "digital" they mean passed through a microprocessor or some other chip that has to sample it.
Here on the Lunetta forum, when we say "analog" we also mean something a little different, we mean that it is possible for it to be any value, not just high or low. Most CMOS chips have digital outputs - they can only be high or low so they square up anything fed into their inputs - but a small handful, like the 4052 chip, can pass analog signals and they wont get turned into square-waves, they'll stay unchanged.
However, an analog switch powered from GND/0V to +5V would NOT be able to pass anything below 0V or above 5V. It would end up clipping off the top and bottom of any signal that went beyond that
I hope this helps! |
|
Back to top
|
|
|
Dave Kendall
Joined: May 26, 2007 Posts: 421 Location: England
Audio files: 3
|
|
Back to top
|
|
|
fluxmonkey
Joined: Jun 24, 2005 Posts: 708 Location: cleve
|
|
Back to top
|
|
|
|