Darshit 1.1

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

Experiment 1.

Aim: To Assemble Arduino Uno with the system and perform the necessary software installation.

Objectives:
1. To study hardware and software related to IoT

2. To understand the function of Arduino Uno and other controllers.

Components Used: Arduino Uno, Connecting Cable.

Arduino Board: Arduino is an open-source electronics platform based on easy-to-use hardware and
software. Arduino boards are able to read inputs - a light on a sensor, a finger on a button, or a Twitter
message - and turn it into an output - activating a motor, turning on an LED, or publishing something online.
You can tell your board what to do by sending a set of 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.

This is an Arduino Uno

The Uno is one of the more popular boards in the Arduino family and a great choice for beginners.

Course Name: IoT Lab Course Code: 21CSP-344


Name: Darshit Sheth UID: 21BCS7782
1. Power USB: Arduino board can be powered by using the USB cable from your computer. All you need to
do is connect the USB cable to the USB connection (1).
2. Power (Barrel Jack): Arduino boards can be powered directly from the AC mains power supply by
connecting it to the Barrel Jack (2).
3. Voltage Regulator: The function of the voltage regulator is to control the voltage given to the Arduino
board and stabilize the DC voltages used by the processor and other elements.
4. Crystal Oscillator: The crystal oscillator helps Arduino in dealing with time issues. How does Arduino
calculate time? The answer is, by using the crystal oscillator. The number printed on top of the Arduino
crystal is 16.000H9H. It tells us that the frequency is the board. Second, you can connect an external reset
button to the Arduino pin labelled RESET (5).
5. 6,7,8,9.Pins: (3.3, 5, GND, Vin), 3.3V (6) − Supply 3.3 output volt, 5V (7) − Supply 5 output volt. Most of
the components used with Arduino board works fine with 3.3 volt and 5 volt. GND (8)(Ground) − There are
several GND pins on the Arduino, any of which can be used to ground your circuit.Vin (9) − This pin also can
be used to power the Arduino board from an external power source, like AC mains power supply.
6. Analog pins: The Arduino UNO board has six analog input pins A0 through A5. These pins can read the
signal from an analog sensor like the humidity sensor or temperature sensor and convert it into a digital value
that can be read by the microprocessor.
7. Main micro controller: Each Arduino board has its own micro controller (11). You can assume it as the
brain of your board. The main IC (integrated circuit) on the Arduino is slightly different from board to board.
The micro controllers are usually of the ATMEL Company. You must know what IC your board has before
loading up a new program from the Arduino IDE. This information is available on the top of the IC. For more
details about the IC construction and functions, you can refer to the data sheet.
8. ICSP pin: Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino consisting of MOSI,
MISO, SCK, RESET, VCC, and GND. It is often referred to as an SPI (Serial Peripheral Interface), which
could be considered as an "expansion" of the output. Actually, you are slaving the output device to the master
of the SPI bus.
9. Power LED indicator: This LED should light up when you plug your Arduino into a power source to
indicate that your board is powered up correctly. If this light does not turn on, then there is something wrong
with the connection.
10. TX and RX LEDs On your board, you will find two labels: TX (transmit) and RX (receive). They appear
in two places on the Arduino UNO board. First, at the digital pins 0 and 1, to indicate the pins responsible for
serial communication. Second, the TX and RX led (13). The TX led flashes with different speed while
sending the serial data. The speed of flashing depends on the baud rate used by the board. RX flashes during
the receiving process.
11. Digital I/O: The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM (Pulse Width
Modulation) output. These pins can be configured to work as input digital pins to read logic values (0 or 1) or
as digital output pins to drive different modules like LEDs, relays, etc. The pins labeled “~” can be used to
generate PWM.
12. AREF: AREF stands for Analog Reference. It is sometimes, used to set an external reference voltage
(between 0 and 5 Volts) as the upper limit for the analog input pins

Course Name: IoT Lab Course Code: 21CSP-344


Name: Darshit Sheth UID: 21BCS7782
Steps to Program an Arduino:

1. Install Arduino IDE: Download and install the Arduino Integrated Development Environment (IDE) from
the official website.
2. Connect Arduino: Connect your Arduino board to your computer using a USB cable.
3. Select Board: Open the Arduino IDE, go to "Tools" > "Board" and select the appropriate Arduino board
model.
4. Choose Port: In the "Tools" menu, select the correct serial port under "Port."
5. Write Code: In the IDE, write or copy your Arduino code. This code will control your board's behavior.
6. Verify Code: Click the "Verify" button (checkmark icon) to check for syntax errors in your code.
7. Upload Code: Click the "Upload" button (right arrow icon) to compile and upload your code to the
Arduino board.
8. Monitor Output: Open the Serial Monitor (under "Tools") to see output or debug messages from your
code.

Advantages of Arduino Board:

1. User-Friendly: Arduino offers a simple and beginner-friendly programming environment, making it


accessible to newcomers.
2. Open Source: Both hardware and software are open source, promoting collaboration, customization, and
sharing within the community.
3. Abundant Libraries: A wide variety of libraries streamline coding tasks by providing ready-made
functions for different components.
4. Versatile Applications: Arduino boards are suitable for a broad range of projects, from robotics to home
automation and creative arts.
5. Affordability: Arduino is cost-effective, enabling experimentation and learning without a substantial
financial investment.
6. Community Support: A large and active community provides ample resources, tutorials, and assistance
for troubleshooting and inspiration.
7. Cross-Platform Compatibility: Arduino IDE works on multiple operating systems, ensuring broad
accessibility.
8. Rapid Prototyping: Arduino facilitates quick testing and iteration of ideas, accelerating the development
process for projects.

Download & Installation of the Arduino Software (IDE):

Get the latest version from the download page. You can choose between the Installer (.exe) and the Zip
packages. We suggest you use the first one that installs directly everything you need to use the Arduino
Course Name: IoT Lab Course Code: 21CSP-344
Name: Darshit Sheth UID: 21BCS7782
Software (IDE), including the drivers. With the Zip package, you need to install the drivers manually. The Zip
file is also useful if you want to create a portable installation.

When the download finishes, proceed with the installation and please allow the driver installation process
when you get a warning from the operating system.

Choose the components to install. Choose the installation directory.

Installation in progress.
The process will extract and install all the required files to execute properly the Arduino Software (IDE)

Learning Outcomes:
1. Acquired knowledge about the installation process of the Arduino IDE.
2. Gained an understanding of coding within the Arduino IDE.
3. Mastered the process of connecting an Arduino Uno to the IDE.
4. Acquired insight into the different components of the Arduino board.

Course Name: IoT Lab Course Code: 21CSP-344


Name: Darshit Sheth UID: 21BCS7782

You might also like