Give binary values to my arduino inputs

If you mean how to give each cassette a unique combination of 6 inputs to the Arduino then that question has been answered

If not, then where are you stuck ?