Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
48 views

Module 02 Introduction To Microcontrollers V1

The document provides an overview of microcontrollers and the Arduino platform. It describes Arduino as an open-source hardware and software platform used for physical computing. The Arduino board contains a microcontroller chip and inputs/outputs that allow it to interact with the physical world. Users write programs, or sketches, in the Arduino IDE software and upload them to the board to control it. The document outlines the main components of the Arduino Uno board and how it can be powered and programmed.

Uploaded by

JASPER PAYAPAYA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Module 02 Introduction To Microcontrollers V1

The document provides an overview of microcontrollers and the Arduino platform. It describes Arduino as an open-source hardware and software platform used for physical computing. The Arduino board contains a microcontroller chip and inputs/outputs that allow it to interact with the physical world. Users write programs, or sketches, in the Arduino IDE software and upload them to the board to control it. The document outlines the main components of the Arduino Uno board and how it can be powered and programmed.

Uploaded by

JASPER PAYAPAYA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Microprocessors

Module 2
Introduction to
Microcontrollers
1. Orient the students on the features of the
microcontroller.
2. Orient the students on the structure of an Arduino
Sketch.
3. Orient the students on the instruction set of the
Arduino Uno.
Arduino is an open source physical computing platform
based on a simple input/output (I/O) board and
development environment that implements the
Processing language.

Arduino can be used to develop standalone interactive


objects or can be connected to software on your
computer.
The boards can be assembled by hand or purchased
preassembled; the open source IDE (integrated
Development Environment) can be downloaded for free
from www.Arduino.cc.
Arduino is different from other platforms on the market
because of these features:

It is a multiplatform environment; it can run on Windows,


Macintosh, and Linux.
It is based on the Processing programming IDE, an
easy-to-use development environment used by artists
and designers.
You program it via USB cable, not a serial port. This
feature is useful, because many modern computers don’t
have serial ports.
It is open source hardware and software – if you wish,
you can download the circuit diagram, buy all the
components, and make your own, without paying
anything to the makers of Arduino.
The hardware is cheap. The USB board cost about
35USD and replacing a burnt-out chip on the board is
easy and costs no more than 4USD. So you can afford to
make mistakes.
There is an active community of users, so there are
plenty of people who can help you.
The Arduino Project was developed in an educational
environment and is therefore great for newcomers to get
things working quickly.
The Arduino Platform
Arduino is composed of two major parts: the Arduino
board, which is the piece of hardware you work on when
you build your objects; and the Arduino IDE, the piece of
software you run on your computer.

You use the IDE to create a “sketch” (a little computer


program) that you upload to the Arduino board. The
sketch tells the board what to do.
The Arduino board is a small microcontroller board,
which is a small circuit (board) that contains a whole
computer on a small chip (the microcontroller).
If you look at the Arduino board: you’ll see a black chip
with 28 pins – that chip is the Atmega328, the heart of
your board (the microcontroller).
The Arduino team have placed on this board all the
components that are required for this microcontroller to
work properly and to communicate with your computer.
There are many versions of this board; the one we’ll use
throughout this discussion is the Arduino Uno, which is
the simplest one to use and the best one for learning on.
Digital IO pins (pins 0-13) – these can be inputs or
outputs, which is specified by the sketch you create in
the IDE.

6 Analogue In pins (pins 0-5) – these dedicated analogue


input pins take analogue values (i.e., voltage readings
from a sensor) and convert them into a number between
0 and 1023.
6 Analogue Out pins (pins 3,5,6,9,10, and 11) – these are
actually six of the digital pins that can be reprogrammed
for analogue output using the sketch you create in the
IDE.
the board can be powered from your computer’s USB
port, most USB chargers, or an AC adapter (9 volts
recommended, 2.1mm barrel tip, center positive). If there
is no power supply plugged into the power socket, the
power will come from the USB board, but as soon as you
plug a power supply, the board will automatically use it.
Simon Monk (2016), Programming Arduino:Getting
Started with Sketches , Second Edition, Mc-Graw Hill
Education
S. Mathur(2016), Microprocessor and Microcontrollers,
PHI Learning and Private Limited
http://playground.arduino.cc/
Taylor and Francis Group. Essentials of Computer
Architecture. CRC Press, Comer, D. (2017).
Jones and Bartlett Learning, Computer Organization And
Architecture (10th Ed.), Stallings, (2016)

You might also like