Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

EE 260 Lecture 2

Introduction to Arduino
Team Tasks:
Appropriate Microcontroller Use.
• Distribute articles under Canvas>Files>Advantages!
• Review articles!
• Compare/Contrast between microcontroller and other
device!
• Show strengths & weaknesses of each!
• Give an application of each!
• Prepare for a Presentation on the scheduled date.
EE 260 Lecture 2: Introduction to Arduino
Possible Applications
Would either be able to control…?
• OBD II (On Board Diagnostics) reader/controller!
• Whole Home Automation (with appropriate light
switches/plugs)!
• MIDI device!
• MP3 playing!
• Dishwasher!
• Password Cracker
EE 260 Lecture 2: Introduction to Arduino
Examples
• What is an application for which the device is
OVERKILL?!
• What is an application for which the device is
inadequate?

EE 260 Lecture 2: Introduction to Arduino


Team Tasks:
Appropriate Microcontroller Use.
Comparison
µC vs. ASIC
µC vs. CPLD
µC vs. DSP
µC vs. FPGA
µC vs. PLC
µC vs. µP

EE 260 Lecture 2: Introduction to Arduino


Team Tasks:
Compare/Contrast at least 5 of the following:
1. Computational 5. Ease of 9. Communication
Power! Interfacing with other
2. Ease of (analog & dig.)! devices!
Programming! 6. Overall system 10.Timer/Counter
3. Speed of cost! Functions!
Operation! 7. Reconfiguration! 11. Handling media!
4. Interrupts! 8. Versatility! 12.Overall time
required

EE 260 Lecture 2: Introduction to Arduino


Arduino
Overview
Arduino Uno

EE 260 Lecture 2: Introduction to Arduino


Arduino Uno

EE 260 Lecture 2: Introduction to Arduino


Compatibles

EE 260 Lecture 2: Introduction to Arduino


Shields

EE 260 Lecture 2: Introduction to Arduino


GPIO
• General Purpose Input/Output!
• Can be used as digital input or output!
• Each pin uniquely assignable.!
• “Analog” (PWM) output on digital pins
3,5,6,9,10,11!
• Analog pins 0-5 can also be used as GPIO.

EE 260 Lecture 2: Introduction to Arduino


Digital Inputs

Discrete!
Inputs

EE 260 Lecture 2: Introduction to Arduino


Digital Inputs: I2C

SDA

SCL

EE 260 Lecture 2: Introduction to Arduino


Digital Inputs: SPI

EE 260 Lecture 2: Introduction to Arduino


Digital Inputs: SPI

Arduino Device

EE 260 Lecture 2: Introduction to Arduino


Analog Inputs
• Takes a continuous-valued input signal from 0-5v!
• Assigns the input a value from 0-­‐1027
INPUT inside
Arduino

5v 1027

EE 260 Lecture 2: Introduction to Arduino


“Analog” Outputs: PWM
• PWM is defined in terms of its period and its duty
cycle.

ton
period – T
ton
Duty Cycle: = 100 ⇥ (%)
T
EE 260 Lecture 2: Introduction to Arduino
“Analog” Outputs: PWM

PWM Signal LED

EE 260 Lecture 2: Introduction to Arduino


Hardware & Software

Software

• Arduino IDE!
• C/C++!
• ASM

EE 260 Lecture 2: Introduction to Arduino


Software Comparison

Arduino IDE C/C++ ASM

Ease of
Easy Moderate Challenging
Development

Libraries Many Many None

Speed SLOW Fast FAST as Possible

Accessibility of
processor Very Limited Most ALL
features

EE 260 Lecture 2: Introduction to Arduino


Software: Arduino IDE
• Free software!
• Download from!
• http://arduino.cc/en/Main/Software  
• Available for Mac, Windows, Linux

EE 260 Lecture 2: Introduction to Arduino

You might also like