electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Switching Signals using momentaries, sequential switches...
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 3 [60 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2, 3 Next
Author Message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Fri Jan 09, 2009 7:32 pm    Post subject: Switching Signals using momentaries, sequential switches...
Subject description: final schematics in first post
Reply with quote  Mark this post and the followings unread

This is what i'd liked to do: i wanted to have one momentary switch on the frontpanel to step thru i.e. different waveforms or channels or whatever. the active channel would be indicated by a LED. i know this could easily be done using a double pole rotary, but i want a momentary.

my idea was to use a 4017 clocked by the debounced momentary. the outputs of the 4017 would then control SPST ICs (i.e. the MAX313 rom maxims).

for 4 channels with LEDs i would need the 4017 and 2x MAX313.

any ideas how to do it easier or with less ICs?

[EDIT: uploaded the final schematic providing all bells and whistles]


SeqSwitch.gif
 Description:
 Filesize:  72.93 KB
 Viewed:  792 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

SeqSwitch.gif



_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source

Last edited by fonik on Wed Apr 01, 2009 2:06 am; edited 6 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Fri Jan 09, 2009 7:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

That sounds like the way to do it! I suppose you'll want to put an LED on each output, no doubt that was your plan, eh?
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Fri Jan 09, 2009 7:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
That sounds like the way to do it! I suppose you'll want to put an LED on each output, no doubt that was your plan, eh?

that was the plan. actually i would need an IC like the 4052 that accepted a clock!
the 4052 has to be controlled by i.e. a 4024. no matter how i do it, i always need two ICs, one for switching and one as controller, it seems...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Fri Jan 09, 2009 8:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Too bad there isn't an counter with open collector outputs or open drain outputs, then you could just shunt the signals quiet except for the active one. Might get some leakage though.

You could use a PIC to do that in a variety of different ways, perhaps.

I dunno, just thinking out loud.

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
RF



Joined: Mar 23, 2007
Posts: 1502
Location: Northern Minnesota, USA
Audio files: 28

PostPosted: Fri Jan 09, 2009 8:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is there is a way to initially load one bit into a shift register (ie. 4015) send the output back into the input and use your momentary switch as the clock? scratch

bruce

_________________
www.sdiy.org/rfeng

"I want to make these sounds that go wooo-wooo-ah-woo-woo.”
(Herb Deutsch to Bob Moog ~1963)
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sat Jan 10, 2009 3:38 am    Post subject: Reply with quote  Mark this post and the followings unread

RF wrote:
Is there is a way to initially load one bit into a shift register (ie. 4015) send the output back into the input and use your momentary switch as the clock? scratch

bruce

Probably NANDing all the outputs and putting that into the carry input would work, depending on clocking edge details. But then that's more digital chips.

How abut something funky like sending the control outputs into the oscillator circuits in a creative way that shuts them down or enables them? That would eliminate the analog switch chip.

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Sat Jan 10, 2009 6:57 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
How abut something funky like sending the control outputs into the oscillator circuits in a creative way that shuts them down or enables them? That would eliminate the analog switch chip.

to say it frankly, i don't know much enough to understand what you are after. i would be glad if you could explain it in plain words for me...
however, i was looking for a general solution i could use anywhere in the prewired synth i want to build (selection of waveforms, speed, on/off).

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Uncle Krunkus
Moderator


Joined: Jul 11, 2005
Posts: 4761
Location: Sydney, Australia
Audio files: 52
G2 patch files: 1

PostPosted: Sat Jan 10, 2009 7:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Wouldn't a 4024 need a separate B to D for the LED indicators?
_________________
What makes a space ours, is what we put there, and what we do there.
Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sat Jan 10, 2009 7:17 am    Post subject: Reply with quote  Mark this post and the followings unread

fonik wrote:
Inventor wrote:
How abut something funky like sending the control outputs into the oscillator circuits in a creative way that shuts them down or enables them? That would eliminate the analog switch chip.

to say it frankly, i don't know much enough to understand what you are after. i would be glad if you could explain it in plain words for me...
however, i was looking for a general solution i could use anywhere in the prewired synth i want to build (selection of waveforms, speed, on/off).

Oh, well this is a specific solution. Say your oscillator has a capacitor to ground that sets the frequency. Lift that ground connection and hook it up to the digital output. That way, when it is logic 1 the circuit won't oscillate and when it is logic 0 it will. But again that's design specific. If you need a general solution you're back to two chips plus debounce.

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sat Jan 10, 2009 7:20 am    Post subject: Reply with quote  Mark this post and the followings unread

You could also play games with opamps, like this. Sum the digital output into the oscillator signal with gain. Then when the output is one, the opamp will hit the rail and no oscillator signal will get out, and when the output is zero you get your signal. If you have to have an opamp there anyway there are no added parts.
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24420
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Sat Jan 10, 2009 7:21 am    Post subject: Reply with quote  Mark this post and the followings unread

Uncle Krunkus wrote:
Wouldn't a 4024 need a separate B to D for the LED indicators?


Either that or or learn to read B Cool

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Sat Jan 10, 2009 7:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Uncle Krunkus wrote:
Wouldn't a 4024 need a separate B to D for the LED indicators?

i'd thought to do it like that:
http://modular.fonik.de/pdf/seq_switch.pdf

however the 4017/switch IC solution would be more versatile...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24420
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Sat Jan 10, 2009 7:37 am    Post subject: Reply with quote  Mark this post and the followings unread

fonik wrote:
i'd thought to do it like that:
http://modular.fonik.de/pdf/seq_switch.pdf


Smart!

One thingie ... I see you routed both Vee and Vss of the 4052 to GND, yet you do go into the chip with potentially negative voltages. Shouldn't one of (I forgot which one, the data sheet will tell) Vee or Vss go to -8V?

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
richardc64



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Sat Jan 10, 2009 8:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
Shouldn't one of (I forgot which one, the data sheet will tell) Vee or Vss go to -8V?


Vee.

Also, aren't those LEDs pointing the wrong direction? You can eliminate 3 resistors by connecting the LEDs directly (in the right direction,) to the 4052 pins and have a single resistor to +8V at "x."

And regarding -8V, there are LM7908s available, which should be more reliable than a resistive voltage divider. But, if a voltage divider is good enough to create -8V, why wouldn't it be good enough for +8V?

What makes this thing "VC"?

_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Sun Jan 11, 2009 5:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
fonik wrote:
i'd thought to do it like that:
http://modular.fonik.de/pdf/seq_switch.pdf

Smart!

dieter's idea!?

Quote:
One thingie ... I see you routed both Vee and Vss of the 4052 to GND, yet you do go into the chip with potentially negative voltages. Shouldn't one of (I forgot which one, the data sheet will tell) Vee or Vss go to -8V?

you got a sharp eye, jan. yes, VEE should go to -8V. that's actually the idea of the circuit. this way the switch could handle both audio and CVs.

richardc64 wrote:
And regarding -8V, there are LM7908s available, which should be more reliable than a resistive voltage divider. But, if a voltage divider is good enough to create -8V, why wouldn't it be good enough for +8V?

this is actually a doepfer circuit. you can download it from his site. since +8V (envelope) is the higher limit in a doepfer system, he wanted to be sure to cover this exactly, i suppose. the lower limit would be -5V IIRC. therefor he used just a divider.
however you are right. i will have to do a new PCB and will consider the usage of a 2nd regulator.
maybe it would even be a good idea to incorporate a switch to choose from -8V to +8V and GND to +15V powering of the circuit.

richardc64 wrote:
What makes this thing "VC"?

it is a 4pos switch not controlled manually, but from a voltage (clock).

richardc64 wrote:
Also, aren't those LEDs pointing the wrong direction? You can eliminate 3 resistors by connecting the LEDs directly (in the right direction,) to the 4052 pins and have a single resistor to +8V at "x."

good idea. when i built this thing i did not know what i was doing. just copying a circuit - and making errors!


so thank you very much, friends. i will redo the whole thing. i experienced some problems with the reset, too. i will have to incorporate a debouncing.

however, for my prewired synth i will go the 4017/switch IC route...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24420
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Sun Jan 11, 2009 5:33 am    Post subject: Reply with quote  Mark this post and the followings unread

fonik wrote:
dieter's idea!?


I meant the way to connect up the LEDs, but I now know it could be done even smarter Wink

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Sun Jan 11, 2009 10:08 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
fonik wrote:
dieter's idea!?


I meant the way to connect up the LEDs, but I now know it could be done even smarter Wink

Laughing
(the LEDs are reversed even on the original doepfer schematic)

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sun Jan 11, 2009 4:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

Playing the feature creep for a moment. Oh, hell, who's pretending? Very Happy

Why use that counter? The CD4516 was built to make stuff like this much more versatile.

I know you said "simple", but it wouldn't take a whole lot of surgery to make this really kick.

A CD4516 would allow you to count up and count down. You could also jam an input in, so you wouldn't have to work sequentially. Each channel could have its own momentary - you could jump from channel 2 to channel 4, for example, or 3 to 2, just by pushing the associated switch. Creeping forward from that, each channel could have its own pulse input so you could automate that process. Forward/reverse could be a switch.

I'd use a diode matrix for the momentary inputs for the jamming, but you could use a priority encoder, too, which is, of course, another IC.

Back under the rock....

Cheerios,
Scott

_________________
My Site
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sun Jan 11, 2009 5:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here's what I'm thinking about - it's a rough draft of the concept. Dunno if it works exactly as drawn (capacitor value might need played with) and debouncing would need to be addressed. I think reverse would be gilding the lily, but individual selection would be great - you could pre-patch stuff and select among things. Especially the way you patch up things like that (I'm thinking of those Klee videos and samples).

Cheerios,
Scott


four_channel_jam.PNG
 Description:
 Filesize:  11.53 KB
 Viewed:  216 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

four_channel_jam.PNG



_________________
My Site
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sun Jan 11, 2009 5:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here's an implementation that would allow external signals to select any of the four channels arbitrarily.


four_channel_jam2.PNG
 Description:
 Filesize:  20.89 KB
 Viewed:  282 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

four_channel_jam2.PNG



_________________
My Site
Back to top
View user's profile Send private message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Mon Jan 12, 2009 10:13 am    Post subject: Reply with quote  Mark this post and the followings unread

scott, you are driving me crazy! first i had an idea how to do something i want - then do you taking this far beyond with such nice ideas, and now i am thinking of how to use this for my synth Shocked
Laughing
honestly a great idea. i will see how this fits in my UI concept (big words Embarassed ).

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Mon Jan 12, 2009 12:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey! You started it by posting that juicy schematic. Laughing

Sorry about that - there's something about CMOS that is just so endless. It's the true Tinkertoys of Synth DIY. I never know where/when to stop....

Anyway, whatever you come up with, I bet it'll be awesome.

Cheerios,
Scott

_________________
My Site
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Tue Jan 13, 2009 10:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

You know, this isn't schmooze, but I just thought I'd mention that I once had a cat named CMOS. CMOS was black and white and a very smart cat. I once observed her watching a geometry show on public television with fascination.

I think if CMOS were still with us, she'd be watching the LED's and wondering what made them blink! Haha, now back to your design fun, folks...

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Wed Jan 14, 2009 4:45 am    Post subject: Reply with quote  Mark this post and the followings unread

actually OT, however:
here is the updated schematic of the VC sequential switch. i simplified and corrected the LED circuitry as mentioned, and added two switches:

SW1 selects the powering of the 4052. when powered from -8V to +8V it is in bipolar mode for audio and LFO, when powered from GND to +15V it is for clock and envelopes. you could process clock and envelopes in bipolar mode, too, as long as you assure not to exceed the limits (however there are protecting diodes on the I/O's).

SW2 routes the 8V from the LEDs to the reset of the CD4024, thus allowing to change the number of steps (2, 3 or 4). is the diode really needed (a proposal from peter grenader)?

i am now thinking about a manual reset switch (momentary). would it be sufficient to wire the momentary to +8V?


Sequential Switch V2.gif
 Description:
 Filesize:  92.71 KB
 Viewed:  368 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Sequential Switch V2.gif



_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24420
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Wed Jan 14, 2009 6:25 am    Post subject: Reply with quote  Mark this post and the followings unread

I see a small problem Wink

When Q2 conducts and IC4 happens to be in such a state that LED3 or LED4 are on and SW2 is in the right position too ... there is a short circuit from +V8 to GND .. maybe move R11 to the other side of IC4?

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 3 [60 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2, 3 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use