getting started with the arduino uno richard t. vannoy ii [email protected]...
TRANSCRIPT
![Page 1: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/1.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/3.jpg)
![Page 4: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/10.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/11.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/12.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/13.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/14.jpg)
3.3 Volt Power Supply
![Page 15: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/15.jpg)
Uno Pin AssignmentsGND: Ground pins
![Page 16: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/16.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/17.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/18.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/19.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/20.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/21.jpg)
![Page 22: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/22.jpg)
![Page 23: Getting Started With the Arduino Uno Richard T. Vannoy II Rvannoy@ITT-Tech.edu RoboticsProfessor@GMail.com](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/23.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/24.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/25.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/26.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062423/5697bfb71a28abf838c9e9a6/html5/thumbnails/27.jpg)
27
The End
Any questions?