Help! I have zero clue how to do this and there is nothing online that I've found. I want to make a rotary encoder and tm1637 into a password lock to reveal another code on the display. The only instruction I have found is how to make it into a timer. I really would like some assistance. i don't even know where to start.
Start by breaking the project into pieces.
There are myriad threads and YT videos about quadrature encoders and how they work. Find a technique you like and make a simple sketch to just increment and decrement a number - printed to the serial monitor. If you're not interested in the inner workings of encoder logic there are also numerous libraries* to handle encoders.
Make a sketch to display numbers of your choosing on the TM1637. There are libraries for this, too. You could determine the number by entering it through the serial monitor - see Serial Input Basics. This might be a bit of a rabbit hole but it's still useful knowledge for later.
Continue testing small sketches to prove the various parts then combine them one at a time 'til done.
You can test some things virtually at https://wokwi.com
* There are also threads and tutorials about how to install libraries.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.