Top Banner
Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009
16

Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Dec 27, 2015

Download

Documents

Alexia McCoy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Introduction to Arduino

Chris Meyer

Enlight Tech Talk - 2009

http://www.danielandrade.net/

Page 2: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Arduino

ARRRR, like a pirate // DWEE, just say "do we“ fast /

/ NO, as in no.

”ARRR-DWEE-NO”

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1191602549%3Bstart=all

Page 3: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

What is Arduino?

• Open Source Hardware Development Platform• USB Programmable Microcontroller (MCU)

$30 Investment!

Page 4: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Microcontroller?

Miniature Computer• Processor, Storage and RAM

all in one tiny package!• Atmel Microcontroller

(MCU), typically Atmega328

Atmega328 InformationComponent Specification

Clock Speed 16MHz

Flash Memory 32K

EEPROM 1K

SRAM 2K

Analog -> Digital 6Ch 10bit

Communication SPI

Digital 14 I/O

PWM 6 Channel (Digital)

Page 5: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Shields?

• Shields break-out/wire-up additional components to MCU

Prototyping

Audio / MP3

Ethernet

GPS

Servo/Stepper/DC Motors

Page 6: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

More Shields!LCD

WIFI

Zigbee

MIDI

LED Display

Page 7: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

So What?

• Previously, MCU’s were very difficult to learn to use

• Required learning libraries, specialized protocols, timings, code minimization, 1,000+ page documentation

Page 8: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Arduino makes it Easy!

@Arduino.cc

Page 9: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Use Arduino to Control Things

• We’re going to:– Drive Servo– LED– Buzzer– Read analog voltage in

Page 10: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Servo Control

• Pulse Width Modulation (PWM)• We Provide:

http://www.micromouseinfo.com/introduction/images/intro_hardware/PWM.gif

+5VDCPWM Signal

Ground

0-180 DegreeRange of Motion

We Get:

Page 11: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Transistor Output

• Use a transistor to “multiply” low power output from MCU to higher power to drive something

RelayTransistor

http://www.kpsec.freeuk.com/trancirc.htm

Page 12: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

• Take voltage signal and convert to discrete digital signal

5V

0V

1024 Bits

0 Bits

Analog -> Digital

Analog Input

Digital Equivalent

Page 13: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Analog -> Digital

• Also have to worry about resolution of acquisition (Bit-Noise)

http://zone.ni.com/cms/images/devzone/tut/dhall_analog_sig_0.JPG

Page 14: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Pinout

Page 15: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Demo Time!

Page 16: Introduction to Arduino Chris Meyer Enlight Tech Talk - 2009

Questions?

http://www.danielandrade.net/