Introduction To Arduino Boards
Introduction To Arduino Boards
Introduction To Arduino Boards
Boards
Overview
Introduction to Microcontroller
Arduino boards
Quark – SOC processor
Programming
Arduino boards using GPIO
System design application
Case study
Architecture of advanced processors
Microcontrollers
Programmers work in the virtual world.
Machinery works in the physical world.
How does one connect the virtual world to the
physical world?
By microcontroller
A microcontroller is basically a small-scale
computer with generalized (and programmable)
inputs and outputs
They are dedicated to one task and run one
specific program
Microcontrollers are compact integrated circuit
designed to govern a specific operation in an
embedded system
A typical microcontroller includes a processor,
memory, and I/O peripherals on a single chip
while a microprocessor only contains the CPU.
Microcontrollers and Microprocessors are NOT
the same,
Microprocessors are used to execute big and generic
applications
Microcontrollers are used to execute a single task
within one application
Architecture
Microcontrollers architecture is based on two
types
Harvard architecture
Neumann architecture
Fast prototyping
Large community
Inexpensive.
Arduino Types
Many different versions
Number of input/output channels
Form factor
Processor
Uno
Leonardo
Due
Micro
LilyPad
Esplora
Arduino Uno Close Up
The pins are in three groups:
Invented in 2010
14 digital pins
6 analog pins
power
LilyPad
LilyPad is popular for clothing-based projects.
Esplora
Game controller
Includes joystick, four buttons, linear
potentiometer (slider), microphone, light sensor,
temperature sensor, three-axis accelerometer.
Not the standard set of IO pins.
Where to Start
Get an Arduino (starter kit)
Download the compiler
Connect the controller
Configure the compiler
Connect the circuit
Write the program
Get frustrated/Debug/Get it to work
Get excited and immediately start next project
(sleep is for wimps)
Arduino Starter Kits
Start with a combo pack (starter kit)
Includes a microcontroller, wire, LEDs, sensors, etc.
www.adafruit.com
adafruit.com/products/68 ($65)
www.sparkfun.com
https://www.sparkfun.com/products/11576 ($99.95)
Radio Shack
Make Ultimate Microcontroller Pack w/ Arduino Kit ($119.99)
www.makershed.com
http://www.makershed.com/Ultimate_Arduino_Microcontroller_Pack_p/msump1.
htm ($150)
What to Get – My Recommendation
Required: Good Idea:
Arduino (such as Uno) Capacitors
USB A-B (printer) cable Transistors
Breadboard DC motor/servo
Hookup wire Relay
LEDs
Advanced:
Resistors
Soldering iron & solder
Sensors
Heat shrink tubing
Switches
9V battery adapter
Bench power supply
Arduino Compiler
Download current compiler from:
arduino.cc/en/Main/software
Arrogantly refers to itself as an IDE (Ha!).
Run the software installer.
Written in Java, it is fairly slow.
Visit playground.arduino.cc/Main/
DevelopmentTools for alternatives to the
base arduino IDE
Configuring the Arduino Compiler
Defaults to COM1, will probably need to change
the COM port setting.
Appears in Device Manager (Win7) under Ports
as a Comm port.
Arduino Program Development
Based on C++ without 80% of the instructions.
A handful of new commands.
Programs are called 'sketches'.
Sketches need two functions:
void setup( )
void loop( )
digitalWrite(5, HIGH);
delay (200);
digitalWrite(5, LOW);
digitalWrite(7, HIGH);
delay (200);
digitalWrite(7, LOW);
}
So What?
Great. Blinking lights. Not impressed.
Only covered output thus far.
Can use analog inputs to detect a physical
phenomena.
Inputs
Digital inputs will come to the Arduino as either
on or off (HIGH or LOW, respectively).
HIGH is 5V DC.
LOW is 0V DC.
Motor
Prototype
shieldlist.org
Case study :Arduinno based Home
Automation System
System design application