Shop OBEX P1 Docs P2 Docs Learn Events
Multiple buttons on one input — Parallax Forums

Multiple buttons on one input

ArchiverArchiver Posts: 46,084
edited 2003-02-12 01:23 in General Discussion
Hi Tim,

You have the right idea, with multiple switches in
parallel each with a different resistor in series with
the switch. The resistors are all connected to one cap.
With a each single button push the RC value returned
will be different. Just use the schematic in the stamp
manual for the RC and insert the switches and multiple
resistors. You will need one resistor for a base RC
value, to represent no buttons pushed.

The other way is to setup a 555 timer and use buttons
to change the frequency out, which could be measured
with pulse in command.

Your choice.

Ron


*******************************************************
*********

Message: 22
Date: Tue, 11 Feb 2003 21:53:42 +0100
From: "TLD-NV" <peter.christiaen@s...>
Subject: 6 switches on 1 input pin

Hi,
I have a problem. I'm using a BS2P-24 pins and I only
have one "input" pin
left for my push buttons. Is it possible to create
something so my
controller would recognize which button has been
pressed? I thought that the
LOOKDOWN command would fit perfect. I think about
working with the formula
T=R.C (resistance and capacitor) but I haven't figured
out how I could
create it. Could anybody give me a program example also
a circuit example so
I can build my circuit board.

Kindly regards

Tim, a student from Belgium
Sign In or Register to comment.