Introduction: Working With Two LEDs Using Arduino UNO in TinkerCAD Circuits
This project demonstrates working with two LEDs and Arduino in TinkerCAD circuits.
Step 1: Objective
- Blinking of two LEDs (alternating)
- Fading effect of two LEDs (alternating)
Step 2: Components Required
- Arduino UNO (1 No.)
- Breadboard (1 No.)
- Resistor 1k ohm (2 No.)
- LED (2 No.)
- Jumper wire (4 No.)
- USB cable (1 No.)
Step 3: Basic Circuit Diagram
The basic circuit diagram is shown in the figure. It consists of LEDs in series with Resistors. The power is drawn from the Arduino board.
Step 4: Breadboard Diagram
Make the connections as shown in the figure above.
- LED (red): Anode and Cathode to a10 and a11 respectively on the Breadboard.
- Resistor: one end to e10 and another to g10.
- Jumper wire (red): connecting the PIN3 (of Arduino) and j10 (of breadboard)
- LED (green): Anode and Cathode to j20 and j19 respectively on the Breadboard.
- Resistor: one end to f20 and another to d20.
Jumper wire (green): connecting the PIN6 (of Arduino) and a20 (of breadboard)
- Jumper wire (black): connecting c11 and GND
- Jumper wire (black): connecting h19 and GND
Step 5: Block Code (for Blinking of Two LEDs)
Create Block codes as shown in the figure
Step 6: Block Code (for Fading of Two LEDs)
Create Block codes as shown in the figure
Step 7: Start Simulation
Click Start Simulation to see the action
Discussions