Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Course Name- Microcontroller and Applications

Course Code- ECE-401


Lecture No-34

Topic –Lec34 Arduino Uno


Date- /2022

Model Institute of
Engineering & Technology
Assessment and Evaluation Plan

• Assessment Tools • Evaluation


• Assignment • 20 marks
• Sessionals • 20 marks
• Attendance • 10 marks
• External Exam • 100 marks
Course Outcomes
Course Description Mapping with Program
Outcomes Outcomes and Program
Specific Outcomes

Understand the general architecture of Microprocessors and 1,2,3,4


Microcontrollers.
CO1

Apply knowledge and demonstrate the program proficiency using the 1,2,3,5
various addressing modes logics and commands.
CO2

Articulate the interrupts and serial communication of 8051 1,2,3,5


microcontroller.
CO3

Develop interfacing circuits for different peripheral devices. 1,2,3,4,5

CO4

Use microcontroller development board to solve the various engineering 1,2,3,4,5,6,12


problems.
CO5
Course Outcome 5-Delivery Plan
Course Outcomes Topics Blooms Taxonomy

Introduction to Arduino, Programming Tools Applying


and Programming language for development
board.
Interfacing with analog and digital sensors, Analysis
display devices
Interfacing with actuator, serial Analysis
CO-5
communication,

Interfacing with wireless communication using Analysis


RF module
speed and direction control of Stepper Motors Applying
Outcomes of Today’s Lecture

Introduction to Arduino, Programming Tools and Programming language for


development board.
Arduino Uno Board-Introduction
Arduino Uno Board-Introduction

Power USB Power (Barrel Jack) Voltage Regulator


Arduino board can be Arduino boards can be The function of the
powered by using the USB powered directly from the voltage regulator is to
cable from your computer. AC mains power supply control the voltage given
by connecting it to the to the Arduino board and
Barrel Jack stabilize the DC voltages
used by the processor and
other elements

Crystal Oscillator Arduino Reset Pins (3.3, 5, GND, Vin)


The number printed on top You can reset your 3.3V (6) − Supply 3.3
of the Arduino crystal is Arduino board, i.e., start output volt
16.000H9H. It tells us that your program from the 5V (7) − Supply 5 output
the frequency is beginning. volt
16,000,000 Hertz or 16
MHz.
Arduino Uno Board-Introduction

Analog pins Main microcontroller Power LED indicator


The Arduino UNO board has six Each Arduino board has its This LED should light up when
analog input pins A0 through A5. own microcontroller (11). you plug your Arduino into a
These pins can read the signal You can assume it as the power source to indicate that
from an analog sensor like the brain of your board. The your board is powered up
humidity sensor or temperature main IC (integrated circuit) correctly. 
sensor and convert it into a digital on the Arduino is slightly
value that can be read by the different from board to
microprocessor. board

TX and RX LEDs Digital I/O AREF


On your board, you will find two The Arduino UNO board AREF stands for Analog
labels: TX (transmit) and RX has 14 digital I/O pins (15) Reference. It is sometimes,
(receive). They appear in two (of which 6 provide PWM used to set an external reference
places on the Arduino UNO board. (Pulse Width Modulation) voltage (between 0 and 5 Volts)
First, at the digital pins 0 and 1, to output. as the upper limit for the analog
indicate the pins responsible for input pins.
serial communication. Second, the
TX and RX led (13)
Programming Arduino

 Once arduino IDE is installed on the computer, connect the board with
computer using USB cable. Now open the arduino IDE and choose the
correct board by selecting Tools>Boards>Arduino/Genuino Uno, and
choose the correct Port by selecting Tools>Port.
 Arduino Uno is programmed using Arduino programming language
based on Wiring. To get it started with Arduino Uno board and blink the
built-in LED, load the example code by selecting
Files>Examples>Basics>Blink.
 Once the example code (also shown below) is loaded into your IDE,
click on the ‘upload’ button given on the top bar. Once the upload is
finished, you should see the Arduino’s built-in LED blinking.  Below is
Example_blinking code

// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second }
Thank You

You might also like