arduino101_present_20130122

Download Report

Transcript arduino101_present_20130122

Arduino 101
Instructors: Ted Markson / Jim Sweeney
Class Goals





Introduce the Arduino to everyone
Look at some cool projects you can do!
Setup and orient students in the Arduino IDE
Upload to an Arduino Uno
Start basic tutorials
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Introduction
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
What the heck is Arduino?


Based on a simple micro-controller board, and
A development environment (IDE) for writing software
for the board

Arduino can be used to develop interactive objects, taking inputs from a
variety of switches or sensors, and controlling a variety of lights, motors, and
other physical outputs. Arduino projects can be stand-alone, or they can be
communicate with software running on your computer (e.g. Flash, Processing,
MaxMSP.) The boards can be assembled by hand or purchased
preassembled; the open-source IDE can be downloaded for free.

The Arduino programming language is an implementation of Wiring, a similar
physical computing platform, which is based on the Processing multimedia
programming environment.
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
What the heck is Arduino?

But let’s get it right from the horses mouth:

http://www.youtube.com/watch?feature=player_detail
page&v=UoBUXOOdLXY
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Hardware

Why use Arduino?

Inexpensive



bought less than $50.00
assemble your own for less than that

Cross Platform IDE (Windows, MAC, Linux)

Open source IDE and extensions
Types of Arduinos.


http://arduino.cc/en/Main/Products?from=Main.Hardware
We have a few examples here for you!
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Sample Specs: Arduino Uno

Microcontoller:
ATmega 328

Operating Voltage
5V

Input Voltage (recommended) 7-12V

Input Voltage (limits)
6-20V

Digital I/O Pins
14 (of which 6 provide PWM output)

Analog Input Pins
6

DC Current per I/O Pin
40 mA

DC Current for 3.3V Pin
50 mA

Flash Memory
32 KB (of which 0.5 KB used by bootloader)

SRAM
2 KB (ATmega328)

EEPROM
1 KB (ATmega328)

Clock Speed
16 MHz
7
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Sample Specs: Arduino Mega

physically larger than all the other boards

offers significantly more digital and analog pins.

uses a different processor allowing greater program size

Microcontroller:

Operating Voltage 5V

Input Voltage:
7-12V

Digital I/O Pins
54 (of which 14 provide PWM output)

Analog Input Pins 16

Flash Memory
128 KB of which 4 KB used by bootloader

SRAM
8 KB

EEPROM
4 KB

Clock Speed
16 MHZ
8
ATmega1280
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Software

What is a Sketch?

Recommend starting with:



“Learning Arduino” by Alan G. Smith
http://introtoarduino.com/
Full language reference available here:

http://arduino.cc/en/Reference/HomePage
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Arduino IDE
(Integrated Development Environment)
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Let’s install the Arduino IDE

http://arduino.cc/en/Guide/HomePage
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Libraries

What are they?


http://arduino.cc/en/Guide/Libraries
Need references?

http://arduino.cc/en/Reference/Libraries
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Tutorials
http://arduino.cc/hu/Tutorial/HomePage
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Here is a good one to start with

Introduction to Arduino: A Piece of Cake


by Alan G. Smith
Free PDF can be found here:

14
http://introtoarduino.com/
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Tutorials



BlinkAnLED (Chapter 1)
Blink a series of LED’s (Chapter 2)
Pushbuttons (Chapter 3)
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Practical Applications
http://arduino.cc/hu/Tutorial/HomePage
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Applications







Light control
Motor control
Automation
Robotics
Networking
Custom protocols
Your imagination is the limit…
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13
Questions?
Arduino 101 with Ted Markson / Jim Sweeney
01/21/13