15. Introduction to Arduino
15. Introduction to Arduino
Arduino
Md. Nazmul Abdal
Lecturer, Department of CSE
University of Liberal Arts
Bangladesh (ULAB)
What is Arduino?
Arduino is a popular “open source” single
board microcontroller. It is designed to make
the process of using electronics in
multidisciplinary projects more accessible.
RESET
SCL\SDA
(I2C
Bus)
POWER
5V / 3.3V / Digital I\O
GND PWM(3, 5, 6, 9,
10, 11)
Analog
INPUTS
Go ahead and plug your
board in!
SparkFun Inventor’s Kit
Components
Name Image Type Function Notes
Push Button Digital Switch - Polarized,
Input Closes or needs
opens circuit resistor
Trim Analog Variable Also called a
potentiomete Input resistor Trimpot.
r
Photoresistor Analog Light Resistance
Input Dependent varies with
Resistor light.
(LDR)
Relay Digital Switch Used to
Output driven by a control larger
small signal voltages
Temp Sensor Analog Temp
Input Dependent
Resistor
Flex Sensor Analog Variable
Input resistor
SIK Components
control electrical
devices such as
volume controls
on audio
equipment.
SIK Components
The resistance of
a photo
resistor decreas
es with
increasing
incident light
intensity.
Concepts: INPUT vs.
OUTPUT
Referenced from the perspective of the microcontroller
Inputs is a signal / (electrical board).
Output is any signal exiting
information going into the the board.
board.
Almost all systems that use physical computing will have
some form of output
+ (addition)
- (subtraction)
* (multiplication)
/ (division)
Comparison Operators
These are used to make logical
comparisons.
== (equal to) - For example 12==10 is
FALSE and 12 ==12 is TRUE.
Schematic symbol
Resistors
Resistors restrict the amount of electrical
current that can flow through a circuit.
The color bands indicate the VALUE of the
resistor
Note: it is easy to grab
the WRONG one so be
careful. Also, it does
not matter which way
the resistor is wired.
Schematic
symbol
The schematic
This is basically a SERIES circuit
where the resistor and LED are
wired one after another.