Documentation
Documentation
Uno ( Main )
Mega
Nano
Mini
Lilypad
Boarduino
Why Arduino UNO??!
One of the most popular Arduino boards out there is the
Arduino Uno. While it was not actually the first board to
be released, it remains to be the most actively used and
most widely documented on the market. Because of its
extreme popularity, the Arduino Uno has a ton of project
tutorials and forums around the web that can help you
get started or out of a jam. We’re big fans of the Uno
because of it’s great features and ease of use. A small
electronic circuit used in the programming of a
microcontroller from the company Atmel ATmega328.
This circuit provides ports to connect the electronic
components directly to the controller through 13 digital
input/output pins (out of which 6 can be used as PWM
outputs) and 6 analog input pins.
Arduino UNO:
1. Reset Button : This will restart any code that is
loaded to the Arduino board
2. AREF : Stands for “Analog Reference” and is used to
set an external reference voltage
3. Ground Pin : There are a few ground pins on the
Arduino and they all work the same
4. Digital Input/Output : Pins 0-13 can be used for
digital input or output
5. PWM : The pins marked with the (~) symbol can
simulate analog output
6. USB Connection : Used for powering up your
Arduino and uploading sketches
7. TX/RX : Transmit and receive data indication LEDs
8. AT mega Microcontroller : This is the brains and is
where the programs are stored
9. Power LED Indicator : This LED lights up anytime the
board is plugged in a power source
10. Voltage Regulator : This controls the amount of
voltage going into the Arduino board
11. DC Power Barrel Jack : This is used for powering
your Arduino with a power supply
12. 3.3V Pin : This pin supplies 3.3 volts of power to
your projects
13. 5V Pin : This pin supplies 5 volts with 50mA of
power to your projects
14. Ground Pins : There are a few ground pins on
the Arduino and they all work the same
15. Analog Pins : These pins can read the signal from
an analog sensor and convert it to digital
Arduino IDE The tool used to write code in the Arduino C
language and then convert it into an executable form
that can be placed on the microcontroller.
1. Menu Bar: Gives you access to the tools needed for
creating and saving Arduino sketches.
2. Verify Button: Compiles your code and checks for
errors in spelling or syntax.
3. Upload Button: Sends the code to the board that’s
connected such as Arduino Uno in this case. Lights
on the board will blink rapidly when uploading.
4. New Sketch: Opens up a new window containing a
blank sketch.
5. Sketch Name: When the sketch is saved, the name
of the sketch is displayed here.
6. Open Existing Sketch: Allows you to open a saved
sketch or one from the stored examples.
7. Save Sketch: This saves the sketch you currently
have open.
8. Serial Monitor: When the board is connected, this
will display the serial information of your Arduino
9. Code Area: This area is where you compose the code
of the sketch that tells the board what to do.
10. Message Area: This area tells you the status on
saving, code compiling, errors and more.
11. Text Console: Shows the details of an error
messages, size of the program that was compiled
and additional info.
12. Board and Serial Port: Tells you what board is
being used and what serial port it’s connected to.
Setup code
• Is code in Setup ()
Function
• Executed right after
power-up or reset
• Executed only one time
• Used to initialize
variables, pin modes,
start using libraries
Loop Code
• Is code in loop () function
• Executed right after
setup code
• Executed repeatedly
(infinitely)
• Used to do the main task
Delay
ofand
theSerial:
application
delay(): Pauses the program for time (in milliseconds).
Serial.begin(9600): sets serial port for communication.
9600 is the baud rate
Serial.print(“”): Prints a value or a “string” in the serial
monitor.
Serial.println(“”): same as “Serial.print(“”)” but starts a
new line after the String is finished.
Finished