Aim:
To write a simple block code that makes an LED blink using Arduino in Tinkercad.
Requirements:
-
Tinkercad Circuit
-
Arduino Uno
-
Breadboard
-
LED
-
220Ω resistor
-
Jumper wires
Steps:
-
Open Tinkercad and go to Circuits → create a new circuit.
-
Place components: Drag an Arduino Uno, LED, resistor, and breadboard.
-
Connect the circuit:
-
Connect LED anode (long leg) to digital pin 13 via a 220Ω resistor.
-
Connect LED cathode to GND.
-
-
Open the Code panel and switch to Blocks.
-
Add these blocks in order:
-
set pin 13 to output (in Setup)
-
set pin 13 HIGH (turn LED ON)
-
wait 1 second
-
set pin 13 LOW (turn LED OFF)
-
wait 1 second
-
-
Press Start Simulation to watch the LED blink!