0% found this document useful (0 votes)
4 views

practicale file

Arduino is an open-source electronics platform that allows users to create interactive projects using easy-to-use hardware and software. It supports a wide range of applications, from simple prototypes to complex scientific instruments, and has a global community contributing to its development. The platform features a simplified programming language and an IDE that is accessible for beginners while being flexible enough for advanced users.

Uploaded by

mihir shah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

practicale file

Arduino is an open-source electronics platform that allows users to create interactive projects using easy-to-use hardware and software. It supports a wide range of applications, from simple prototypes to complex scientific instruments, and has a global community contributing to its development. The platform features a simplified programming language and an IDE that is accessible for beginners while being flexible enough for advanced users.

Uploaded by

mihir shah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Practice-1

What is Arduino?
Arduino is an open-source electronics platform based on easy-to-use hardware and software.
Arduino boards can read inputs - a light on a sensor, a finger on a button, or a Twitter message -
and turn them into an output - activating a motor, turning on an LED, or publishing something
online. You can tell your board what to do by sending instructions to the microcontroller on the
board. To do so you use the Arduino programming language (based on Wiring), and the Arduino
Software (IDE), based on Processing.

Over the years Arduino has been the brain of thousands of projects, from everyday objects to
complex scientific instruments. A worldwide community of makers - students, hobbyists, artists,
programmers, and professionals - has gathered around this open-source platform, their
contributions have added up to an incredible amount of accessible knowledge that can be of
great help to novices and experts alike.

Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming. As soon as it reached
a wider community, the Arduino board started changing to adapt to new needs and challenges,
differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D
printing, and embedded environments.

Thanks to its simple and accessible user experience, Arduino has been used in thousands of
different projects and applications. The Arduino software is easy-to-use for beginners, yet
flexible enough for advanced users. It runs on Mac, Windows, and Linux. Teachers and students
use it to build low cost scientific instruments, to prove chemistry and physics principles, or to
get started with programming and robotics. Designers and architects build interactive
prototypes, musicians and artists use it for installations and to experiment with new musical
instruments. Makers, of course, use it to build many of the projects exhibited at the Maker
Faire, for example. Arduino is a key tool to learn new things. Anyone - children, hobbyists,
artists, programmers - can start tinkering just following the step by step instructions of a kit, or
sharing ideas online with other members of the Arduino community.
The Arduino is used for various purposes, such as:

o Finger button

o Button for motor activation

o Light as a sensors

o LED button

o Designing

o The Building of electronic devices

Features
• Arduino programming is a simplified version of C++, which makes the learning process
easy.
• The Arduino IDE is used to control the functions of boards. It further sends the set of
specifications to the microcontroller.
• Arduino does not need an extra board or piece to load new code.
• Arduino can read analogue and digital input signals.
• The hardware and software platform is easy to use and implement.
• It is open source
• It has 16Mhz clock speed
• It has features like built in voltage regulator
• It has 13 digital & 6 analogue pins to connect external hardware.
• It has 32kb flash memory
• The USB port in the Arduino board is used to connect the board to the computer using
USB cable
• It is only needs 5V to power up
• It is cheaper than others
• It supports cross platform, it’s code run on Linux , Mac and Windows.
Practical-3
Dancing LED
CODE:

#define red 12
#define green 10
#define yellow 13
#define blue 9
void setup() {
// put your setup code here, to run once:
pinMode (red,OUTPUT);
pinMode (green,OUTPUT);
pinMode (yellow,OUTPUT);
pinMode (blue,OUTPUT);

void loop() {
// put your main code here, to run repeatedly:
digitalWrite (red,LOW);
digitalWrite (green,LOW);
digitalWrite (yellow,LOW);
digitalWrite (blue,HIGH);
delay(100);
digitalWrite (red,LOW);
digitalWrite (green,HIGH);
digitalWrite (yellow,LOW);
digitalWrite (blue,LOW);
delay(100);
digitalWrite (red,HIGH);
digitalWrite (green,LOW);
digitalWrite (yellow,LOW);
digitalWrite (blue,LOW);
delay(100);

digitalWrite (red,LOW);
digitalWrite (green,LOW);
digitalWrite (yellow,HIGH);
digitalWrite (blue,LOW);
delay(100);
}

OUTPUT:
Practical-4
8 LED
CODE:

void setup() {
// put your setup code here, to run once:
int i;
for(i=0;i<8;i++)
{
pinMode(i,OUTPUT);
}
}

void loop() {
// put your main code here, to run repeatedly:

delay(500);
PORTD=0x00;
delay(500);
PORTD=0xff;

OUTPUT:
Practical-5:
8 LED 1 by 1 blink
CODE:

void setup() {
// put your setup code here, to run once:
int i;
for(i=0;i<8;i++)
{
pinMode(i,OUTPUT);
}
}

void loop() {

int i=1;
while(i<=8){
PORTD=i;
delay(500);
i=i*2;
}
i=0x10;
while(i<=0x80){
PORTD=i;
delay(500);
i=i*2;
}
delay(500);

You might also like