Author Topic: What do I call this thing?? Help me name it, so I can search for it :)  (Read 5452 times)

0 Members and 1 Guest are viewing this topic.

Offline TwellmannTopic starter

  • Newbie
  • Posts: 7
So, I find myself needing a simple circuit, but I havn't got a clue as to what it's called  ???

I hope that, if I describe the circuit you can help me name it.

Description:

You have all used/built/seen this thing; there is a simple push button, and everytime it is pressed the circuit changes state/output.

All of the states are cyclical, meaning that when you reach the last state, and press the button again, it returns to the first state.

This type of circuit is found on numerous toys, hifi's and the like. Eg. when you press the source button on a tv-remote, it cycles between all the sources again and again.

I need three these states:

  • Both outputs off
  • Output 1 on, Output 2 off
  • Output 1 + 2 on

 
The outputs will drive a miniature 5-12V relay each

Thanks in advance  ;D

Daniel
 

Offline Kiriakos-GR

  • Super Contributor
  • ***
  • !
  • Posts: 3525
  • Country: gr
  • User is banned.
    • Honda AX-1 rebuild
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #1 on: December 08, 2010, 12:01:44 am »
Oh no .. it does not work that way .

Quote
The outputs will drive a miniature 5-12V relay each


I have see such designs  in Disco light systems.

Basically , you are NOT looking for one part solution , but for an complete circuit .

They must called as " opto-coupler  switches "   the IC at list , and I had found some in high end preamp's.
Instead  of mechanical switches  on the sound inputs , they use those , because it eliminates sparks and noises caused by common mechanical switches .    ( Input selectors )

I do not have an schematic to share , but  lets hope that my reply will help you , even by just a little.
« Last Edit: December 08, 2010, 12:03:41 am by Kiriakos-GR »
 

Offline tyblu

  • Frequent Contributor
  • **
  • Posts: 287
  • Country: 00
    • blog.tyblu.ca
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #2 on: December 08, 2010, 12:09:53 am »
A state machine. The usual method for arriving at a logic circuit to realize this is to write down all of your inputs and outputs, describe their values for each state, draw any possible paths between states, then implement those paths with logic functions. There are other methods for minimizing the resultant logic circuits. Is this what you're thinking of?
Tyler Lucas, electronics hobbyist
 

Offline Balaur

  • Supporter
  • ****
  • Posts: 525
  • Country: fr
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #3 on: December 08, 2010, 12:11:25 am »
Hello,

So you need some kind of machine with a finite number of states. Hmm...

Without knowing any details of your implementation goals or target, here is a suggestion:
You can use discrete logic ICs and implement a Shift Register Counter (or more precisely a ring counter) with three flip-flops (ff0, ff1, ff2). The output of each flip-flop represents the corresponding state. If "high" then the state is active.

Each primary output is activated by a relay driven by a BJT transistor (with a protection diode in parallel of course). The base is driven by the outputs of the flip-flops, but with a twist:
- Use a diode from ff1 to output 1 transistor base
- Use a diode from ff2 to output 1 base and another one to output 2 transistor base.

(Note: According to flip-flop characteristics, you can also drive the relays directly)
(Second note: a transistor-only implementation is also possible)

However, please familiarize yourself with the wonderful concept of "de-bouncing" before proceeding.

If you have experience and hardware to work with microcontrollers, you can also try using a cheap, 8-pin MCU.

Cheers,
Dan
« Last Edit: December 08, 2010, 12:19:32 am by Balaur »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11710
  • Country: my
  • reassessing directives...
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #4 on: December 08, 2010, 04:56:57 am »
i'll go with the mcu. here goes the ugly sketching...
you'll need (N+3) pins mcu = Vcc, GND, input and N-output.
number of state = 2^N.
the cap is for debounce i think, but i could be mistaken.
instead of directly connecting to relay, you can use bjt to cope with higher current if necessary.
« Last Edit: December 08, 2010, 05:07:54 am by shafri »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18017
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #5 on: December 08, 2010, 06:33:57 am »
I think he might be looking for something like a binary counter and then a decoder to activate one output at a time, or perhaps a shift register can do it ?
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1447
  • Country: us
  • Very dangerous - may attack at any time
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18017
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #7 on: December 08, 2010, 07:30:44 am »
just the job
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1447
  • Country: us
  • Very dangerous - may attack at any time
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #8 on: December 08, 2010, 09:39:51 am »
Schematic
 

Offline TwellmannTopic starter

  • Newbie
  • Posts: 7
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #9 on: December 08, 2010, 11:38:16 am »
It seems we have a winner  ;D

This looks to be the exact thing I need. What do you suppose the current draw is? The V+ on the relay coil is for the rated voltage of the coil, right?

I think I should make a complete description of my project, as I still have a few more questions.

EDIT:

I've created a thread for the complete project over here:
https://www.eevblog.com/forum/index.php?topic=1931.0
« Last Edit: December 08, 2010, 12:48:12 pm by Twellmann »
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1447
  • Country: us
  • Very dangerous - may attack at any time
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #10 on: December 08, 2010, 01:18:00 pm »
The current draw of the 74HC4017 is under 10 uA. When one or both relays are on, then the current will be a few mA (to drive the ULN2003) plus whatever the relay coil(s) need.

If you don't have a 5V supply already present, then using a CD4017B and ULN2004 may be better. They will work with up to 15 volts.

Revised schematic for 12V supply and four steps (off/off, on/off, on/on, off/on).
 

Offline TwellmannTopic starter

  • Newbie
  • Posts: 7
Re: What do I call this thing?? Help me name it, so I can search for it :)
« Reply #11 on: December 08, 2010, 03:26:44 pm »
A lot of good stuff  :)

This is really great, if I want to keep the three states on the 12V circuit, can I then instead of the fourth output going to the transistor-array, loop it back to the reset pin? Basically keeping the layout from the 5V layout
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf