Hello, I'm a beginner and I want to improve on my first project.
The material :
1x display
5 buttons
1 LED
9V battery
The concept:
A code must be found, each click on a button (1 to 4) increases a column of the display. Pressing the 5th button validates the code. If the code is correct, a Morse code is displayed on the LED, otherwise the 4 digits are set to "0000".
My first project uses a 7-digit, 4-segment, 12-pin display.
The problem is that my soldering isn't very good and I'm getting false contacts.
So, wanting to simplify my connections, I opted for a TM1637 module for the V2.
You will not find ready code. You need to make it Yourself.
What is that "9 volt batterUse code tags to format code for the forumy"?
Why use resistors for the buttons? Declare the inputs as INPUT-PULLUP.
Connect those buttons diagonally.
You can simplify your buttons even more. One corner wired to the input pin, the opposite diagonal pin wired to ground. Declare your pin as INPUT_PULLUP. With this arrangement, when not pressed, it reads HIGH and when pressed, it reads LOW.
Nice Fritzing diagram! Fritzing diagrams get a lot of complaints, but yours is unusually clear and readable.
If your display is I2C driven (as suggested by the number of wires), your program will be simplified by using the I2C pins of the Arduino, but that would mean that you''d need to move your switch matrix to some other pins (Uno I2C being the same as A4/A5.)