Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #400315 > unrolled thread

Buffer as switch debounce

Started byJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
First post2016-02-25 08:16 -0700
Last post2016-02-26 12:05 -0600
Articles 20 on this page of 28 — 10 participants

Back to article view | Back to sci.electronics.design


Contents

  Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 08:16 -0700
    Re: Buffer as switch debounce Rob <nomail@example.com> - 2016-02-25 15:40 +0000
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 09:08 -0700
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 09:16 -0700
        Re: Buffer as switch debounce Rob <nomail@example.com> - 2016-02-25 19:21 +0000
          Re: Buffer as switch debounce "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-02-25 15:44 -0600
            Re: Buffer as switch debounce bitrex <bitrex@de.lete.earthlink.net> - 2016-02-26 09:55 -0500
              Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-26 08:34 -0700
    Re: Buffer as switch debounce legg <legg@nospam.magma.ca> - 2016-02-25 11:14 -0500
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 09:20 -0700
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 10:15 -0700
    Re: Buffer as switch debounce John Larkin <jjlarkin@highlandtechnology.com> - 2016-02-25 08:19 -0800
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 09:22 -0700
    Re: Buffer as switch debounce John Devereux <john@devereux.me.uk> - 2016-02-25 16:22 +0000
    Re: Buffer as switch debounce mkr5000 <mikerbgr@gmail.com> - 2016-02-25 08:34 -0800
      Re: Buffer as switch debounce John Larkin <jjlarkin@highlandtechnology.com> - 2016-02-25 09:03 -0800
        Re: Buffer as switch debounce Piotr Wyderski <peter.pan@neverland.mil> - 2016-02-25 18:19 +0100
          Re: Buffer as switch debounce John Larkin <jjlarkin@highlandtechnology.com> - 2016-02-25 09:30 -0800
        Re: Buffer as switch debounce mkr5000 <mikerbgr@gmail.com> - 2016-02-25 12:35 -0800
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 14:12 -0700
        Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 15:16 -0700
    Re: Buffer as switch debounce Joe Chisolm <jchisolm6@earthlink.net> - 2016-02-25 11:14 -0600
      Re: Buffer as switch debounce John Larkin <jjlarkin@highlandtechnology.com> - 2016-02-25 09:33 -0800
        Re: Buffer as switch debounce Joe Chisolm <jchisolm6@earthlink.net> - 2016-02-26 12:04 -0600
          Re: Buffer as switch debounce John Larkin <jjlarkin@highlandtechnology.com> - 2016-02-26 21:53 -0800
            Re: Buffer as switch debounce Joe Chisolm <jchisolm6@earthlink.net> - 2016-02-27 13:02 -0600
      Re: Buffer as switch debounce Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-02-25 10:44 -0700
        Re: Buffer as switch debounce Joe Chisolm <jchisolm6@earthlink.net> - 2016-02-26 12:05 -0600

Page 1 of 2  [1] 2  Next page →


#400315 — Buffer as switch debounce

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 08:16 -0700
SubjectBuffer as switch debounce
Message-ID<ek6ucbl3b0j8dmm4oiiariaegc5c15chlu@4ax.com>
Buffer as switch debounce, originally posted on S.E.B:

Do it with an SPST pushbutton switch, get debounce AND toggling...

<http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [next] | [standalone]


#400317

FromRob <nomail@example.com>
Date2016-02-25 15:40 +0000
Message-ID<slrnncu839.383.nomail@xs9.xs4all.nl>
In reply to#400315
Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
> Buffer as switch debounce, originally posted on S.E.B:
>
> Do it with an SPST pushbutton switch, get debounce AND toggling...
>
> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>

Dave Jones crafted a schematic that is much simpler than that.
Of course you need to sit through a 45 minute video on youtube
to get it, but you can fast-forward until you see the schematic.

[toc] | [prev] | [next] | [standalone]


#400318

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 09:08 -0700
Message-ID<qm9ucbhaca0uih8dsvs1e8trbccnmideah@4ax.com>
In reply to#400317
On 25 Feb 2016 15:40:25 GMT, Rob <nomail@example.com> wrote:

>Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>> Buffer as switch debounce, originally posted on S.E.B:
>>
>> Do it with an SPST pushbutton switch, get debounce AND toggling...
>>
>> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>
>Dave Jones crafted a schematic that is much simpler than that.
>Of course you need to sit through a 45 minute video on youtube
>to get it, but you can fast-forward until you see the schematic.

Link?
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400319

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 09:16 -0700
Message-ID<q5aucbt8tu9ekt58j9p96jrusk1o139pck@4ax.com>
In reply to#400317
On 25 Feb 2016 15:40:25 GMT, Rob <nomail@example.com> wrote:

>Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>> Buffer as switch debounce, originally posted on S.E.B:
>>
>> Do it with an SPST pushbutton switch, get debounce AND toggling...
>>
>> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>
>Dave Jones crafted a schematic that is much simpler than that.
>Of course you need to sit through a 45 minute video on youtube
>to get it, but you can fast-forward until you see the schematic.

Found it.  I wouldn't call that "simpler".
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400361

FromRob <nomail@example.com>
Date2016-02-25 19:21 +0000
Message-ID<slrnncul10.qms.nomail@xs9.xs4all.nl>
In reply to#400319
Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
> On 25 Feb 2016 15:40:25 GMT, Rob <nomail@example.com> wrote:
>
>>Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>>> Buffer as switch debounce, originally posted on S.E.B:
>>>
>>> Do it with an SPST pushbutton switch, get debounce AND toggling...
>>>
>>> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>>
>>Dave Jones crafted a schematic that is much simpler than that.
>>Of course you need to sit through a 45 minute video on youtube
>>to get it, but you can fast-forward until you see the schematic.
>
> Found it.  I wouldn't call that "simpler".

Well, 3 transistors, 4 resistors and 1 cap versus your 2 ICs, 2
resistors and 1 cap.  And it can source some current at the output.
(it is intended to be a power on/off switch)

[toc] | [prev] | [next] | [standalone]


#400381

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2016-02-25 15:44 -0600
Message-ID<nansel$lf5$1@dont-email.me>
In reply to#400361
"Rob" <nomail@example.com> wrote in message 
news:slrnncul10.qms.nomail@xs9.xs4all.nl...
>>>Dave Jones crafted a schematic that is much simpler than that.
>>>Of course you need to sit through a 45 minute video on youtube
>>>to get it, but you can fast-forward until you see the schematic.
>>
>> Found it.  I wouldn't call that "simpler".
>
> Well, 3 transistors, 4 resistors and 1 cap versus your 2 ICs, 2
> resistors and 1 cap.  And it can source some current at the output.
> (it is intended to be a power on/off switch)

Dave's isn't static: it depends upon a cap holding state.  If it's the one 
I'm thinking of.

If you prefer discrete, this could be implemented with four transistors (two 
for a Schmitt trigger/buffer, two for the divider -- a common-pulsed 
bistable multivibrator type), or a few more to get reasonable (TTL/CMOS) 
output logic levels or lower power consumption.

If you can arrange the bistable to exhibit hold-off (so it doesn't respond 
to extra input pulses for a duration), the Schmitt could be skipped.  I'm 
not sure offhand if that can work.

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: http://seventransistorlabs.com 

[toc] | [prev] | [next] | [standalone]


#400476

Frombitrex <bitrex@de.lete.earthlink.net>
Date2016-02-26 09:55 -0500
Message-ID<JHZzy.22813$_24.15566@fx41.iad>
In reply to#400381
On 02/25/2016 04:44 PM, Tim Williams wrote:
> "Rob" <nomail@example.com> wrote in message
> news:slrnncul10.qms.nomail@xs9.xs4all.nl...
>>>> Dave Jones crafted a schematic that is much simpler than that.
>>>> Of course you need to sit through a 45 minute video on youtube
>>>> to get it, but you can fast-forward until you see the schematic.
>>>
>>> Found it.  I wouldn't call that "simpler".
>>
>> Well, 3 transistors, 4 resistors and 1 cap versus your 2 ICs, 2
>> resistors and 1 cap.  And it can source some current at the output.
>> (it is intended to be a power on/off switch)
>
> Dave's isn't static: it depends upon a cap holding state.  If it's the
> one I'm thinking of.
>
> If you prefer discrete, this could be implemented with four transistors
> (two for a Schmitt trigger/buffer, two for the divider -- a
> common-pulsed bistable multivibrator type), or a few more to get
> reasonable (TTL/CMOS) output logic levels or lower power consumption.
>
> If you can arrange the bistable to exhibit hold-off (so it doesn't
> respond to extra input pulses for a duration), the Schmitt could be
> skipped.  I'm not sure offhand if that can work.
>
> Tim
>

If I'm not wrong it looks like you could build Jim's circuit entirely 
out of the 4 sections of a 4093 Schmitt NAND gate.

The 4093 is pretty baller for a lot of things...

[toc] | [prev] | [next] | [standalone]


#400484

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-26 08:34 -0700
Message-ID<34s0db5b0goen824f9h685mm4ev8tu1a5p@4ax.com>
In reply to#400476
On Fri, 26 Feb 2016 09:55:36 -0500, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 02/25/2016 04:44 PM, Tim Williams wrote:
>> "Rob" <nomail@example.com> wrote in message
>> news:slrnncul10.qms.nomail@xs9.xs4all.nl...
>>>>> Dave Jones crafted a schematic that is much simpler than that.
>>>>> Of course you need to sit through a 45 minute video on youtube
>>>>> to get it, but you can fast-forward until you see the schematic.
>>>>
>>>> Found it.  I wouldn't call that "simpler".
>>>
>>> Well, 3 transistors, 4 resistors and 1 cap versus your 2 ICs, 2
>>> resistors and 1 cap.  And it can source some current at the output.
>>> (it is intended to be a power on/off switch)
>>
>> Dave's isn't static: it depends upon a cap holding state.  If it's the
>> one I'm thinking of.
>>
>> If you prefer discrete, this could be implemented with four transistors
>> (two for a Schmitt trigger/buffer, two for the divider -- a
>> common-pulsed bistable multivibrator type), or a few more to get
>> reasonable (TTL/CMOS) output logic levels or lower power consumption.
>>
>> If you can arrange the bistable to exhibit hold-off (so it doesn't
>> respond to extra input pulses for a duration), the Schmitt could be
>> skipped.  I'm not sure offhand if that can work.
>>
>> Tim
>>
>
>If I'm not wrong it looks like you could build Jim's circuit entirely 
>out of the 4 sections of a 4093 Schmitt NAND gate.
>
>The 4093 is pretty baller for a lot of things...

You don't need Schmitt.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400320

Fromlegg <legg@nospam.magma.ca>
Date2016-02-25 11:14 -0500
Message-ID<c2aucbdfcrdsdtn61mgab8k4h8j95t3e70@4ax.com>
In reply to#400315
On Thu, 25 Feb 2016 08:16:49 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>Buffer as switch debounce, originally posted on S.E.B:
>
>Do it with an SPST pushbutton switch, get debounce AND toggling...
>
><http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>		
>                                        ...Jim Thompson

Power-on state?

RL

[toc] | [prev] | [next] | [standalone]


#400322

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 09:20 -0700
Message-ID<3aaucb9buqcskpoa6al2ug083cumgspt98@4ax.com>
In reply to#400320
On Thu, 25 Feb 2016 11:14:25 -0500, legg <legg@nospam.magma.ca> wrote:

>On Thu, 25 Feb 2016 08:16:49 -0700, Jim Thompson
><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>
>>Buffer as switch debounce, originally posted on S.E.B:
>>
>>Do it with an SPST pushbutton switch, get debounce AND toggling...
>>
>><http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>>		
>>                                        ...Jim Thompson
>
>Power-on state?
>
>RL

Picky! Picky! Go back to the SPDT approach... or add a POR to the
D-FLOP.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400337

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 10:15 -0700
Message-ID<4kducbdqoc1rjbhar185vq48q4h9m68rgl@4ax.com>
In reply to#400320
On Thu, 25 Feb 2016 11:14:25 -0500, legg <legg@nospam.magma.ca> wrote:

>On Thu, 25 Feb 2016 08:16:49 -0700, Jim Thompson
><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>
>>Buffer as switch debounce, originally posted on S.E.B:
>>
>>Do it with an SPST pushbutton switch, get debounce AND toggling...
>>
>><http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>>		
>>                                        ...Jim Thompson
>
>Power-on state?
>
>RL

So add a POR...

<http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_POR_2016-02-25.png>
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400321

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-02-25 08:19 -0800
Message-ID<gbaucb5512oq0686kukuuef7qcgtndfl80@4ax.com>
In reply to#400315
On Thu, 25 Feb 2016 08:16:49 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>Buffer as switch debounce, originally posted on S.E.B:
>
>Do it with an SPST pushbutton switch, get debounce AND toggling...
>
><http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>		
>                                        ...Jim Thompson

Why waste the other half of that flop?

https://dl.dropboxusercontent.com/u/53724080/Circuits/Timing/Debounce.JPG


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#400325

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 09:22 -0700
Message-ID<cgaucbdqtoqpci4pqrehmme2lsjtobej07@4ax.com>
In reply to#400321
On Thu, 25 Feb 2016 08:19:23 -0800, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

>On Thu, 25 Feb 2016 08:16:49 -0700, Jim Thompson
><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>
>>Buffer as switch debounce, originally posted on S.E.B:
>>
>>Do it with an SPST pushbutton switch, get debounce AND toggling...
>>
>><http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>>		
>>                                        ...Jim Thompson
>
>Why waste the other half of that flop?
>
>https://dl.dropboxusercontent.com/u/53724080/Circuits/Timing/Debounce.JPG

It takes a SPDT switch, which the OP opined he's like to be rid of.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#400324

FromJohn Devereux <john@devereux.me.uk>
Date2016-02-25 16:22 +0000
Message-ID<87h9gw92vc.fsf@devereux.me.uk>
In reply to#400315
Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> writes:

> Buffer as switch debounce, originally posted on S.E.B:
>
> Do it with an SPST pushbutton switch, get debounce AND toggling...
>
> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>

I did this one (sorry not been following thread)

  <http://ee.devereux.me.uk/toggle.png>

It has indeterminate startup I think (did not matter for this).



-- 

John Devereux

[toc] | [prev] | [next] | [standalone]


#400327

Frommkr5000 <mikerbgr@gmail.com>
Date2016-02-25 08:34 -0800
Message-ID<b78b3e24-d81b-476c-b2c7-dde943e89014@googlegroups.com>
In reply to#400315
On Thursday, February 25, 2016 at 10:16:55 AM UTC-5, Jim Thompson wrote:
> Buffer as switch debounce, originally posted on S.E.B:
> 
> Do it with an SPST pushbutton switch, get debounce AND toggling...
> 
> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
> 		
>                                         ...Jim Thompson
> -- 
> | James E.Thompson                                 |    mens     |
> | Analog Innovations                               |     et      |
> | Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
> | San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
> | Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
> | E-mail Icon at http://www.analog-innovations.com |    1962     |
>              
> I love to cook with wine.     Sometimes I even put it in the food.

I have something right now that if I mess with it enough I can get a bad contact although most of time it's fine. I'm using an optoisolator with an npn output.
The output has a pullup resistor on it and a .1uf cap to ground and that is connected to a pin on a raspberry pi.

99% of the time it's fine but if I let it idle a long time and then give the switch a sloppy hit I can have a problem.

My question is -- maybe I can find an opto that has a smoother output? Don't they make some that have more sophisticated logic outputs? You guys may know.
That would be great because I could just plug in a better part.

[toc] | [prev] | [next] | [standalone]


#400334

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-02-25 09:03 -0800
Message-ID<vocucbdq96629qq7jqvjvh6rdbptq8a5nd@4ax.com>
In reply to#400327
On Thu, 25 Feb 2016 08:34:49 -0800 (PST), mkr5000 <mikerbgr@gmail.com>
wrote:

>On Thursday, February 25, 2016 at 10:16:55 AM UTC-5, Jim Thompson wrote:
>> Buffer as switch debounce, originally posted on S.E.B:
>> 
>> Do it with an SPST pushbutton switch, get debounce AND toggling...
>> 
>> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>> 		
>>                                         ...Jim Thompson
>> -- 
>> | James E.Thompson                                 |    mens     |
>> | Analog Innovations                               |     et      |
>> | Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
>> | San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
>> | Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
>> | E-mail Icon at http://www.analog-innovations.com |    1962     |
>>              
>> I love to cook with wine.     Sometimes I even put it in the food.
>
>I have something right now that if I mess with it enough I can get a bad contact although most of time it's fine. I'm using an optoisolator with an npn output.
>The output has a pullup resistor on it and a .1uf cap to ground and that is connected to a pin on a raspberry pi.
>
>99% of the time it's fine but if I let it idle a long time and then give the switch a sloppy hit I can have a problem.
>
>My question is -- maybe I can find an opto that has a smoother output? Don't they make some that have more sophisticated logic outputs? You guys may know.
>That would be great because I could just plug in a better part.

Why not software debounce?

There are opto schmitts. Do you actually need the isolation? I see
people use optos grounded on both sides, as if they have some magical
filtering properties, which they don't.




-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#400339

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2016-02-25 18:19 +0100
Message-ID<nand2o$k2s$1@node2.news.atman.pl>
In reply to#400334
John Larkin wrote:

> There are opto schmitts. Do you actually need the isolation? I see
> people use optos grounded on both sides, as if they have some magical
> filtering properties, which they don't.

Weird EMP protection? In the worst case the opto dies, not the MCU.
A pair of depletion mode FETs would be better.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#400344

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-02-25 09:30 -0800
Message-ID<gheucb133f3jgs75c0b08to4suqrvimo4r@4ax.com>
In reply to#400339
On Thu, 25 Feb 2016 18:19:19 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>John Larkin wrote:
>
>> There are opto schmitts. Do you actually need the isolation? I see
>> people use optos grounded on both sides, as if they have some magical
>> filtering properties, which they don't.
>
>Weird EMP protection? 

No, just bad design.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#400375

Frommkr5000 <mikerbgr@gmail.com>
Date2016-02-25 12:35 -0800
Message-ID<bf9e6360-0af7-4c8b-ad65-b4ef2b73b0d1@googlegroups.com>
In reply to#400334
On Thursday, February 25, 2016 at 12:03:42 PM UTC-5, John Larkin wrote:
> On Thu, 25 Feb 2016 08:34:49 -0800 (PST), mkr5000 <mikerbgr@gmail.com>
> wrote:
> 
> >On Thursday, February 25, 2016 at 10:16:55 AM UTC-5, Jim Thompson wrote:
> >> Buffer as switch debounce, originally posted on S.E.B:
> >> 
> >> Do it with an SPST pushbutton switch, get debounce AND toggling...
> >> 
> >> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
> >> 		
> >>                                         ...Jim Thompson
> >> -- 
> >> | James E.Thompson                                 |    mens     |
> >> | Analog Innovations                               |     et      |
> >> | Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
> >> | San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
> >> | Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
> >> | E-mail Icon at http://www.analog-innovations.com |    1962     |
> >>              
> >> I love to cook with wine.     Sometimes I even put it in the food.
> >
> >I have something right now that if I mess with it enough I can get a bad contact although most of time it's fine. I'm using an optoisolator with an npn output.
> >The output has a pullup resistor on it and a .1uf cap to ground and that is connected to a pin on a raspberry pi.
> >
> >99% of the time it's fine but if I let it idle a long time and then give the switch a sloppy hit I can have a problem.
> >
> >My question is -- maybe I can find an opto that has a smoother output? Don't they make some that have more sophisticated logic outputs? You guys may know.
> >That would be great because I could just plug in a better part.
> 
> Why not software debounce?
> 
> There are opto schmitts. Do you actually need the isolation? I see
> people use optos grounded on both sides, as if they have some magical
> filtering properties, which they don't.
> 
> 
> 
> 
> -- 
> 
> John Larkin         Highland Technology, Inc
> 
> lunatic fringe electronics

opto schmitt is nice -- that would help a lot. using optos because this could have long cable lengths and maybe in industrial environment. hate to expose the 
I/O pins of a Raspberry PI to that.  thanks.

[toc] | [prev] | [next] | [standalone]


#400378

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2016-02-25 14:12 -0700
Message-ID<nerucbd7s6egvkqgd61b7cnpdt2sk7ts10@4ax.com>
In reply to#400327
On Thu, 25 Feb 2016 08:34:49 -0800 (PST), mkr5000 <mikerbgr@gmail.com>
wrote:

>On Thursday, February 25, 2016 at 10:16:55 AM UTC-5, Jim Thompson wrote:
>> Buffer as switch debounce, originally posted on S.E.B:
>> 
>> Do it with an SPST pushbutton switch, get debounce AND toggling...
>> 
>> <http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>
>> 		
>>                                         ...Jim Thompson
>> -- 
>> | James E.Thompson                                 |    mens     |
>> | Analog Innovations                               |     et      |
>> | Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
>> | San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
>> | Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
>> | E-mail Icon at http://www.analog-innovations.com |    1962     |
>>              
>> I love to cook with wine.     Sometimes I even put it in the food.
>
>I have something right now that if I mess with it enough I can get a bad contact although most of time it's fine. I'm using an optoisolator with an npn output.
>The output has a pullup resistor on it and a .1uf cap to ground and that is connected to a pin on a raspberry pi.
>
>99% of the time it's fine but if I let it idle a long time and then give the switch a sloppy hit I can have a problem.
>
>My question is -- maybe I can find an opto that has a smoother output? Don't they make some that have more sophisticated logic outputs? You guys may know.
>That would be great because I could just plug in a better part.

Put the NPN of your opto in place of the switch in this drawing...

<http://www.analog-innovations.com/SED/SPST_Toggling_Switch_Debounce_2016-02-25.png>

Depending on your application... if you don't need on/off toggling,
just eliminate the D-Flop.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | sci.electronics.design


csiph-web