MDM in Internet of Things
Embedded for IoT
Course Code : N-MDMCM501T/N-MDMCD501T
Course In-charge: Mr. Shailesh M. Sakhare
UNIT-I
Introduction to Arduino and
Peripheral Interfacing
Contents
Arduino Uno architecture
Pin configuration
Arduino libraries
Embedded C programming for Arduino
Interfacing: LED, Push button, Buzzer, LCD
Introduction to Arduino
Arduino is a well-known name today in the field of embedded systems and
the Internet of Things (IoT).
The creator of Arduino created it with the motivation to make electronics
accessible to everyone (even to people with non-engineering backgrounds).
They provide simplified microcontroller hardware and software tools that
people can easily use to program a microcontroller and build a creative
electronic system (also known as an embedded system in technical terms).
The Arduino Uno is the simplest microcontroller board, designed by the
creator of Arduino, and it was made open source. Since it is open source, you
can purchase a copy at a very low cost, which functions similarly to the original
Arduino Uno board.
Introduction to Arduino
The low-cost board can be very useful for students or those who cannot
afford the original board, which is costly for some students.
Arduino is a prototype platform (open-source) based on an easy-to-use
hardware and software.
It consists of a circuit board, which can be programed (referred to as a
microcontroller) and a ready-made software called Arduino IDE (Integrated
Development Environment), which is used to write and upload the computer
code to the physical board.
Key Features of Arduino
Arduino boards are able to read analog or digital input signals from different
sensors and turn it into an output such as activating a motor, turning LED on/off,
connect to the cloud and many other actions.
You can control your board functions by sending a set of instructions to the
microcontroller on the board via Arduino IDE (referred to as uploading
software).
Unlike most previous programmable circuit boards, Arduino does not need an
extra piece of hardware (called a programmer) in order to load a new code onto
the board. You can simply use a USB cable.
Additionally, the Arduino IDE uses a simplified version of C++, making it
easier to learn to program.
Arduino provides a standard form factor that breaks the functions of the
micro-controller into a more accessible package.
Architecture of Arduino
Technical Specifications of Arduino UNO
Arduino Uno Architecture
Arduino UNO is based on ATmega328P Microcontroller, an 8-bit AVR
Architecture based MCU from ATMEL.
Arduino UNO comes in two variants: one consists of a 28-pin DIP
Microcontroller while the other consists of 32 lead Quad Flat Package
Microcontroller.
There is a Type-B USB connector on the left short edge of the board, which
is used for powering on the board as well as programming the Microcontroller.
There is also a 2.1 mm DC jack to provide external power supply.
Apart from that, the layout of Arduino UNO is very much self-explanatory.
Arduino Uno Architecture
Arduino Uno Architecture
Pin Configuration of Arduino Uno
Pin Configuration of Arduino Uno
The pin diagram is a visual representation of the pins on the board.
It shows the location and function of each pin, making it easy to understand
how the board works.
The Arduino Uno board has 14 digital I/O pins, 6 analog pins, 4 power pins,
1 reset pin, and an ICSP header.