Author Topic: Flip Flop Stuck?  (Read 4462 times)

0 Members and 1 Guest are viewing this topic.

Offline KnappsterTopic starter

  • Newbie
  • Posts: 4
Flip Flop Stuck?
« on: July 08, 2010, 12:39:25 am »
First I'll paint the picture. I have a circuit design to control a motor for an airsoft gearbox here: http://openairsoft.net/stuff/SW-AB-LONG-SCH.png

This works as intended however I have a need to replace the current switch mechanism inside the gearbox. In semi auto mode, as the trigger switch is closed a lever connected to the gear train kicks the closed switch open after one cycle of the gearbox and therefore kills power to the motor. I'm looking to replace this switch mechanism with a PCB containing SMD switches like in this video:

They achieve control through the use of a PIC microcontroller, I'd like to replace that micro with something a lot simpler and a lot cheaper. Basically I'm looking for a device that has 2 inputs and 1 output. Input 1 (Trigger) causes the output to go high and when input 2 (cut off) is momentarily high the output changes state to low and stays low until input 1 cycles from low to high again.

Someone pointed me in the direction of basic flip-flops but I can't get them to do my bidding. I hope I've explained things clearly :$. The answer is probably very simple but I'm too blind to see it.
« Last Edit: July 08, 2010, 12:42:02 am by Knappster »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19889
  • Country: gb
  • 0999
Re: Flip Flop Stuck?
« Reply #1 on: July 08, 2010, 01:35:02 am »
Just use an RS flip-flop.

Output = Q

Set = Input 1 (trigger)

Reset = Input 2 (cut-off)

When the trigger goes from low to high, the output will go high and when the reset goes from low to high, the output will go low.

There are plenty of ways to do this from logic gates to a couple of transistors. I'd recommend using a flip-flop IC such as the CD4013 or 74HC74
 

Offline KnappsterTopic starter

  • Newbie
  • Posts: 4
Re: Flip Flop Stuck?
« Reply #2 on: July 08, 2010, 08:59:03 am »
I knew it was simple :P. I found that I need a package that triggers on the positive rising edge only which is why I couldn't get my logical models to work :$. Thanks for the help.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19889
  • Country: gb
  • 0999
Re: Flip Flop Stuck?
« Reply #3 on: July 08, 2010, 09:27:18 am »
The devices I suggested are positive edge triggered, if you need negative edge triggering, you could use a 555 timer or make a flip-flop from NAND gates e.g. the CD4011 or 74HC00.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf