Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MICROCONTROLLER BOARDS
2.1 Introduction to Arduino
Arduino is a microcontroller platform that has captured the
imagination of electronics enthusiasts. Its ease of use and open
source nature make it a great choice for anyone wanting to build
electronic projects. Ultimately, it allows you to connect electronics
through its pins so that it can control things-for instance, turn light
or motors on and off or sense things such as light and
temperature. This is why Arduino is sometimes given the
description physical computing. Because Arduino can be
connected to your computer by a universal serial bus (USB) lead,
this also means that you can use the Arduino as an interface board
to control those same electronics from your computer [4].
Arduino is an open-source single-board microcontroller,
descendant of the open-source Wiring platform, designed to make
the process of using electronics in multidisciplinary projects more
accessible. The hardware consists of a simple open hardware
design for the Adriano board with an Atmel AVR processor and
on-board input/output support. The software consists of a standard
programming language compiler and the boot loader that runs on
the board [3].
Arduino hardware is programmed using a Wiring-based language
(syntax and libraries), similar to C++ with some slight
simplifications and modifications, and a Processing-based
integrated development environment [3].
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
2.3.5 Microcontroller
Continuing our tour of the Arduino board, the microcontroller
chip itself is the black rectangular device with 28 pins. This is
fitted into a dual in-line (DIL) socket so that it can be easily
replaced as shown in figure (2.1). The 28-pin microcontroller chip
used on the Arduino Uno board is the ATmega328. Figure (2.2) is a
block diagram showing the main features of this device [4].
The heart, or perhaps more appropriately, the brain of the device
is the central processing unit (CPU). It controls everything that
goes on within the device. It fetches program instructions stored
in the flash memory and executes them. This might involve
fetching data from working memory (RAM), changing it, and then
putting it back. Or, it may mean changing one of the digital
outputs from 0V to 5V [4].
The EEPROM memory is a little like the flash memory in that it is
non-volatile. That is, you can turn the device off and on and it will
not have forgotten what is in the EEPROM. Whereas the flash
memory is intended for storing program instructions (from
sketches), the EEPROM is used to store data that you do not want
to lose in the event of a reset or the power being turned off [4],
[6].
The microcontroller also has input / output (I/O) ports. These ports
link the microcontroller to the rest of electronic devices.
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
subtraction,
or
another
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
2.4.4 Bluetooth
9
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
10
CHAPTER TWO
INTRODUCTION TO ARDUINO
MICROCONTROLLER
11