Step six: connect to ball trough microswitch
1. Find the left-most trough microswitch.
2. Connect the Switch Pull Up Harness' alligator clip to the right side of the switch
3. Connect the Switch Digital Read Harness' alligator clip to the left side of the switch
Note: In case you are curious to know how this works (or how I think it works), the pinball switch matrix is sending pulses along the switch current. When the switch is closed, the switch matrix periodically grounds (completed the circuit) and the Arduino sense a LOW state from the Switch Digital Read Harness. This is "noisy" as the switch matrix is pulsing fast. Very fast. So over some period of time, the Arduino sense many LOW states and many HIGH states.
When a ball leaves the trough, the switch is open. The Switch Pull Up Harness is supplying power across the switch and the Switch Digital Read Harness will read only HIGH (mostly).
Based on the Arduino code, the Arduino is recording those states over .5 seconds and then checking to see how many LOWs it has recorded. This number goes up very quickly when the ball is in the trough and depressing the microswitch, and very slowly when the ball leaves the trough and the microswitch is not depressed. If you check out the Arduino Sketch, you'll see that there are some arbitrary numbers that I've set combined with some heuristics to determine the state of trough (ball in or ball out). Overall, it works, but sometimes it takes a little while for things to get working (perhaps due to need for electricity to flow downhill? I really don't know.) Even then, it does screw up occasionally. This is because the switch does ground when the ball is out of the trough due to (I think) other switches being activated (in the column/row).
A bit more on the resistors/pull up and pull down. There is a balance here. You need to supply some voltage across the switch for the arduino to sense when the switch is open, but not so much that it activates the entire column of switches. The pull down is needed to keep the digital read-in in a LOW state, but not so much that it cancels the pull-up. After trying many combinations with the resistors I had on hand (empirical science), the 1000ohm pull down / 200ohm pull up worked. Your results may vary, but post them here and add to the pool of knowledge.
More about pinball switch matrices: http://www.pinballnews.com/learn/matrix.html
IMG_3479.JPG
IMG_3476.JPG