I'm looking at a coding scheme using 4 opto sensors to sense black/white bits.
I've decide I always want at least 2 'ones' in any code to make it more rugged, I also don't want the code 1111 for the same reason.
Now that gives 10 possible codes.
We miss out:-
0000
0001
0010
0100
1000
1111
But if I allow a re-positioning of the sensors to sense a possible 5 positions (say for different customers and their specific applications) that results in a possible 20 codes. (I've just down grade that from 25, as I don't want all 4 sensors to see 1s as it could be fooled by a solid black bar)
Obviously each set up of sensors can still only sense it's 10 variations, but the potential has been expanded with almost no additional complexity.
So what happens if I allowed 6 possible locations and so forth? Does it just become 30?
Is there some cunning mathematical expression to derive the number of codes or should I resort to pencil and paper?
Does anyone find this remotely interesting?
Del
Good Answers:
"Almost" Good Answers: