getting started with the arduino uno richard t. vannoy ii [email protected]...

27
Getting Started With the Arduino Uno Richard T. Vannoy II [email protected] [email protected] http://www.RichardVannoy.info/arduino. php

Upload: lambert-davidson

Post on 18-Jan-2016

228 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Getting Started With the Arduino Uno

Richard T. Vannoy [email protected]@GMail.com

http://www.RichardVannoy.info/arduino.php

Page 2: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Arduino Flavors

Mega 2560 $70Uno $37LilyPad $20 Nano $26

Page 3: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com
Page 4: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments 14 Digital I/O Pins

(pins 0-13)

Page 5: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments DC Current Limit =

40 mAMeans you can drive an LED or the base of a transistor, but not a motor or a relay or other high current device.

Page 6: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

6 Analog In Pins[Converts 0-5 Volts to digital 0-1023]

(pins 0-5)

Pin Assignments

Page 7: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

6 pins can be reprogrammed as Analog Out Pins

(pins 11, 10, 9, 6, 5, 3)

Page 8: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

USB Port and AC Adapter

The USB Port supplies power to the board.

Page 9: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

USB Port and AC Adapter

If the user connects a standard 9 Volt adapter to the power connector, Arduino will shift to

the adapter power supply.

Page 10: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

USB Port and AC Adapter

Recommended input voltage: 7-12VInput voltage limits: 6-20V (Less than 7 volts, board may be unstable. More that 12 volts may overheat and damage the board!)

Page 11: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

vin: This pin comes from the external power, whatever that is. You can tap off that power here for other uses.

Page 12: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

5V: This pin comes from the internal regulated 5 volt supply.

Page 13: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

3V3: A 3.3 volt supply from the FTDI chip. Max current draw = 50 mA.

Page 14: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

3.3 Volt Power Supply

Page 15: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Uno Pin AssignmentsGND: Ground pins

Page 16: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

RX: Used to receive serial data.

TX: Used to transmit/send serial data.

Page 17: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

Pulse Width Modulation (PWM): A way of sending variable width digital pulses that are seen as a discrete DC voltage by DC motors. Controls the effective voltage, therefore the speed of the motor.

Pins 3, 5, 6, 9, 10, 11 can be used for PWM.

Page 18: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Duemilanove Pin Assignments

Pin 13 connects to a built-in LED, labeled “L”.

This LED lights when pin 13 is HIGH.

Page 19: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

When receiving an analog input (say temperature), you sometimes want to compare that reading with some reference (say desired temperature). The REF pin can supply that reference voltage.

Page 20: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Pin Assignments

Sending a LOW to the reset pin will reset the board.

Page 21: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com
Page 22: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com
Page 23: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Shields • Ethernet• Wifi• GPS• Data Logging• Cell• Video • Audio • Acelerometer• XBee

MP3RS232Smoke

DetectorVoltage

regulator

Page 24: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Integrated Development Environment (IDE)

As with any IDE, the software allows you to: - Write source code (called sketches by Arduino ) - Compile and test code - Load a program into the board

Page 25: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

IDE Installation

1. Download the IDE from: http://www.arduino.cc/en/Main/Software And follow the installation instructions.2. Install the USB drivers (They allow your computer to talk to the board through the USB port). In the “Found New Hardware” Wizard, direct the wizard to the folder where the IDE was installed. Look for the folder: Drivers\FTDI USB Drivers 3. Launch the IDE.

Page 26: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

Port Identification

• In “My Computer Properties”, navigate to the “Device Manager” dialog box.

• Under “Ports (COM & LPT), look for an entry like: “USB Serial Port (COMx)”, where x is some COM port.

• In the IDE, select that port from the “Tools Serial Port” menu to identify to the IDE which port you are using.

Page 27: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com

27

The End

Any questions?