Introduction To Arduino
Introduction To Arduino
Arduino was introduced back in 2005 in Italy by Massimo Banzi as a way for non-
engineers to have access to a low cost, simple tool for creating hardware projects.
Since the board is open-source, it is released under a Creative Commons license which
allows anyone to produce their own board.
Board Breakdown
Here are the components that make up an Arduino board and what each of their
functions are:
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
UNO has 14 digital input – output (I/O) pins which can be used as either input or output
by connecting them with different external devices and components. Out of these 14
pins, 6 pins are capable of producing PWM signal. All the digital pins operate at 5V and
can output a current of 20mA.
Some of the digital I/O pins have special functions which are describe below.
Pins 0 and 1 are used for serial communication. They are used to receive and
transmit serial data which can be used in several ways like programming the
Arduino board and communicating with the user through serial monitor.
Pins 2 and 3 are used for external interrupts. An external event can be triggered
using these pins by detecting low value, change in value or falling or rising edge
on a signal.
As mentioned earlier, 6 of the 14 digital I/O Pins i.e. 3, 5, 6, 9, 10, and 11 can
provide 8-bit PWM output.
Pins 10, 11, 12 and 13 (SS, MOSI, MISO AND SCK respectively) are used for
SPI communication.
Pin 13 has a built-in LED connected to it. When the pin is HIGH, the LED is
turned on and when the pin is LOW, it is turned off.
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(TX) and receive(RX) data indication LEDs
8. ATmega 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 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 Uno has 6 analog input pins which can provide 10 bits of resolution i.e. 1024
different values. The analog pins on the Arduino UNO are labelled A0 to A5.
By default, all the analog pins can measure from ground to 5V. Arduino UNO has a
feature, where it is possible to change the upper end of the range by using the AREF pin
but the value should be less than 5V.
Additionally, some analog pins have specialized functionality. Pins A4 and A5 are used
for I2C communication.
Basic Rule
(row letters) Poles on the same row are not connected to each other, the columns are
(1-63).
Upper trench and lower trench rows are not connected.
(-) = ground
(positive and negative signs) Rows are connected, columns are not.
Alphabet=row letter
Jumper wires
On a side note, the breadboard is not powered on its own and needs power brought to it
from the Arduino board using jumper wires. These wires are also used to form the
circuit by connecting resistors, switches and other components together.
How To Program Arduino
Once the circuit has been created on the breadboard, you’ll need to upload the program
(known as a sketch) to the Arduino. The sketch is a set of instructions that tells the
board what functions it needs to perform. An Arduino board can only hold and perform
one sketch at a time. The software used to create Arduino sketches is called the IDE
which stands for Integrated Development Environment.
void setup() – Sets things up that have to be done once and then don’t happen again.
void loop() – Contains the instructions that get repeated over and over until the board is
turned off.
6. Drawing more than 500mA from the 5v pin (when running off an external
power supply.
The onboard 5v voltage regulator can only supply 500mA of current. The 5vUSB has
a polyfuse to limit the current to 500mA.