getting started with the arduino uno richard t. vannoy ii [email protected]...
TRANSCRIPT
Getting Started With the Arduino Uno
Richard T. Vannoy [email protected]@GMail.com
http://www.RichardVannoy.info/arduino.php
Arduino Flavors
Mega 2560 $70Uno $37LilyPad $20 Nano $26
Pin Assignments 14 Digital I/O Pins
(pins 0-13)
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.
6 Analog In Pins[Converts 0-5 Volts to digital 0-1023]
(pins 0-5)
Pin Assignments
Pin Assignments
6 pins can be reprogrammed as Analog Out Pins
(pins 11, 10, 9, 6, 5, 3)
USB Port and AC Adapter
The USB Port supplies power to the board.
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.
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!)
Pin Assignments
vin: This pin comes from the external power, whatever that is. You can tap off that power here for other uses.
Pin Assignments
5V: This pin comes from the internal regulated 5 volt supply.
Pin Assignments
3V3: A 3.3 volt supply from the FTDI chip. Max current draw = 50 mA.
3.3 Volt Power Supply
Uno Pin AssignmentsGND: Ground pins
Pin Assignments
RX: Used to receive serial data.
TX: Used to transmit/send serial data.
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.
Duemilanove Pin Assignments
Pin 13 connects to a built-in LED, labeled “L”.
This LED lights when pin 13 is HIGH.
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.
Pin Assignments
Sending a LOW to the reset pin will reset the board.
Shields • Ethernet• Wifi• GPS• Data Logging• Cell• Video • Audio • Acelerometer• XBee
MP3RS232Smoke
DetectorVoltage
regulator
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
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.
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.
27
The End
Any questions?