Project

I am currently doing a project in college. There are two buttons, one will turn on an LED for one minute and the other for 30 seconds. How would I code it so that when a button is pressed it adds an extra minute.

Example - When the 'one minute' button is pressed twice, the LED will stay on for two mins.

I am new to Arduino any help is appreciated, thank you

-Oran

Hi Oran, Welcome to the forum.

What have you tried so far?
If you have not tired anything, I would suggest starting out with the button tutorial and building from there.

Do you own an Arduino UNO?

Have you connected Buttons and LED with your UNO?

Have you uploaded any sketch in the UNO? If yes, post the codes below with code tags (</>). If not, try to prepare a sketch and post it here.

OranOConnor:
How would I code it so that when a button is pressed it adds an extra minute.

How will the user know how many extra minutes have been added?

...R

Just a note - this is a good place to get help with a project but a poor place to ask someone else to do your homework - good that you did not ask for the code - but give things a try and post your tries here for help - I have seen the many people here show great patience leading someone along and through tough spots

Good luck with your project - and is something that is done on live projects in industrial control systems

Got looking at all the great examples on the site here and was able to learn many things and get my code working. Thank you for all the help though. Great community will surely be back.

  • Oran :slight_smile:

OranOConnor:
Got looking at all the great examples on the site here and was able to learn many things and get my code working. Thank you for all the help though. Great community will surely be back.

Unfortunately, you are going out for the time being without giving answers to the queries of Post#2.

Do you want me to explain what I did?

OranOConnor:
Do you want me to explain what I did?

Sharing your experience is a good way to pay back for the free advice you have received.

While it may not be of great interest to the experienced Forum members it may be very helpful for another newbie.

...R

OranOConnor:
Do you want me to explain what I did?

Please, read the advice of Post#8.