文档介绍:Spooky Projects
Introduction to Microcontrollers with Arduino
Class 1
7 Oct 2006 - machineproject - Tod E. Kurt
Everyone’s had a little programming experience, right?
Who’s had any electrical experience?
What’s for Today
• Introduction to Arduino
• Building an LED flashlight
• Making some blinky LED eyes
Class Kit
What’s in your goodie bag
Class Kit Manifest
• Arduino NG USB board • two push switches
• Arduino ProtoShield • 9V battery and connector
• Solderless breadboard • 220, 330, 10k, and 1M
resistors
• USB cable
• light sensitive resistor
• RC servo
• zener diode
• piezo buzzer
• square of velcro
• 6m hookup wire in ghastly
colors • scary eyeballs
• potentiometer with knob
• R,G,B and mystery LEDs
And other bits as we progress
Ignore most of the kit for now, just use Arduino board and USB cable
Complete kit manifest with part numbers will be online
A Word on Safety
• Electronics are toxic to you
• Lead in some of the parts
• Wash up afterwards
• You are toxic to electronics
• Static-sensitive: don’t shuffle your feet
• Wires only bend so much
What is Arduino?
• Open Source puting Platform
• open source: free to inspect & modify
• puting. er, what? puting, pervasive
computing, ambient intelligence, puting, everyware, spimes, blogjects, smart objects...
• A physical board, a programming
environment, a development philosophy
• puter you can program
• Completely stand-alone, talks to other devices
puting as puting
Can run of a battery
Can talk to puters, cell phones, etc.
What is Arduino?
• Based on AVR-GCC, avr-libc, AVRlib and
Processing (all open source projects)
• Very similar to Basic Stamp (if you know it)
• but cheaper, faster, & open
• Uses AVR ATmega8 microcontroller chip
Basic Stamp uses PIC microcontroller chip.
PICs and AVRs are parable, one’s not necessarily better than the other
AVRs are a little better if you’re using a language like C (stack-based)
Do