Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
foot pedal design
- 03-14-2006
March 14, 2006, 3:16 am

Hey guys,
I have this keypad with 12 functions (ie 12 micro switches). It needs to
be hard wired with a cable length of 2 meters. RF/IR is out of the
question. The logic signals will go to a micro controller and will
perform functions depending on which button was pressed.
This means that my cable (connecting the keypad to the micro controller)
will need to be 14 core (including power and ground).
This is really not what, because to terminate 14 cores is really hard
work... (I'm lazy...)- not to mention the cost of a 14 pin DIN style
connector...
I'm thinking is it possible, somehow to encode the 12 lines of logic
down to maybe BCD or even 2 wire protocols. This would significantly
reduce my cable core count and makes it easier to assemble.
What do you think?
A) is there a 12 line encoder? (I've seen 4-16 decoders, but not 16-4
encoders)
B) if i could use 2 wire protocols, what would be the way to do it? i2c,
rs232/485, others?
C) dedicated micro-controller? -yuk...
thanks for any suggestion...

Re: foot pedal design
There are lots of ways but the one that comes to mind immediately is a
simple string of resistors fed back into the micros A/D. You can feed a
current through the string and measure the average voltage to determine
which pedal is pressed (just assuming one at a time at present). Of
course, in this arrangement you would need different value resistors.
Even without an A/D you can add a cap and just measure the RC time constant.
Oh yeah, and of course there are all the other methods using shift
registers, encoders, I2C, micros etc etc. But the resistor approach
means that you can implement a simple 2 wire daisy chain with each pedal
shorting out the it's resistor in the chain. That way you can tell if
the loop is intact and which pedal is pressed.
*Peter*
http://www.pbjtech.com /
J D wrote:


Re: foot pedal design

Actually you only need 2: power and the signal wire. You pull the signal
wire low with a resistor so the A/D sees ground normally, and the various
switches pull the line towards the supply voltage via different resistances.
The voltage seen is based on the ratio between the pull-down resistor and
the switch's pull-up resistor.

Re: foot pedal design

...
"priority encoder" you may need to couple two 8->3 prioroity encoders.
or use two 4->2 encoders one for row and one for column.

depends what's easiest to interface with the micro.
have you considred DTMF ?
how about a 555 that the buttons effect the timing of?
A few hunderedths of a second isn't going to be a big deal, is it?
Bye.
Jasen
Site Timeline
- » Charging batteries inside an appliance.
- — Next thread in » Electronics Down Under
-
- » Bucket Brigade Chip(s) Needed For Webelo Projects
- — Previous thread in » Electronics Down Under
-
- » Aussies Love EVs ?
- — Newest thread in » Electronics Down Under
-
- » Replacing NiCd batteries in an obsolete Uniden UH-052XR radio?
- — Last Updated thread in » Electronics Down Under
-
- » interferencja laser diodowy
- — The site's Newest Thread. Posted in » Electronics (Polish)
-