Aim:
To use Arduino to control an output device like an LED or buzzer.
Requirements:
-
Tinkercad account
-
Arduino Uno
-
Breadboard
-
1 LED (or a buzzer)
-
220Ω resistor (for LED)
-
Jumper wires
Steps:
-
Open Tinkercad and create a new circuit.
-
Drag Arduino Uno and a breadboard onto the canvas.
-
Connect the LED’s anode (+) to digital pin 13 through a 220Ω resistor. Connect the cathode (–) to GND.
-
For buzzer: Connect one leg to pin 9, the other to GND.
-
-
Use Code Blocks to create a program:
-
Turn LED ON → Wait 1 second → Turn LED OFF → Wait 1 second (Repeat).
-
-
Click Start Simulation to watch the output device in action.
-
Try changing the delay time to make it blink faster or slower.