Effect of lengh of wires in matrix

Hi,

I've created a small prototype where I connected 64 tiny dip-switches in a matrix of 8x8. Using a serial in shift register and a serial out shift register I'm scanning through these buttons to check which one is pressed. This works perfectly.

Now I'm gonna buy a lot more and bigger buttons (33mm, 256 pieces). The matrix will be approximately 100cm x 100cm. As I'm not very experienced in electronics I'm curious how this will afffect the workings of my circuit.

I'm using a PIC16f628 for the scanning and I'm communication with a PC using RS-232.

Thanks, Roxlu

Reply to
roxlu
Loading thread data ...

Sounds like a good design. My money is on it working just fine. There is a built-in lag in reading via the shift registers.

Luhan

Luhan

Reply to
Luhan

But are those long wires to all those butttons (256) in a 100cm x 100cm wooden plate gonna interfere my circuit in any way?

Thankls

Reply to
roxlu

The shift register used for input should have 330 ohm pull-up resistors to prevent noise pickup. The output shift register should then drive one line low at a time.

You may also wish to 'debounce' the input by reading the input s/r several times in a row for each change of the output s/r.

If your environment has a lot of electrical noise, put a grounded layer of foil on the back of the wooden plate.

Good luck, Luhan

Reply to
Luhan

When I built my pipe organ, the keyboards were 8x8 keying across 36" (91cm) but only 3" wide. The scan rate was 3kHz. The matrix board was connected to the microcontroller board with 18" of ribbon cable. Pullup or pulldown (whatever is appropriate) resistors are needed. The stop knob matrix was across the width of the console (60") and also had no issues for the 13 years I had it. The exposed wiring did have a tendency to make some RFI as I didn't shield anything. It mainly messed up a nearby AM radio. The controllers were 5 8031s.

I was concerned about pulse rise/fall times and all that capacitance from the ribbon cables so the 'scanning' of the stop knobs was not raise 1 bit high and look for what comes back. Instead, the switches all came into tri-state buffers and the buffers were enabled in sequence. The software was identical but the long lines in the ribbons were not being pulsed.

formatting link

GG

Reply to
Glenn Gundlach

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.