Optimize POC project

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.

I've created a connection diagram, does it look correct, and do you see any areas for improvement?

Thank you in advance.

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.

1 Like

I already have the code, and it's working like a charm.
Just asking for the hardware part and put a little context to the project. :slight_smile:

Ok, thanks for the suggestion, I will remove the resistors and go with the internal resistor on arduino with INPUT-PULLUP.

Pic updated. Thanks for the help. :wink:
9V Battery is to power up the arduino and the little project instead of USB.

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.

Oh, I haven't though at this !
Simple a lot simplier, I really appreciate. :slight_smile:

Latest schema.

I think we can't go further. Thanks a lot ! :ok_hand:

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.)

3 Likes

Thanks for the compliment, I really appreciate it as a beginner.
Yes it is I2C and will go to I2C pins as you suggested :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.