7-segment display that changes number depending och which button is pressed

Hello!

I have a school project where me and my friends decided to make a 7-segment display which changes number depending on which button is pressed. I have no idea how to do this and would really appricate some help!:slight_smile:

We need 6 buttons that will display the numbers 1-6 on the display and if possible we would like to have a RGB led that changes color also depending on which button is pressed.

Thankful for help!

Start simple

Can you read each of the 6 buttons and display a message on the Serial monitor saying which of them are currently pressed ? If not then look at the Digital examples in the IDE

Once you can do that then move on to display a message on the Serial monitor saying which of them has become pressed. Look at the StateChangeDetection example in the IDE

You will not get much, if any help here unless you do some of the work and post here if you have problems

and you believe someone here will do your school homework for you?

show us what you've done and we will help.. if you've not started, I suggest reading tutorials on buttons and 7 segments and practice with examples.

There are button libraries and 7 segments libraries that could make your life easy.

What kit do you have?

Start by doing the exercises and tutorials on this website, in the Arduino IDE and elsewhere to learn the basics. Search these fora for similar questions and learn from the answers.

Right now i have looked on tutorial for how to have 7-segment display that changes number every 1 second and i have also been able to use a button like a counter so every time i press it it will go one number up. The thing is i have no idea how to get more buttons and how to make each button project a specifik number and i havnt been able to find any tutorials that explain how to do it and my knowledge to figure it our myself yet. Any guidance would help!

There is unlikely to be a tutorial that gives the exact answer. The idea is to learn the principles and apply them to what you are trying to do.

As others have noted we won't do it for you and you need to post your code in code tags as per the forum instructions, which you have of course read. Also a schematic please.

Your responses so far suggest that you were hoping someone would just give you the answer, none of us appreciate being expected to do other people's homework.