Level 2: Add a second button that will control a red led.
Level 3: Using the RGB LED have button 1 turn on the RGB light, cycling through the three
colours in repetition(ex:Red - Green - Blue Red- ect.) with a 500 msec delay. Then use
the second button to shut off the lights. The light should shut off immediately after the current
colour and not continue to cycle after the button is pressed.
Level 4: Add a green and red LED to the circuit with the RGB LED. Include 2 buttons. The first
button will toggle between the red and green LED. If the green LED is on when you hit button 2
the RGB will start cycling through the 3 colours. If the 2nd button is pressed the RGB lights stop.
If the 1st button is pressed the RGB stops AND the green LED turn off and the red LED turns
ON. If the red LED is on, nothing happens when you press the 2nd button.
please solve these levels for me. i will be very thankful. please don't write anything if u don't know the answer.
Answers
Answered by
3
Answer:
In the Tinkercad Circuits components panel, drag a new Arduino and breadboard along side the sample, and prep your breadboard by connecting Arduino 5V to the power rail and Arduino GND to the ground rail.
Add an RGB LED and place it across four different rows of the breadboard. The RGB LED in the simulator has a common cathode (negative, ground) at its second leg, so wire this row/pin to ground.
Add three resistors (drag all three or create one and then copy/paste) and move them to the breadboard rows for the remaining three LED pins, bridging across the breadboard's center gap to three separate rows on the other side.
Similar questions
Computer Science,
3 days ago
Geography,
3 days ago
English,
3 days ago
Math,
8 months ago
Science,
8 months ago