Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start stop using one push button

Status
Not open for further replies.

Lc85

Electrical
Apr 14, 2011
107
Hi,
I am trying to use the one push button to start and stop. I am using difu for the rising edge and a standard latch but my trouble is how to get it stop the second time the button is pressed. Has anyone any experience in this?

Thanks
 
Replies continue below

Recommended for you

This is generally a bad idea for industrial equipment, since there is no positive physical indication that the system has been turned on or off.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
This is just for exercise purposes. I am having trouble writing the logic to get it to stop.

Thanks
 
It should be just a toggle flip-flop.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
AND the state of the latch with your rising edge to determine wich direction to take the latch. SETLATCH=NOT LATCH AND REDGE. RESETLATCH=LATCH AND REDGE. Don't know what a difu is, but it sounds bad.
 
"Don't know what a difu is, but it sounds bad."
I believe this is the instructors term for "plagiarism". :)
 
Forget what IRstuff says about bad practice, its actually quite common practice and nothing wrong with it, it has its uses.

The easiest 2 line code is as follows.

Pushbutton Trigger
---[P]-----------( )---

Trigger coil coil
--] [---]/[--+---( )---

Trigger coil |
--]/[---] [--+

The rising edge of the pushbutton turns on Trigger, then Trigger will make the circuit on branch one if coil is off, or break the circuit on branch 2 if coil is on, as its a one shot, the next scan coil will remain at the changed state.

Then coil can be used to energise a lamp or other indication so you know the status.
 
Hey guys,
I prefer to use a counter, but to each his own.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor