Skip to main content

Blink LED using Arduino UNO | Tutorial | DIY Project

Making an LED Blink Using Arduino UNO:

For making an LED Blink using Arduino, which is a very basic project a beginner can perform, We'll need some components and pre-requisite knowledge of using computer system.

Components Required:

- 1 * Arduino UNO 
- 1 * USB Cable 
- 1 * 220Ω Resistor 
- 1 * LED 
- 1 * Breadboard 
- 2 * Jumper Wires 

Circuit Diagram:

Procedure:

1. Make connections according to the circuit diagram.
2. Connect Arduino UNO to PC.
3. Upload the code provided.
4. Enjoy.

Code :

int ledPin=8; //definition digital 8 pins as pin // to control the LED void setup() { pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, // OUTPUT: Output mode } void loop()
{ digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8 delay(1000); //Set the delay time, 1000 = 1S digitalWrite(ledPin,LOW); //LOW is set to about 5V PIN8 delay(1000); //Set the delay time, 1000 = 1S }

For downloading Arduino IDE visit:
https://www.arduino.cc/en/Guide

Comments

Popular posts from this blog

Communicating with Arduino using Serial Communication | Arduino UNO | Tutorial | DIY Project

Communicating Arduino Using Serial Port Communication In this tutorial we'll see, how to program Arduino to send and receive signals using serial ports. We'll send signals from PC to our UNO board, which will change the state of the LED and will return the current state. Components Required - 1 * Arduino UNO  - 1 * USB Cable  - 1 * LED  - 1 * 220Ω Resistor  - 1 * Breadboard  - Several jumpers wires Circuit Diagram   Procedure 1. Make the connections according to the circuit diagram. 2. Connect your Arduino UNO to PC. 3. Upload the code provided to the board using Arduino IDE. 4. Now go to tools > Serial Monitor. Try entering 0 and 1 alternatively to play with the LED. Code int  ledpin= 11 ;             //definition digital 11 pins as pin to control the LED void   setup () {    Serial . begin ( 9600 );     //...

Make an Active Buzzer Beep using Arduino UNO | Do it Yourself Project

Making an Active Buzzer Beep using Arduino UNO: To make an active buzzer beep using Arduino, we'll need to set up the circuit and program our board. Components Required: - 1 * Arduino UNO  - 1 * USB cable  - 1 * Active buzzer  - 1 * 1 kΩ Resistor  - 1 * NPN Transistor - 1 * Breadboard  - Several jumpers wire  Circuit Diagram: Procedure: 1. Make the connections according to the circuit diagram. 2. Connect your Arduino UNO to PC. 3. Upload the code provided to the board using Arduino IDE. 4. Enjoy using Active Buzzer. Code: int buzzerPin=8; //definition digital 8 pins //as pin to control the buzzer void setup() { pinMode(buzzerPin,OUTPUT); //Set digital 8 port mode, the } //OUTPUT for the output void loop() { digitalWrite(buzzerPin,HIGH); //Set P...

Controlling LED with a Push Button using Arduino UNO | Tutorial | DIY Project

Controlling LED with a Push Button using Arduino  In this tutorial we will learn how to detect the state of a button, and then toggle the state of the LED based on the state of the button. Components Required: - 1 * Arduino UNO  - 1 * USB Cable  - 1 * Button  - 1 * LED  - 1 * 10kΩ Resistor  - 1 * 220Ω Resistor  - 1 * Breadboard  - Several jumpers wire Circuit Diagram:   Procedure: 1. Make the connections according to the circuit diagram. 2. Connect your Arduino UNO to PC. 3. Upload the code provided to the board using Arduino IDE. 4. Enjoy playing with LED.   Code: int ledpin=11;                                              //definition digital 11 pins as pin to control the LED int btnpin=2;                        ...