WEBVTT

00:00.000 --> 00:04.000
Arduino External LED Blinking Test in TinkerCAD.

00:04.000 --> 00:07.000
In this video, we will understand

00:07.000 --> 00:10.000
connecting the LED and resistor with Arduino

00:10.000 --> 00:13.000
and uploading a simple blink test of LED.

00:13.000 --> 00:17.000
Step 1. Insert the components.

00:17.000 --> 00:23.000
Take your Arduino and breadboard to insert the LED.

00:23.000 --> 00:28.000
Remember, the long leg or the bend terminal is the A-node, positive.

00:28.000 --> 00:31.000
And the short leg or straight terminal is the cathode.

00:31.000 --> 00:32.000
Negative.

00:32.000 --> 00:36.000
Step 2. Connect the resistor next.

00:36.000 --> 00:39.000
Connect one end of your resistor to the A-node long leg

00:39.000 --> 00:43.000
or the bent terminal of the LED.

00:43.000 --> 00:47.000
Step 3. Connect the other end of the resistor to pin 13

00:47.000 --> 00:49.000
on the Arduino board through a breadboard

00:49.000 --> 00:52.000
and then connect the breadboard to the Arduino board.

00:52.000 --> 00:55.000
That is often used for prototyping in the real world.

00:55.000 --> 00:58.000
This pin will control the LED.

00:58.000 --> 01:01.000
Step 4. Ground the cathode.

01:01.000 --> 01:05.000
Take the cathode, short leg or the straight terminal of the LED

01:05.000 --> 01:09.000
and connect it to the GND, ground pin on the Arduino.

01:09.000 --> 01:14.000
This completes the circuit.

01:14.000 --> 01:17.000
Step 5. Open the code editor.

01:17.000 --> 01:20.000
Upon clicking code, the code editor opens

01:20.000 --> 01:23.000
with the default built-in LED blink script.

01:23.000 --> 01:28.000
Step 6. Update the blink code.

01:28.000 --> 01:32.000
Update the default code that is for blinking the built-in LED

01:32.000 --> 01:38.000
and set the output to 13 or just replace all the instances of built-in LED to 13.

01:38.000 --> 01:43.000
Step 7. Click Start Simulation to send it to the Arduino.

01:43.000 --> 01:47.000
Step 8. Observe the LED and that's it.

01:47.000 --> 01:49.000
Your LED should now be blinking.

01:49.000 --> 01:52.000
This confirms your circuit and code are working.

01:52.000 --> 01:56.000
Step 9. How simulation is helpful.

01:56.000 --> 02:00.000
Let's connect the LED without the resistor and restart the simulation.

02:00.000 --> 02:05.000
Then you will be able to see a small eye over any issue

02:05.000 --> 02:08.000
and the description that would help make the building safe

02:08.000 --> 02:11.000
and no permanent damage to the components.

02:11.000 --> 02:18.000
Feel free to modify the delay times in the code and observe the blinking patterns.

