0% found this document useful (0 votes)
275 views3 pages

Iot Practicals

The document provides instructions for installing the Arduino IDE software and configuring it for use with an Arduino board. It describes downloading and installing the Arduino IDE on Windows, and selecting the appropriate board in the IDE's Tools menu. It then summarizes two practical exercises: 1) Blinking an LED connected to pin 13 using the Arduino code provided, and 2) Blinking an LED when a button is pressed by reading the button's input pin in the Arduino code.

Uploaded by

akkivish37
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
275 views3 pages

Iot Practicals

The document provides instructions for installing the Arduino IDE software and configuring it for use with an Arduino board. It describes downloading and installing the Arduino IDE on Windows, and selecting the appropriate board in the IDE's Tools menu. It then summarizes two practical exercises: 1) Blinking an LED connected to pin 13 using the Arduino code provided, and 2) Blinking an LED when a button is pressed by reading the button's input pin in the Arduino code.

Uploaded by

akkivish37
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Internet Of Things

Practical 1

Installation Of Arduino IDE

1. Visit http://www.arduino.cc/en/main/software to download the latest Arduino IDE version


for your computer’s operating system. There are versions for Windows, Mac, and Linux
systems.
On that page, there are 3 download options for Windows.
• Windows Installer: The software will be installed in Windows operating system and
required admin access.
• Windows Zip file: To make a portable installation.
• Windows App: for Windows 8.1 or 10.
At the download page, click on the “Windows Installer” option for the easiest installation.
2. Save the .exe file to your hard drive.
3. Open the .exe file.
4. Click the button “I Agree” to agree to the licensing agreement
5. Decide which components to install, then click “Next”
6. Select which folder to install the program to, then click “Install”
8. Now find the Arduino shortcut on your Desktop and click on it. The IDE will open up and
you’ll see the code editor

Configuring the Arduino IDE


The next thing to do is to make sure the software is set up for your particular Arduino board.
Go to the “Tools” drop-down menu, and find “Board”. Another menu will appear, where you
can select from a list of Arduino models. For example: “Arduino Uno”.
Practical 2

Interfacing Light Emitting Diode (LED): Blinking LED

Components Required:
1. 1 X LED
2. 1 X Resistor, 330 Ohm
3. Breadboard
4. Arduino UNO R4 or earlier versions.
5. Jumper wires

Arduino Circuit:

Arduino Code:

int LEDpin = 13;


int delayT = 1000;
void setup()
{
// put your setup code here, to run once:
pinMode(LEDpin, OUTPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
digitalWrite(LEDpin, HIGH);
delay(delayT);
digitalWrite(LEDpin, LOW);
delay(delayT);
}
Practical 3

Interfacing button and LED: LED Blinking when button is pressed

Components Required:
1. Arduino board
2. Breadboard
3. Jumper wires
4. LED
5. Momentary tactile four-pin push-button
6. 10 k-ohm resistor • 220-ohm resistor

Arduino circuit:

Arduino Code:

#define LED_PIN 8
#define BUTTON_PIN 7
void setup()
{
pinMode(LED_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
}
void loop()
{
if (digitalRead(BUTTON_PIN) == HIGH)
{
digitalWrite(LED_PIN, HIGH);
}
else
{
digitalWrite(LED_PIN, LOW);
}
}

You might also like