Question: Please answer all the questions and sketch the circuit. Problem l: Using serial monitor to control how LEDs flash. Build a circuit and write an
Problem l: Using serial monitor to control how LEDs flash. Build a circuit and write an Arduino program to do the following: 1. The system requires a green LED, a yellow LED, a red LED, a push button and other components 2. When the push button is pressed the first time, the system will be turned ON. The serial monitor is 3. Display a prompt on the serial monitor for a random number with two digits in the form of 1*, 2* or 4. The first number (1, 2 or 3) control which LED is flashing, while the second number) control the ready to receive numerical input. Display this status on serial monitor. number of flashing. If the number is 1* (for example 14), the green LED flash times. If the number is 2* (for example 23), the yellow LED flash times. If the number is 3* (for example 35), the red LED flash * times. The flashing frequency is 2Hz. If the number is not 1*, 2* or 3*, display invalid status and prompt for new number. At any time during the operation, if the push button is pressed the second time, the system will be turned OFF (to step 2). 5. Sketch the circuit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
