Arduino Forum

Community => Gigs and Collaborations => Topic started by: IY3775 on Feb 28, 2019, 09:39 am

Title: 4 digit display with keypad
Post by: IY3775 on Feb 28, 2019, 09:39 am
Basically, using the 4 digit 7 segment tm1637 module and 4*4 matrix keypad.

I want to be able to type numbers on keypad, and the display will continue showing till 4th number. When I press * or #, it should clear the display. Now with the "A", "B" ,"C", "D" keys, I want a pin to pull high when I press "A" , when I press "B" pull low "A" 's pin and pull high another pin for B (4 Letters like a selector switch, to control a relay).

Could someone type the code for me please?
Title: Re: 4 digit display with keypad
Post by: J-M-L on Mar 03, 2019, 11:58 am
Quote
Could someone type the code for me please?
type which code?

did you mean invent the code and develop that for you?
Title: Re: 4 digit display with keypad
Post by: patduino on Mar 03, 2019, 02:22 pm
Hu IY3775,

That's pretty straightforward, but you'll need to work out some of the details.

A few questions for you:

1. What does "displaying until the 4 th number" mean?  Do you want the display to clear or lock in the number?

2. What should the sketch when it receives a 5th digit? It's already displaying 4, should it ignore it or shift the displayed number, i.e., 1234 displays "1234" and pressing 5 displays "2345"?

3. What happens when the 4th digit is entered? Are you comparing it to an expected code or does the number get used in some other way?

4. I assume the A-D buttons work independently from the others and won't intetf with the numeric sequence.

Pat
Title: Re: 4 digit display with keypad
Post by: wolframore on Mar 07, 2019, 08:42 pm
Seems pretty straight forward. Key code and relay activation.
Title: Re: 4 digit display with keypad
Post by: tasmod on Mar 08, 2019, 12:34 pm
They always seem simple till you talk to the user about the real requirements.