1829 - A1 - Report 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Experiment No-01: Familiarizing with Arduino, Arduino IDE & design a simple LED looping

Circuit.

Objective: To Familiarize with Arduino, Arduino IDE & design a simple LED looping Circuit.

1. Arduino
2. Arduino IDE
3. Design a simple LED Looping Project

Description:
What is a Development Board:
A printed circuit board designed to facilitate work with a particular microcontroller
Typical components include:

• power circuit
• programming interface
• basic input; usually buttons and LEDs
• I/O pins

What is the Arduino:


Arduino is an open source computer hardware and software company, project, and user
community that designs and manufactures single-board microcontrollers and microcontroller kits
for building digital devices and interactive objects that can sense and control objects in the
physical world.

• Great for prototyping ideas


• Access to multiple I/O
• Drive motors, turn on lights, trigger controls.
• Low Power requirements
• Flexible / Open-source
Arduino Development Board:
Introduction to Arduino IDE:

Parts of the IDE main screen:


Select Serial Port and Board:

Status Messages:
LED Looping Project:

Instrument Required:
1. Arduino Uno
2. LED
3. Bread Board
4. Connecting Wire
5. Power Supply

Circuit Diagram :
Source Code:

// C++ code
//
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
}

void loop()
{
digitalWrite(2, HIGH);
delay(2000);
digitalWrite(3, HIGH);
delay(2000);
digitalWrite(4, HIGH);
delay(2000);
digitalWrite(5, HIGH);
delay(2000);
digitalWrite(6, HIGH);
delay(2000);
digitalWrite(7, HIGH);
delay(2000);
digitalWrite(8, HIGH);
delay(2000);
digitalWrite(2, LOW);
delay(2000);
digitalWrite(3, LOW);
delay(2000);
digitalWrite(4, LOW);
delay(2000);
digitalWrite(5, LOW);
delay(2000);
digitalWrite(6, LOW);
delay(2000);
digitalWrite(7, LOW);
delay(2000);
digitalWrite(8, LOW);
delay(2000);
}

Discussion:
In this experiment, we have learned how to use arduino board, Breadboard ,Resistors and
pushbutton.We have also used code for turning LED on and off sequencely.

You might also like