On the Subject of Simon Stops

If you don't hear something, think quick, or you might be hearing something real loud real soon...

Table A: Normal Input


Stage 1Stage 2Stage 3
Original
Color
RedBlue***Yellow
Orange***YellowOrange
YellowYellow***Green
GreenRedViolet***
BlueVioletOrange***
Violet***BlueRed

*** Rotate the original color by one clockwise for each battery on the bomb.

Table B: Control Input

Figure out the number for each stage below, add that number to the final digit of the serial number, then take that sum modulo 10 (divide it by 10 and take the remainder) and apply it to the following chart to get the stage's Control Input.

Stage 1: Number of batteries times number of serial number consonants.
Stage 2: (Number of ports times 2) plus battery holders.
Stage 3: Two plus the number of indicators, with lit indicators counting as three.

Sum Modulo 10Stage 1Stage 2Stage 3
0SC1POC
11NNP1N
2PSPP1P
31PSCNS
42NOC2P
5OCPSPP
6NS2PPS
72P1NSC
8PPNSNP
9NP2N2N

1N, 2N: 1 or 2 colors next (that is, clockwise) from the previously pressed button.
1P, 2P: 1 or 2 colors previous (that is, counterclockwise) from the previously pressed button.
NP, PP: Next or previous (clock/counterclock) primary color (Red, Yellow, Blue) from the previously pressed button.
NS, PS: Next or previous (clock/counterclock) secondary color (Orange, Green, Violet) from the previously pressed button.
OC: Opposite color (that is, three clockwise) of the previously pressed button.
SC: Same color as the previously pressed button.