0% found this document useful (0 votes)
20 views9 pages

IOT LAB 1.1 Utkarsh

Uploaded by

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

IOT LAB 1.1 Utkarsh

Uploaded by

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

DEPARTMENT OF

COMPUTER SCIENCE &


ENGINEERING
Experiment1.1
Student Name: Siharth Kumar UID:20BCS2017
Branch: BE CSE Section/Group: DM_602 B
Semester: 6th Date of Performance: 8/2/22
Subject Name: Internet of Things Subject Code: 20CSP-358

1. Aim: Familiarisation with Arduino/Raspberry Pi hardware and


perform necessary software installation.

2. Objective: .
· To study hardware and software related to IoT.
· To understand the function of Node MCU, Arduino Uno and

3. Script and Output:

About Arduino
An Arduino is actually a micro controller based kit. It is basically used in
communications and in controlling or operating many devices. Arduino U N O board is
the most popular board in the Arduino board family. In addition, it is the best board
to get started with electronics and coding.

It consists of two m e m o r i e s - P r o g r a m m e m o r y and the data m e m o r y .

The code is stored in the flash p r o g r a m m e m ory, w h e r e a s the data is stored in the
data m e m o r y .

Arduino Uno consists of 14 digital input/output pins (of which 6 can be used as P W M
outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack,
an ICSP header, and a reset button
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

The most important a d v a n t a g e with A r d u i n o is the p r o g r a m s can be directly loaded


to the device without requiring any ha rdwa re p r o g r a m m e r to burn the program. This
is done because of the presence of the 0.5KB of Boot-loader which allows the
program to be burned into the circuit. All we have to do is to download the Arduino
software and writing the code. The Arduino tool window consists of the toolbar with
the buttons like verify, upload, new, open, save, serial monitor. It also consists of a text
editor to write the code, a m e s s a g e area which displays the feedback like s h o w i n g
the errors, the text console which displays the output and a series of m e nus like the
File, Edit, Tools menu.

Steps to install Arduino IDE:


Step 1 − First you must have your Arduino board connected using standard USB cable.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Step 2 − Download Arduino IDE Software.

Step 3 − Power up your Arduino board, the powering up takes place automatically by the
board either from the USB connection to the computer or an external power.

Step 4 – Launch Arduino IDE

Step 5 − Open your first project.


Once the software starts, you have two options −

· Create a new project.


· Open an existing project example.
To create a new project, select File → New.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

To open an existing project example, select File → Example → Basics → Blink

Step 6 − Select your Arduino board.


DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
Step 7 − Select your serial port.
Select the serial device of the Arduino board. Go to Tools → Serial Port menu. This is
likely to be COM3 or higher

Step 8 − Upload the program to your board.


Before explaining how we can upload our program to the board, we must demonstrate
the function of each symbol appearing in the Arduino IDE toolbar.

A − Used to check if there is any compilation error.


B − Used to upload a program to the Arduino board.
C − Shortcut used to create a new sketch.
D − Used to directly open one of the example sketch.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING
E − Used to save your sketch.
F − Serial monitor used to receive serial data from the board and send the serial data to
the board.

About Raspberry Pi

The Raspberry Pi is a very cheap computer that runs Linux, but it also provides a set of
GPIO (general purpose input/output) pins that allow you to control electronic
components for physical computing and explore the Internet of Things (IoT).
Raspberry Pi was basically introduced in 2006. It is particularly designed for
educational use and intended for Python. A Raspberry Pi is of small size i.e., of a credit
card sized single board computer, which is developed in the United Kingdom(U.K) by
a foundation called Raspberry Pi. There have been three generations of Raspberry Pis:
Pi 1, Pi 2, and Pi 3. The first generation of Raspberry (Pi 1) was released in the year
2012, that has two types of models namely model A and model B. Raspberry Pi can be
plugged into a T V, computer monitor, and it uses a standard k e y b o a r d and m ouse . It
is user friendly as can be handled by all the age groups. It does everything you
would expect a desktop computer to do like word - processing, b r o w s i n g the internet
spreadsheets, playing games to playing high definition videos.
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

Downloading and Installing Raspberry Pi OS


Once you have all the c o m p o n e n t s you need, use the following steps to create the
boot disk you will need to set up your Raspberry Pi. These steps should work on a
using a Windows, Mac or Linux-based PC (we tried this on Windows, but it should
be the same on all three).

1. Insert a microSD card / reader into your computer.

2. Download and install the official Raspberry Pi Imager . Available for Windows,
macOS or Linux, this app will both download and install the latest Raspberry Pi OS.
There are other ways to do this, namely by downloading a Raspberry Pi OS image file
and then using a third- party app to “burn it,” but the Imager makes it easier.

3. Click Choose OS.

4. Select Raspberry Pi OS (32-bit) from the OS menu (there are other choices, but for most
uses, 32-bit is the best).

Click Choose storage and pick the SD card you’re using.


DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

5. Click the settings button or hit CTRL + SHIFT + X to enter settings.

6. Fill in settings fields as follows and then hit Save. All of these fields are technically
optional, but highly recommended so that can get your Raspberry Pi set up and online as soon
as you boot it. If you don't set a username and password here, you'll have to go through a setup
wizard that asks you to create them on first boot.

· Set hostname : the name of your Pi. It could be "raspberrypi" or anything


you like.
· Enable SSH : Allow SSH connections to the Pi. Recommended.
· Use password authentication / public key: method of logging in via SSH
· Set username and password: Pick the username and password you'll use
for the Pi
· Configure wireless LAN: set the SSID and password of Wi-FI network
· Wireless LAN country: If you're setting up Wi-Fi, you must choose this.
· Set locale settings: Configure keyboard layout and timezone (probably
chosen correctly by default)
DEPARTMENT OF
COMPUTER SCIENCE &
ENGINEERING

7. Click Write. The app will now take a few minutes to download the OS and write to
your card.

Booting Your Raspberry Pi for the First Time

After you're done writing the Raspberry Pi OS to a microSD card, it's time for the
m o m e n t of truth.

1. Insert the microSD card into the Raspberry Pi.

2. Connect the Raspberry Pi to a monitor, keyboard and mouse.

3. Connect an Ethernet cable if you plan to use wired Internet.

4. Plug the Pi in to power it on.

You might also like