Hi all! I've just started my first arduino project and I'm stumped as to how to complete my next step.
For reference, I'm trying to build a board which takes small blocks as inputs. There will be four types of blocks (up, down, left, right) all with the same shape and 12 slots on my board. I want to be able to put any block in any of the slots and be able to detect which block is in which slot. Essentially, I want to know the order of the random blocks that are placed. I'm trying to figure out a cost-effective and a simple yet reliable way for my board to distinguish the blocks.
From what I can tell from googling around, it seems as if hall effect sensors can output varying voltages depending on the magnet's strength. If I were to hook up a hall sensor, and I have 4 different magnets of varying strengths, will it be able to reliably distinguish the magnets based on the voltage output (assuming the programming to do so is there)? If it's possible, can the magnets be roughly around the strength of that on a typical magnetic chess piece? Or would that range of magnet strength be too small to reliably detect a difference in magnetic field strength? Using a larger range of magnet strength would probably work better, but I want to keep all of the magnets to around the range of a magnetic chess piece, so the differences in strength would have to be quite small.
My first idea was rfid, but it's looking like it'd be overkill and unnecessarily too complicated for my purposes. The second was color detection, but it doesn't seem like it'd be reliable and/or elegant.
Another solution I have is to bridge intersecting wires with varying resistance on the blocks. For example, each type of block will have a different resistance embedded into it so that the board can distinguish the blocks by the varying output of the bridged wires. A similar concept to hall effect sensors, but without the use of magnets and sensors. Determining the position of the block should be simple enough using the intersecting wires like a grid. I can't seem to find any information as to whether it'd even be possible to bridge wires externally in that way though.
Any help or suggestions would be greatly appreciated!
Thanks!