64 segments. Each segment has a hall sensor

Good afternoon, everyone. I immediately apologize for the text through the translator. I have been using Wled technology for a long time and have done many projects. So I decided to implement the following. I want to make a chessboard, each square is illuminated by 8 LEDs. There is a hall sensor in each square. There are a total of 64 squares on the chessboard. There is a magnet in each chess piece. If the figure stands on a square, then the cell is highlighted. How do I implement 64 buttons? It is possible to connect each button via a digital port using shift registers or something similar. I will accept any suggestions.

What do you want WLED to do when it gets an input?

Did you mean “8 LEDS/square” => 512 total LEDs or just 64 LED’s?

1st blush, I would probably try to treat this as a “keyboard matrix” type of problem. 8 rows and 8 cols means 16 bits of data to handle so you probably want to use a pair of 8bit shift registers and pickup the data input serially on a single GPIO.

Hmmmm, I wonder if it would be reasonable to “spoof” an IR type stream so you could just use the builtin IR handler? That would let you call a whole list of possible presets for different “keypresses” corresponding to pieces on the board.

It might be possible to even deal with different polarity magnets in each piece corresponding to Black or White pieces.

There might be a usermod option that could get you somewhere.

Interesting problem……

Thank you so much for your reply. This is a very good option. I have 64 rings for each square. There are 8 LEDs in each ring. I spent some more time researching this issue, and turned to the deepsiik AI. He painted a good option too. Use two ESP32 modules. One module has standard Wled firmware, and the second module will process all requests from the hall sensor array. Hall sensors will also be able to recognize the pieces on the chessboard by the polarity and strength of the magnet. This will make it possible to divide into two teams, white and black. It will also provide unique animations for important pieces on the board. The second module will collect data from the matrix, it will also be an access point for the WLED module and it will have a Web interface. the data transfer will be via Wifi. As I understand it, wled supports commands coming to it over the network. Thats not surprising, Deepsik AI wrote me a sketch for the second module and it successfully flashed and worked. It works as an access point and shows the web interface. The web interface has a chess board display and settings for magnetic field calibration. I will continue this project and I will be glad if someone is interested in such a development.