Electronics Forums

Electronics Forums > Newsgroups > Electronics Newsgroups > Electronic Design > Capacitor for momentary switch?

Reply
Thread Tools Display Modes

Capacitor for momentary switch?

 
 
MrQuan
Guest
Posts: n/a
 
      02-21-2007, 05:33 AM
Dear all,


I'm a complete novice at electronics and need help selecting a
capacitor (I guess this is what I need).

I have a momentary switch that is wired to a controller board. The
controller has a resolution of one second, in that it scans it's
inputs once a second only. Sometimes when I push the button too fast,
the controller misses it and doesn't register the input.

I'm hoping there is a way to connect a capacitor into the switch
circuit so that it's held closed for longer than a second no matter
how fast I push the button, and therefore registering the input on the
controller without fail. I've measure 5VDC across the switching
connection, incase that information helps.

Can anyone share a solution for this problem I'm having? ...and
perhaps even suggest the right capacitor to use, if in fact a
capacitor will solve this?


Many thanks,
MrQuan

 
Reply With Quote
 
 
 
 
John Barrett
Guest
Posts: n/a
 
      02-21-2007, 06:55 AM

"MrQuan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Dear all,
>
>
> I'm a complete novice at electronics and need help selecting a
> capacitor (I guess this is what I need).
>
> I have a momentary switch that is wired to a controller board. The
> controller has a resolution of one second, in that it scans it's
> inputs once a second only. Sometimes when I push the button too fast,
> the controller misses it and doesn't register the input.
>
> I'm hoping there is a way to connect a capacitor into the switch
> circuit so that it's held closed for longer than a second no matter
> how fast I push the button, and therefore registering the input on the
> controller without fail. I've measure 5VDC across the switching
> connection, incase that information helps.
>
> Can anyone share a solution for this problem I'm having? ...and
> perhaps even suggest the right capacitor to use, if in fact a
> capacitor will solve this?
>
>
> Many thanks,
> MrQuan
>


Capacitor wont do it -- you need a pulse stretcher, which may be more
trouble than its worth.. you can make one with a 555 timer easy enough..
look for "one-shot" circuits where, when triggered, the circuit turns on for
a specific period of time, then resets and waits for the next trigger.


 
Reply With Quote
 
 
 
 
EdV
Guest
Posts: n/a
 
      02-21-2007, 01:42 PM
On Feb 20, 11:33 pm, "MrQuan" <mrqua...@hotmail.com> wrote:
> Dear all,
>
> I'm a complete novice at electronics and need help selecting a
> capacitor (I guess this is what I need).
>
> I have a momentary switch that is wired to a controller board. The
> controller has a resolution of one second, in that it scans it's
> inputs once a second only. Sometimes when I push the button too fast,
> the controller misses it and doesn't register the input.
>
> I'm hoping there is a way to connect a capacitor into the switch
> circuit so that it's held closed for longer than a second no matter
> how fast I push the button, and therefore registering the input on the
> controller without fail. I've measure 5VDC across the switching
> connection, incase that information helps.
>
> Can anyone share a solution for this problem I'm having? ...and
> perhaps even suggest the right capacitor to use, if in fact a
> capacitor will solve this?
>
> Many thanks,
> MrQuan


Using a toggle switch might work. Of course this may make operation a
little goofy but it is better than it not working at all.

 
Reply With Quote
 
John Fields
Guest
Posts: n/a
 
      02-21-2007, 02:01 PM
On 20 Feb 2007 21:33:35 -0800, "MrQuan" <(E-Mail Removed)>
wrote:

>Dear all,
>
>
>I'm a complete novice at electronics and need help selecting a
>capacitor (I guess this is what I need).
>
>I have a momentary switch that is wired to a controller board. The
>controller has a resolution of one second, in that it scans it's
>inputs once a second only. Sometimes when I push the button too fast,
>the controller misses it and doesn't register the input.
>
>I'm hoping there is a way to connect a capacitor into the switch
>circuit so that it's held closed for longer than a second no matter
>how fast I push the button, and therefore registering the input on the
>controller without fail. I've measure 5VDC across the switching
>connection, incase that information helps.
>
>Can anyone share a solution for this problem I'm having? ...and
>perhaps even suggest the right capacitor to use, if in fact a
>capacitor will solve this?


---
Since you know the controller's limitations, why not just hold the
switch down for longer than one second?


--
JF
 
Reply With Quote
 
MrQuan
Guest
Posts: n/a
 
      02-21-2007, 02:38 PM
On Feb 22, 12:01 am, John Fields <jfie...@austininstruments.com>
wrote:
> On 20 Feb 2007 21:33:35 -0800, "MrQuan" <mrqua...@hotmail.com>
> wrote:
>
>
>
> >Dear all,

>
> >I'm a complete novice at electronics and need help selecting a
> >capacitor (I guess this is what I need).

>
> >I have a momentary switch that is wired to a controller board. The
> >controller has a resolution of one second, in that it scans it's
> >inputs once a second only. Sometimes when I push the button too fast,
> >the controller misses it and doesn't register the input.

>
> >I'm hoping there is a way to connect a capacitor into the switch
> >circuit so that it's held closed for longer than a second no matter
> >how fast I push the button, and therefore registering the input on the
> >controller without fail. I've measure 5VDC across the switching
> >connection, incase that information helps.

>
> >Can anyone share a solution for this problem I'm having? ...and
> >perhaps even suggest the right capacitor to use, if in fact a
> >capacitor will solve this?

>
> ---
> Since you know the controller's limitations, why not just hold the
> switch down for longer than one second?
>
> --
> JF


Well, that's fine for me in the workshop, but this solution was really
aimed more at the people whos offices and buildings these are
installed in. The controller is used for HVAC and access control. I
have seen some of my colleagues label push buttons with "push and hold
for one second", I was just hoping for a more elegant approach!

 
Reply With Quote
 
MrQuan
Guest
Posts: n/a
 
      02-21-2007, 02:41 PM
On Feb 21, 11:42 pm, "EdV" <ed_vo...@my-deja.com> wrote:
> On Feb 20, 11:33 pm, "MrQuan" <mrqua...@hotmail.com> wrote:
>
>
>
> > Dear all,

>
> > I'm a complete novice at electronics and need help selecting a
> > capacitor (I guess this is what I need).

>
> > I have a momentary switch that is wired to a controller board. The
> > controller has a resolution of one second, in that it scans it's
> > inputs once a second only. Sometimes when I push the button too fast,
> > the controller misses it and doesn't register the input.

>
> > I'm hoping there is a way to connect a capacitor into the switch
> > circuit so that it's held closed for longer than a second no matter
> > how fast I push the button, and therefore registering the input on the
> > controller without fail. I've measure 5VDC across the switching
> > connection, incase that information helps.

>
> > Can anyone share a solution for this problem I'm having? ...and
> > perhaps even suggest the right capacitor to use, if in fact a
> > capacitor will solve this?

>
> > Many thanks,
> > MrQuan

>
> Using a toggle switch might work. Of course this may make operation a
> little goofy but it is better than it not working at all.


I was actually looking at different switch alternatives, but I think
for aesthetic reasons a push button style is my only option as it will
be mounted to a small panel on a wall.

 
Reply With Quote
 
MrQuan
Guest
Posts: n/a
 
      02-21-2007, 02:45 PM
On Feb 21, 4:55 pm, "John Barrett" <ke5c...@verizon.net> wrote:
> "MrQuan" <mrqua...@hotmail.com> wrote in message
>
> news:(E-Mail Removed) ups.com...
>
>
>
> > Dear all,

>
> > I'm a complete novice at electronics and need help selecting a
> > capacitor (I guess this is what I need).

>
> > I have a momentary switch that is wired to a controller board. The
> > controller has a resolution of one second, in that it scans it's
> > inputs once a second only. Sometimes when I push the button too fast,
> > the controller misses it and doesn't register the input.

>
> > I'm hoping there is a way to connect a capacitor into the switch
> > circuit so that it's held closed for longer than a second no matter
> > how fast I push the button, and therefore registering the input on the
> > controller without fail. I've measure 5VDC across the switching
> > connection, incase that information helps.

>
> > Can anyone share a solution for this problem I'm having? ...and
> > perhaps even suggest the right capacitor to use, if in fact a
> > capacitor will solve this?

>
> > Many thanks,
> > MrQuan

>
> Capacitor wont do it -- you need a pulse stretcher, which may be more
> trouble than its worth.. you can make one with a 555 timer easy enough..
> look for "one-shot" circuits where, when triggered, the circuit turns on for
> a specific period of time, then resets and waits for the next trigger.


I see how this solution would work, however as you say it looks like
more trouble than it's worth... I'll have to look at alternative
solutions I guess. I have been mounting neon indicators next to the
push buttons, so the user gets feed back whether they have actually
switched anything - and this seems to be working. I was just hoping,
if it were easy enough, to make it totally robust. Thanks

 
Reply With Quote
 
John Barrett
Guest
Posts: n/a
 
      02-21-2007, 03:52 PM

"MrQuan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> On Feb 22, 12:01 am, John Fields <jfie...@austininstruments.com>
> wrote:
>> On 20 Feb 2007 21:33:35 -0800, "MrQuan" <mrqua...@hotmail.com>
>> wrote:
>>
>>
>>
>> >Dear all,

>>
>> >I'm a complete novice at electronics and need help selecting a
>> >capacitor (I guess this is what I need).

>>
>> >I have a momentary switch that is wired to a controller board. The
>> >controller has a resolution of one second, in that it scans it's
>> >inputs once a second only. Sometimes when I push the button too fast,
>> >the controller misses it and doesn't register the input.

>>
>> >I'm hoping there is a way to connect a capacitor into the switch
>> >circuit so that it's held closed for longer than a second no matter
>> >how fast I push the button, and therefore registering the input on the
>> >controller without fail. I've measure 5VDC across the switching
>> >connection, incase that information helps.

>>
>> >Can anyone share a solution for this problem I'm having? ...and
>> >perhaps even suggest the right capacitor to use, if in fact a
>> >capacitor will solve this?

>>
>> ---
>> Since you know the controller's limitations, why not just hold the
>> switch down for longer than one second?
>>
>> --
>> JF

>
> Well, that's fine for me in the workshop, but this solution was really
> aimed more at the people whos offices and buildings these are
> installed in. The controller is used for HVAC and access control. I
> have seen some of my colleagues label push buttons with "push and hold
> for one second", I was just hoping for a more elegant approach!
>


OK -- solution number 2 -- get a dual flip-flop chip (74LS74)... button
hooks up to the Set line, which will "remember" the button press until the
processor reads the data and deliberatly resets the flip-flop by pulsing the
Reset line.. each chip will handle 2 buttons and no messy R/C timing needed.





 
Reply With Quote
 
Rich Grise
Guest
Posts: n/a
 
      02-21-2007, 06:04 PM
On Wed, 21 Feb 2007 06:38:53 -0800, MrQuan wrote:
> On Feb 22, 12:01 am, John Fields <jfie...@austininstruments.com>
>> ---
>> Since you know the controller's limitations, why not just hold the
>> switch down for longer than one second?

>
> Well, that's fine for me in the workshop, but this solution was really
> aimed more at the people whos offices and buildings these are
> installed in. The controller is used for HVAC and access control. I
> have seen some of my colleagues label push buttons with "push and hold
> for one second", I was just hoping for a more elegant approach!


Then that is definitely the way you want to leave it - it protects the
system from being turned on/off accidentally when somebody just bumps
the button.

Cheers!
Rich

 
Reply With Quote
 
Don Lancaster
Guest
Posts: n/a
 
      02-21-2007, 06:57 PM
MrQuan wrote:
> Dear all,
>
>
> I'm a complete novice at electronics and need help selecting a
> capacitor (I guess this is what I need).
>
> I have a momentary switch that is wired to a controller board. The
> controller has a resolution of one second, in that it scans it's
> inputs once a second only. Sometimes when I push the button too fast,
> the controller misses it and doesn't register the input.
>
> I'm hoping there is a way to connect a capacitor into the switch
> circuit so that it's held closed for longer than a second no matter
> how fast I push the button, and therefore registering the input on the
> controller without fail. I've measure 5VDC across the switching
> connection, incase that information helps.
>
> Can anyone share a solution for this problem I'm having? ...and
> perhaps even suggest the right capacitor to use, if in fact a
> capacitor will solve this?
>
>
> Many thanks,
> MrQuan
>

Have the pushbutton set a flip flop and the sampler reset it.


--
Many thanks,

Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: (E-Mail Removed)

Please visit my GURU's LAIR web site at http://www.tinaja.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Momentary closure (20ms), wait 1 second, and momentary close (20ms) BBourdage General Electronics Chat 11 02-11-2013 04:50 PM
Turning a light on and off with momentary switch Chris W Electronic Basics 47 02-28-2005 01:11 PM
Double throw momentary switch question Hal Leemux Electronic Basics 14 10-01-2004 08:48 PM
invert signal from momentary switch Russ Caslis Electronic Basics 4 07-11-2004 01:49 PM
Momentary connection with rotary switch Jake Electronic Basics 0 04-08-2004 11:12 PM