multipin configuration

http://in.element14.com/multicomp/mcrh4 … dp/1522031

I am using 2 of above product for section of speed,mode , direction etc totally it acquires 8 pins . i wanna reduce it to 2 pins .

I tried it using pull up resistor technique where i found degrade in value after some time.so it changed my setting .

I wanna know how i can achieve this

using Arduino UNO board.

Two ideas come to mind:

  • Use an I2C port expander like the PCF8574

  • Use a parallel in, serial out shift register like the 'LS165. This will need either three pins or you can make a load pulse out of an extra-wide clock pulse

/mike