Download - Introduction Arduino
-
EE 260 Lecture 1Introduction to the Course
-
EE 260: Lecture 1 Course Overview & Introduction
Course Objectives
Interface a microcontroller to a variety of analog and digital input and output devices.!
Program a microcontroller to implement a closed-loop automatic control.!
Write and Troubleshoot assembly language code for a microcontroller.!
Analyze a problem to determine appropriate microcontroller use.
At the conclusion of this class, students should be able to:
-
EE 260: Lecture 1 Course Overview & Introduction
Required Acquisitions
Textbook ! Arduino (R3) + cable! Arduino IDE ! EduShield! (Project Book)
Buy: $54!Rent: $40.50
Will begin using this right away.
-
EE 260: Lecture 1 Course Overview & Introduction
Required Acquisitions
Textbook ! Arduino (R3) + USB cable! Arduino IDE ! EduShield! (Project Book) Buy: $22!
EE Office
Will begin using this 1/23/2014.
-
EE 260: Lecture 1 Course Overview & Introduction
Required Acquisitions
Textbook ! Arduino (R3) + USB cable! Arduino IDE ! EduShield! (Project Book) FREE!!
www.arduino.ccWill begin using this 1/23/2014.
-
EE 260: Lecture 1 Course Overview & Introduction
Required Acquisitions
Textbook ! Arduino (R3) + cable ! Arduino IDE ! EduShield! (Project Book)
Check Out: Free!Purchase: $35
Will begin using this 1/23/2014.
-
EE 260: Lecture 1 Course Overview & Introduction
Recommended Acquisitions
Textbook ! Arduino (R3) + cable! Arduino IDE ! EduShield! (Project Book)
Will use this later in teams.
-
EE 260: Lecture 1 Course Overview & Introduction
CANVAS
Assignments Posted/Submitted! Announcements! Grades! Groups! Files (Almost All)! Modules (Homework, Lectures, Exam Stuff)
-
EE 260: Lecture 1 Course Overview & Introduction
Lecture Videos
http://128.123.130.134/files260/Lectures/
-
EE 260: Lecture 1 Course Overview & Introduction
What is an Embedded System?
The integration of:! Sensors! Actuators! Intelligence!
with a system to produce:! More capable, versatile, and robust performance
-
EE 260: Lecture 1 Course Overview & Introduction
Appropriate Microcontroller Use
Intelligence is required in the system.! The complexity of a system is reduced when using one.! The cost of the microcontroller is less than using
discrete components to do the same job.! A variety of sensors and actuators must be integrated in
the system! Communication with other devices is necessary.
A microcontroller is a correct tool to use when:
-
EE 260: Lecture 1 Course Overview & Introduction
Appropriate Microcontroller Use
The system requires little or no intelligence.! The system can be made easier and/or cheaper using
discrete-components! The microcontroller is undersized for the problem!
too slow! too much number crunching required! too many things going on
A microcontroller is NOT the correct tool to use when:
-
EE 260: Lecture 1 Course Overview & Introduction
The Embedded System Concept Map
UserInterface
ControllerHardware
+Software
PowerInterface
Actuator
SignalConditioner
Systemneedingcontrol
PowerSource
PowerSource
Sensor
(Arduino)
-
EE 260: Lecture 1 Course Overview & Introduction
System Needing Control
Mechanical! Electrical! Electro-Mechanical (Mechatronic)! Biological! Thermodynamic! Chemical! .
-
EE 260: Lecture 1 Course Overview & Introduction
System Needing Control
Whats wrong with it?! What would we like to do with it?! What can we do with it?
-
EE 260: Lecture 1 Course Overview & Introduction
Example: SawStop
Powerful electric table saws can cut off fingers.! How to prevent this?! Organic bodies are conductive, and generally
softer than wood. Using this knowledge can be a clue to solving the problem.
-
EE 260: Lecture 1 Course Overview & Introduction
Example: SawStop
Smart saw applies a small electrical signal to the blade! Sensor and DSP monitor the signal.! When blade contacts skin, the signal changes! The change activates the safety system:!
An aluminum brake locks onto the blade! The blades momentum causes it to swing beneath the table
and out of the way! Power to the motor is shut off
-
EE 260: Lecture 1 Course Overview & Introduction
Example: SawStop
ControllerHardware
+Software
PowerInterface
Motor
Brake
DSP
SawBlade
PowerSource
Sensor
-
EE 260: Lecture 1 Course Overview & Introduction
Sensor + Signal Conditioner
Required for closed loop control! (What is the system called if it uses no sensor?)! Measures important system variable(s)! These measurements may need to be conditioned
for use by the brain.! The conditioning involves scaling, offsetting,
filtering, etc. required for the controller to have meaningful data.
-
EE 260: Lecture 1 Course Overview & Introduction
Power Source(s)
May need to provide multiple voltage levels (e.g., +5v, 12v, +24v)!
May need to supply power other than electrical (e.g., hydraulic, pneumatic, etc.)!
May require both high-power and low-power levels.
-
EE 260: Lecture 1 Course Overview & Introduction
Power Interface
Needs to do a power amplification! Able to handle the power requirements demanded
by the actuator! Usually analog, possibly PWM
0 2 4 6 8 10 12 14 16 18 200
50
100
150
200
250
0 2 4 6 8 10 12 14 16 18 20
0
0.2
0.4
0.6
0.8
1
-
EE 260: Lecture 1 Course Overview & Introduction
Actuator
Energy conversion device! Converts power to the kind needed by the
controlled device.! motor, brake, pump, solenoid, linear actuator,
flaps, etc.
-
EE 260: Lecture 1 Course Overview & Introduction
User Interface
Takes input commands from the user! Provides meaningful information to the user! Could be a:!
GUI! Meter! Numerical readout! Warning indicator! etc.
-
EE 260: Lecture 1 Course Overview & Introduction
Controller Hardware
Computer (analog or digital)! Microcontroller! Communication circuit!
other devices of UI! Interface Circuitry!
pullup/pulldown resistors! analog processing
-
EE 260: Lecture 1 Course Overview & Introduction
Controller Software
C/C++/Arduino IDE for many functions! Assembly language for higher speed functions! FPGA for highest speed (VHDL)
-
EE 260: Lecture 1 Course Overview & Introduction
Microcontroller MFGRsAMCC !Atmel!Comfile Technology
Inc.!Coridium!Cypress
MicroSystems!Dallas
Semiconductor !Elba Corp.!Freescale
Semiconductor !Fujitsu!
Holtek!Infineon!Intel!Microchip
Technology!National
Semiconductor!NEC!Parallax, Inc.!Philips
Semiconductors!PICAXE!Renesas Technology!
Silabs!Silicon Motion!STMicroelectronics!Texas Instruments!Toshiba!Western Design
Center!Ubicom!Xemics!Xilinx!ZiLOG
-
EE 260: Lecture 1 Course Overview & Introduction
Why the Arduino?
Improvement over other micro-controllers for hobby usage!
Inexpensive! IDE on multiple platforms (Mac, PC, Linux)! Simple, clear programming environment: C! Open source and extensible software/hardware! Arduino Shields
-
EE 260: Lecture 1 Course Overview & Introduction
Arduino Shields
VGA camera! GPS! LCD displays! Ethernet! WiFi! Motor control
(dc, stepper) !
Load Cell! Accelerometer/Gyros! LED displays! Memory Cards! Weather Sensors! Relays! Mobile Robot
-
EE 260: Lecture 1 Course Overview & Introduction
Arduino ApplicationsArduino Web Server
Ethernet
Storage
Processor
-
EE 260: Lecture 1 Course Overview & Introduction
Arduino Applications
Light dimmer that responds to music (MIDI)
AudioSource
Pre-AmpRectifier
HPF
BPF
LPF
A0
A1
A2
Relays
SpotLights
-
EE 260: Lecture 1 Course Overview & Introduction
Arduino Applications
Piano Gloves