A while ago I made a bargain purchasing a couple of Aeroflex-Weinschel step attenuators (models 150T/11 and 150T/70) for 20EUR each.
The idea was to implement a bench step attenuator for my lab.
Here is the project.
Those attenuators offer serial and parallel digital interface. I choose to use the parallel interface protocol.
Each attenuator is controlled by 4 bits (a nibble), so, with the help of the following map, I built an Arduino sketch to drive the attenuators by a rotary encoder:
The table on the left simply lists all the wires coming out of the attenuators with color and function.