3 momentary switch and buzzer countdown

Hi, I have 3 momentary switches and a buzzer.

Buzzer is connected to ground and d4
Switch 1 is connected to ground and d6
Switch 2 is connected to ground and d7
Switch 3 is connected to ground and d8

When i turn on the arduino, do nothing
when i press switch 1, countdown 5 seconds then when it reaches 0, buzz 3 times
when i press switch 2, countdown 8 seconds then when it reaches 0, buzz 5 times
when i press switch 3, stop the countdown and reset

When does this homework have to be handed in?

I do to and they just buzz along just fine. Mine are connected to an Arduino with several switches as well. I made an annotated schematic before wiring them and wrote the code. They communicate over CAN to the other nodes.

I suggest you do the Annotated schematic thing as your word salad is useless. Also show all connections, power, ground and power sources. Post links to technical information on each of the hardware devices. You realize without code we cannot debug it so post your code as well following forum guide lines.

We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly.

  1. Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
  2. Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
  3. Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
  4. Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum.
  5. please keep in mind that we are not a free design or code-writing service.

And your question is something like "can someone code this for me since I'm too lazy to even attempt to do my school homework ?"

Please tell me I'm wrong...

PS: your requirements do not describe what happens if a button is pressed while a countdown is already on going for this button or another button.

Hi, @arghdwenub
Welcome to the forum.

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Can you please tell us your electronics, programming, arduino, hardware experience?

What have you coded already?

Tom.... :smiley: :+1: :coffee: :australia: