Go Down

Topic: Are 64 reed switches possible to wire separately? (Read 2383 times) previous topic - next topic

Grumpy_Mike

#30
Jul 20, 2017, 06:57 am Last Edit: Jul 20, 2017, 06:58 am by Grumpy_Mike
You were told earlier in the thread about this and you chose to ignore it.

When a piece disappears from the sensor and amperes in a new position you assum it is the same pice being moved. So you update the array that holds the board position accordingly.
But it is a waste of time worrying about the hardware until you have an idea about how it is going to drive your software. What exactly do you want the finished project to do?

Is it to monitor a two player game or is it to act as an opponent?

Resistors are placed on the column or row pins of the matrix depending on how you wire it up.

Restok

Is it to monitor a two player game or is it to act as an opponent?

Resistors are placed on the column or row pins of the matrix depending on how you wire it up.
Monitor a two player game.

I was just gonna solder the wires from the column and rows to the arduino digital pins. Would that not work?

Btw, here's the model of the matrix I found online:




Grumpy_Mike

Yes that would work.

 Because of the position of the diodes I would suggest that the rows have resistors connected to ground and the Arduino input, and the columns have the walking one on them.

dougp

Monitor a two player game.
This implies two different color pieces - red/black, white/black, whatever - else how would the players keep track of who's who? Yet, curiously, you seem indifferent to having distinguishing colors for the virtual board. Please explain.
I don't trust atoms.  They make up everything.

No private consultations undertaken!

dannable

This implies two different color pieces - red/black, white/black, whatever - else how would the players keep track of who's who? Yet, curiously, you seem indifferent to having distinguishing colors for the virtual board. Please explain.
If you have a red piece on square A1, that piece disappears and one appears on B2, what's the chance that the colour has changed?

Restok

Yes that would work.

 Because of the position of the diodes I would suggest that the rows have resistors connected to ground and the Arduino input, and the columns have the walking one on them.
Sorry, what do you mean by "walking ones"?

dougp

If you have a red piece on square A1, that piece disappears and one appears on B2, what's the chance that the colour has changed?
Probably nil. But, after nine moves how is one to determine at a glance which pieces belong to which player if there's no color difference?
I don't trust atoms.  They make up everything.

No private consultations undertaken!

dannable

Probably nil. But, after nine moves how is one to determine at a glance which pieces belong to which player if there's no color difference?
Sorry, missed the part where it shifted from being an lcd screen to an led matrix...

One assumes an array of RGB leds?

Grumpy_Mike

Sorry, what do you mean by "walking ones"?
It is the way you access a matrix either read or write.
This is a write matrix but a read works just the same, only a walking one and inputs.
http://www.thebox.myzen.co.uk/Workshop/LED_Matrix.html

Go Up