Turning Lock is small puzzle inspired by generic 4-digit dial used to lock luggage bags. Usually, other than the person who set the password before locking, no one else can crack the password, unless uses exhaustive permutations 10x10x10x10. Surprisingly this lock has the password always set to 0000, twist is that turning each of individual digit or dial will turn not only the self but also its left/right neighbours. Note that each dial is circular with numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
The objective of this puzzle is set the dials to 0000 from a random state at the beginning when reset. Each dial is circular and connected to adjacent neighbours. Increment a dial by one will also increment the connected adjacent neighbours by one.
Arduino is connected to TM1637 (contains 4 digit 7 segment led display). Each button represent each digit. Button press lead to increment of associated digit in circular fashion by one. Turning all four digits to 0000 unlocks the puzzle with LED glow.
Comments