Button Panel for rocket simulator

I want to build a rocket "simulator" for my son. I want to a 4x4 momentary push button panel, each button has a built in LED. I will also have a button panel with 5 buttons or so. When push a button on my panel i want an "alarm" to occur. He will have to use the 4x4 panel to clear the alarm. I want him to have to push certain buttons in a certain order to turn it off. I want the button that needs to pressed to blink and continue blinking until it is pushed, then have the next button start blinking. While the alarm is active i want an LED to flash and a buzzer to go off in sync with each other. I'm not very good at coding and don't even know where to start to complete this.

Why did you start a topic in the Uncategorised category of the forum when its description explicitly tells you not to ?

Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics

I apologize, I will pay better attention next time.

Start by managing to to read 19 buttons. a 4 by 5 matrix would work. Search for "Arduino + matrix buttons"! There's a lot on that subject.

When You manage to read the buttons You can start with the code, its logic. Figure out how to describe it graphically! Flowcharts are excellent!

Coding is half or less of the problem. You will be dealing with switches and LEDs and power and things like that.

I recommend you take a look at the IDE examples, which start with very simple code and equally simple circuits.

To save time and money, you could perform some experiments and learn the coding side by using the wokwi simulator:

No time you spend learning how to use the simulator will be wasted, and your software learning will be unperturbed by bad components or dodgy wiring or inadequate power.

Postpone even thinking about the project code until you can

  • print your name to appear on the serial monitor window

  • make one LED be on when you are pressing a button, and off otherwise

  • make one LED go on when you press a button, and off when you press again

  • count buttons presses and print the number as it goes up

  • make a LED go on for 5 seconds when you press a button, no matter you release the button or no before 5 seconds has elapsed.

If you start with the examples having simpler immediate goals it will let you focus on the basics of coding, again no time you spend on any of my suggested sketches will be wasted.

Here you can get all the help you need, but usually this is because you present some code that isn't yet what you want, and let us see where you are at and what might be the problem.

Sounds like a cool toy and lucky kid. Remember that you brought the noise if it gets annoying. :expressionless:

a7

Hello truck_driver

If you have space you might use an Arduino Mega to keep it simple and stupid.

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