Push button controls LED lights and buzzer

I want to make an arduino project that:

  • when pushing the button, the led light blinks fast and the buzzer buzzes fast. after a few seconds it turns off by itself.
  • when the button is pushed again, it turns off.

what is the code and diagram for this?

This works the other way around. You start with the circuit and the code, then if you run into trouble, you ask questions and we help.

Plenty of projects involving:

  • Buzzers
  • Leds
  • Blinking/periodic action and timers.

Go and explore, try some things out and see where it takes you. Good luck!

1 Like

Hello mar_afm

Welcome to the best Arduino forum ever :slight_smile:

Post your current sketch in code tags and schematic to see how we can help.

What will happen if your teacher finds out that you are asking us to do your school work?

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