In this recipe, we will learn how to make an LED that is connected to the output pins of the Arduino board blink.
Toggle voltage in output pin using Arduino (blinking LED)
How to do it…
To make an LED that is connected to the output pins of the Arduino board blink, perform the following steps:
- Open the Arduino IDE. Arduino opens up with a file showing the default content, as follows:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
- Connect the Arduino board to the PC.
- From the Tools menu, select Port and confirm whether it shows COM3 (Arduino/Genuino Uno) or whatever Arduino board you have attached to your PC. Additionally, confirm whether...