foot pedal design

J

J D

Guest
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...
 
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:
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...
 
On 2006-03-14, J D <ne1@newhere.com> wrote:
Hey guys,

I have this keypad with 12 functions
....
What do you think?

A) is there a 12 line encoder? (I've seen 4-16 decoders, but not 16-4
encoders)
"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.

B) if i could use 2 wire protocols, what would be the way to do it? i2c,
rs232/485, others?
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
 

Welcome to EDABoard.com

Sponsor

Back
Top