Question: Problem 3 - Save EnergySave the World As New Years Day quickly approaches, you decide to be more aware of your energy usage. The first

Problem 3 - Save EnergySave the World

  • As New Years Day quickly approaches, you decide to be more aware of your energy usage. The first area you focus on is your light usage. You want to know how long an LED has been on. If it has been on for longer than 20 seconds, it will automatically turn off.

  • Implement this system using a light switch button and LED. When you press the button once, the LED turns on. The LED will either turn off when the button is pressed again or turn off automatically after 20 seconds. When the LED turns off, you want to print the following message to the Serial Monitor: The LED was on for [number of seconds LED was on] seconds.

  • Can you send a screenshot of the Tinkercad circuit so that I understand the code. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!