Hi all, new here - first time programming, soldering, and playing with an Arduino so please forgive my ignorance. I'm humbled by all of this.
I dove in with hopes of building an interactive chess board. I couldn't wrap my head around shift registers or multiplexers so I wired all 64 hall effect sensors to it's own pin on an Arduino Mega (aware of how silly this was - if you'd like to explain shift registers in plain english) Wiring took a while but I was able to write some code and test each sensor using the LedControl library on a MAX7219 LED matrix.
I have three questions.
-
The very last square on my 8x8 board is turning the LED on even without a magnet. does anyone know why this might be happening? The wiring is correct, I've checked for shorts using a multimeter, I've swapped out the sensor.. If I delete the code for that last square the light turns off. I used the same code for all the other 63 squares and they work fine.
-
Any suggestions to make this code more efficient? I'm sure the approach I took will hurt someones soul... apologies
-
Does anyone know how to link these squares to a chess library so I can track moves?
thank you in advance
chess_matrix_hallPinH7_error.ino (23.0 KB)