So I have an idea of a habit builder (also I think it would be fun to build)
Essentially, one piece tracks the habit, and one piece unlocks doors (small, in a grid) based on habit trend. Inside each door would be a “prize”.
My question is about the small doors.
-
Is there an example of small unlocking like this I can use to expand to multiple doors?
-
The idea is there might be more doors than pins on the microcontroller. Is there a board I could put inbetween, or a special technique since they are on a grid, to accomplish this?
bitfucker@programming.dev 3 weeks ago
Read about multiplexing. There are various ways to achieve it, the easiest way is to just arrange it on a grid. Let’s say 5×5. So with 10 pins, you can address 25 doors. For the lock, the easiest would be a solenoid / magnetic lock. You can also use a motor, but that would require a more complex addressing to reverse the rotation for opening and closing