|
Components and Circuits For discussions about component types, alternatives and availability, circuit configurations and modifications etc. Discussions here should be of a general nature and not about specific sets. |
|
Thread Tools |
5th Apr 2021, 1:19 pm | #1 |
Octode
Join Date: Jun 2013
Location: Huddersfield, West Yorkshire, UK.
Posts: 1,795
|
Logic latch
Hi peeps.
I need a simple logic latch.... fool proof. I need to latch a relay or solid state switch to be On / Off with a single "push" operation of a "make" button. C Mos or TTL. Any one out there got a circuit in mind please. NO Pics please as I already have one in the item and it cannot be re jigged. TTL or Cmos will be fine. Thanks
__________________
Should get out more. Regards Wendy G8BZY |
5th Apr 2021, 2:27 pm | #2 |
Guest
Posts: n/a
|
Re: Logic latch
Sounds like a D type flip flop configured as a divide by two with the input well debounced. You can get eight in one box, paralleled it might give enough drive for a real relay, no need for the ubiquitous diode, push pull outputs supress the spike.
|
5th Apr 2021, 2:35 pm | #3 |
Octode
Join Date: Jul 2018
Location: Worthing, West Sussex, UK.
Posts: 1,005
|
Re: Logic latch
You need something like a bistable flip-flop, use two NOR gates or two NAND gates.
You can even use a 555 I recall, if you do a search there must be loads of circuits out there. http://www.easyelectronics.byethost1...ble-latch/?i=1 Or you could use a SMALL thyristor, reset by removing the supply line momentarily, that is how the old GEC selcall units stayed open from distant memory. Last edited by Cruisin Marine; 5th Apr 2021 at 2:45 pm. |
5th Apr 2021, 2:45 pm | #4 |
Nonode
Join Date: Jun 2008
Location: Coningsby, Lincolnshire, UK.
Posts: 2,820
|
Re: Logic latch
I’m sure I made one with just a couple of transistors in it, can’t remember where I got the circuit now though! It works very well, I used it in a modulator as a power switch, and a second one to switch it between test pattern and video input, I’ll have a dig around see if I can find it..
Regards Lloyd |
5th Apr 2021, 3:17 pm | #5 |
Dekatron
Join Date: Jun 2015
Location: Biggin Hill, London, UK.
Posts: 5,225
|
Re: Logic latch
Do you want separate set and reset signals, or a single signal which toggles the state?
The former is an SR latch, which is a pait of cross-coupled NAND or NOR gates. You can also cross-couple a pair of transistors, these are effectively RTL NAND gates if you think about it. It's the classic Eccles-Jordan circuit. The latter can be made using a D type flip flop (74x74 or 4013) with the D input driven from the Q/ output. Or a JK flip-flop (74x76, 74x112, etc or 4027) with J and K both asserted. Note that some TTL flip-flops have J and K/ inputs so you need to tie J high and K/ low to assert them. In all cases you need to connect the Set and Reset (direct) inputs to the non-asserted state and apply the input signal to the clock input of the flip-flop. Of course these flip-flops will respond to contact bounce, so you will have to debounce the switch. If it's just a make contact switch, try a 0.1uF capacitor across it. If you have a changeover switch you can debounce using an SR flip-flop, the other half of the 74x74 could be used for this. [74x74 means 7474, 74LS74, 74HC74, 74HCT74, etc] |
5th Apr 2021, 3:33 pm | #6 |
Guest
Posts: n/a
|
Re: Logic latch
Take caution with caps directly across switches, the instantaneous current can be very high and wreck the switch, this is one of the reasons why suppressors are a cap and resistor in series.
|
5th Apr 2021, 3:40 pm | #7 |
Dekatron
Join Date: Jun 2015
Location: Biggin Hill, London, UK.
Posts: 5,225
|
Re: Logic latch
I would be surprised if a 0.1uF capacitor charged to 5V held enough energy to damage a normal switch contact.
I can think of a once-popular application that can't be discussed here where a capacitor of about 1uF charged to 12V was connected across a switch contact that operated many, many thousands of times. |
5th Apr 2021, 3:40 pm | #8 |
Moderator
Join Date: Mar 2012
Location: Fife, Scotland, UK.
Posts: 22,903
|
Re: Logic latch
Something like a 7474 in any flavour.
Debounced switch pulse to clock input (else it'll drive you insane) Q bar to D. Fit an R-C delay pullup (series R, shunt C) to either set bar or reset bar to choose the power up state, with just a plain pullup to the other. For bonus score, use S bar and R bar on the spare flipflop as the debouncer. David
__________________
Can't afford the volcanic island yet, but the plans for my monorail and the goons' uniforms are done |
5th Apr 2021, 3:45 pm | #9 |
Guest
Posts: n/a
|
Re: Logic latch
|
5th Apr 2021, 4:19 pm | #10 |
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,298
|
Re: Logic latch
An alternate way to create a bistable latch with a single non inverting gate, for example 74hct08. Approx 4k7 resistor from the output to the input, then drive the input with either an spdt switch from 0v or 5v, or drive it with a tristate output. This can also be used as a bus hold circuit to avoid floating inputs.
Similar circuit is possible by adding positive feedback to a comparator or op amp. Last edited by Mark1960; 5th Apr 2021 at 4:24 pm. Reason: Added note on comparator or opamp. |
5th Apr 2021, 8:37 pm | #11 |
Octode
Join Date: Jul 2018
Location: Worthing, West Sussex, UK.
Posts: 1,005
|
Re: Logic latch
Merlin, that latching relay cct. is very clever- thanks, I may use it.
|
5th Apr 2021, 9:42 pm | #12 |
Nonode
Join Date: Dec 2012
Location: Kirk Michael, Isle of Man
Posts: 2,350
|
Re: Logic latch
You did include mechanical relay in your original post, so surely all you need is a relay with an extra NO contact, and take an extra feed to that contact back to the coil. Switch on, relay latches. Every common work space with motors is full on them.
Les. Last edited by MotorBikeLes; 5th Apr 2021 at 9:43 pm. Reason: added phrase for clarity. |
5th Apr 2021, 10:23 pm | #13 |
Dekatron
Join Date: Jan 2012
Location: Brentwood, Essex, UK.
Posts: 5,349
|
Re: Logic latch
That would certainly provide 'latch on' operation, but I read the original request as needing 'Turn On' and 'Turn Off' on sucessive presses of a single push-button switch. Using a second set of contacts of a conventional relay to latch it on would require a second NC switch to interrupt the coil current to turn it off. There is a special design of relay (Carpenter relay) that changes state with successive momentary energisations. They seem to be almost unknown in the UK but are commonly used in France for controlling lights from more than two positions using momentary operation push button switches. The 4 terminal intermediate mains switch for operating lights from three or more positions using three core cables is unknown in France.
Last edited by emeritus; 5th Apr 2021 at 10:27 pm. Reason: typos |
5th Apr 2021, 10:26 pm | #14 |
Octode
Join Date: Jun 2013
Location: Huddersfield, West Yorkshire, UK.
Posts: 1,795
|
Re: Logic latch
Hi Peeps..... Lots to go at..... Thanks.... I will get the test bed out tomorrow and give the "D" bistables a whirl. Tony.. It is a single switch that will toggle.. On and Off as in 2 pushes.
__________________
Should get out more. Regards Wendy G8BZY |
6th Apr 2021, 4:46 am | #15 |
Dekatron
Join Date: Jun 2015
Location: Biggin Hill, London, UK.
Posts: 5,225
|
Re: Logic latch
Is the switch a simple normally-open contact or can it be a changeover contact?
|
6th Apr 2021, 12:06 pm | #16 |
Octode
Join Date: Jun 2013
Location: Huddersfield, West Yorkshire, UK.
Posts: 1,795
|
Re: Logic latch
Hi Tony. Its a simple "Make" only not 2 way. I made a pcb with 4 make only to fit in the space where mechanical latch switches were previously in the Eddy EC10. Thanks for asking
__________________
Should get out more. Regards Wendy G8BZY |
6th Apr 2021, 8:22 pm | #17 |
Nonode
Join Date: Dec 2012
Location: Kirk Michael, Isle of Man
Posts: 2,350
|
Re: Logic latch
Regarding #13, I recall the "Elliot-Satchwell" control system on our intermittent gas kilns installed in 1967 included Carpenter relays. From memory, a negative supply gave one direction, a positive supply the opposite. No supply, centre position with no output. The system involved a proportional valve output which positioned itself somewhere between 1 (low gas) and 10 (high gas). The controller itself was two term (proportional plus integral), suitably modified from a Satchwell air conditioning system.
Les. |
6th Apr 2021, 9:14 pm | #18 |
Octode
Join Date: Jun 2013
Location: Huddersfield, West Yorkshire, UK.
Posts: 1,795
|
Re: Logic latch
Hi peeps....I have decided to use a PIC as there are now 3 channels required... saves logic chips.. if I use a 16F84..... not much programme memory needed.. Thanks anyways for your inputs.
__________________
Should get out more. Regards Wendy G8BZY |
7th Apr 2021, 11:35 am | #19 | |
Dekatron
Join Date: Feb 2007
Location: Leominster, Herefordshire, UK.
Posts: 16,536
|
Re: Logic latch
Quote:
Yes, but the contacts in those switches were pretty meaty compared to those in a little pushbutton, and they still needed to be replaced after about 400 operating hours.
__________________
....__________ ....|____||__|__\_____ .=.| _---\__|__|_---_|. .........O..Chris....O |
|