News:

SMF for DIYStompboxes.com!

Main Menu

CMOS Chip help

Started by Jaicen_solo, October 02, 2013, 08:41:57 AM

Previous topic - Next topic

Jaicen_solo

I'm looking for the simplest solution for an idea I've got.

I want to control a number of relays using momentary footswitches.

Say for example, I have 8 relays and eight switches. I want to be able to select which relay is turned on using mini-dip switches. When I press a new switch, I want it to only turn on the relays that are selected by that switch, I don't want to have to turn another one off first.

So, is there a simple CMOS solution for achieving what I want? I will use non-latching relays so everything is bypassed when no power is applied.

armdnrdy

It sounds as if you want to use a CMOS up/down counter and a 4051 or 4053.
Instead of the multiple dip switches you can use one momentary switch to choose channels.
I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)

duck_arse

how about a hex d flip flop? you'd need some logic for clocking, and 6 pushbuttons to select the six outputs.

www.nxp.com/documents/data_sheet/74F174.pdf

(as an example, and first googoo return)
" I will say no more "

Jaicen_solo

Thanks for the suggestions guys, but I don't want to have a sequential up/down type thing. I want one switch per programmable loop.

I did some more digging and came up with R.G's Spyder, which I think is fundamentally what i'm trying to do, however I can't make sense of how to actually build one.

Maybe my brain has finally turned to jelly after the last two weeks spent on my Acoustics final project.


R.G.

All of the quad, hex and octal D flops work fine. As I mentioned, the ability to clock them from an external switch and have that work first time, every time, requires picking the correct chip, and then tuning the rise/fall time of the "clock" made by the footswitch to get the flop to accept and change data.

And I guess I ought to get off my duff and finish up that PIC selector thing. The code is done and tested on an up-to-eight-way selector. Right now what needs to be completed is the write up telling people how to do the hookup on the PIC. The oddities the PIC introduces are that (1) you gotta put in a 78L05 or a zener to make 5V for the PIC and (2) you then have to use transistors, MOSFETs, or an 8-way driver chip like the uln2000 series to drive 9V peripherals from the PIC's lower voltage.  For that PITA, you get the ability to tell the PIC to be latching or momentary on the switches. (Mark, that's for you  :) )
R.G.

In response to the questions in the forum - PCB Layout for Musical Effects is available from The Book Patch. Search "PCB Layout" and it ought to appear.

Jaicen_solo

Actually, looking at the links, it seems a 74C373 octal switch might work fine. If I understand it correctly, I can turn on any of the 8 outputs to a High level, using a momentary switch? That would be all I need really.
I could route the 'high' output through a multi position switch, to select which relays are turned on, et voila.

Simple and effective, assuming i'm correct.  ???

duck_arse

#7
with the d flip-flops, you first need to tell the f/f's which ones you want to change state, from low to high, or high to low, via each data line, then you need a clock pulse, which moves the data through all the f/f's at the same time. I think it can also be done the other way with chips like the 4013, which has set/reset/data AND clock.

and you need to feed the output state back to the data input, so the f/f "counts" or divides-by-2 the clock pulses.

I should go and look at the spyder, it's been a few years.

[edit:] the spyder is a power supply for earth loop breaking, not a 1-of-8 selector. when in doubt, go with what rg will have posted somewhere already, in this case:

http://www.diystompboxes.com/smfforum/index.php?topic=102786.msg918469#msg918469
" I will say no more "