Professional Documents
Culture Documents
Arduino Workshop
JAN RAY C. RULIDA
Welcome to this
workshop!
Before we beginquotes for
Inspiration
Learning is a treasure that will follow its owner
everywhere. ~Chinese Proverb
7-12 v
3 v GND
Analog Input Pins
5v
Lets Begin!
Installation Drivers: Windows 8, 7,
Vista, XP
Download from http://www.arduino.cc the latest version of
the Arduino software for your Arduino board. The latest
version at the moment is Arduino 1.0.6. Choose the
Windows Installer.
Run the installer and just follow the prompts and choose the
defaults presented by the installer
After installation, connect your Arduino to the computer
and then start the Arduino application
Getting Started: Blink an LED!
Connect your board via USB then Launch the
Arduino application.
From the Tools->Board menu, select Arduino Uno
From the Tools->Serial Port menu, select the new
serial port where your Arduino Uno is connected
Open the sketch (program)
File->Examples->01.Basics->Blink. Click the toolbar
button to upload it to your board.
Getting Started: Blink an LED!
Congratulations! Youve
programmed your first
microcontroller!
Arduino Terminology:
v
Arduino Sketch!
comments
v
functions
Arduino Sketch!
v
variable
Arduino Analog I/O functions:
analogRead(pin)
Reads an analog value from 0 to 1023 on pins A0 to
A5. This means an input voltage between 0 to 5 volts on
pins A0 to A5 will mapped to integer values between 0 to
1023.
analogWrite(pin, value)
Writes an analog value (PWM wave) on PWM pin.
Arduino Digital I/O functions:
pinMode(pin, mode)
Sets pin to either INPUT or OUTPUT
digitalRead(pin)
Reads HIGH or LOW from a pin
digitalWrite(pin, value)
Writes HIGH or LOW to a pin
Electronic stuff
Output pins can provide 40 mA of current
Writing HIGH to an input pin installs a 20K pullup
Running without a computer: 9V battery
Running without a computer
The Arduino converts the 9V from the battery down to 5V
using a regulator on the board.
You can connect anything from 712 volts DC to the barrel
plug socket (2.1 mm / 5.5 mm diameter, center positive)
You can also stick cables directly into the Vin and GND
(Ground) pins to power the board from 712 volts great if
you dont have a barrel plug on your power source.
Dont attach a 5V power source directly to the +5V pin
though its a voltage output pin only, and you may fry your
onboard regulator. Use the USB connector instead.
LED Adventures!
A light-emitting
diode (LED) is a
semiconductor device
that emits visible light
when an electric current
passes through it.
Safety Check!!!
+
Breadboard!!!
Breadboard!!! LED + Resistor
Digital Input/Output:
http://learn.adafruit.com
http://learn.sparkfun.com
http://instructables.com
http://makezine.com
Thank You!