NUEVA ECIJA UNIVERSITY OF SCIENCE AND TECHNOLOGY
MECHANICAL ENGINEERING
COMP 311
“INTRODUCTION TO ARDUINO”
Professor
Engr. Bryan Dominic G. Padua
www.neust.edu.ph
Arduino Board
• Arduino means "strong friend" in Italian, Created in Ivrea, Italy
• in 2005 by Massimo Banzi & David Cuartielles
• Open Source Hardware
• Processor
• Coding is accessible & transferrable → (C++, Processing, java)
Arduino
• is the go-to gear for artists, hobbyists, students,
and anyone with a gadgetry dream.
• rose out of another formidable challenge: how to
teach students to create electronics and
programming fast.
Arduino Parts Input/Output (IO)
PWR IN USB
(to Computer)
RESET
SCL\SDA
(I2C Bus)
POWER
5V / 3.3V / GND
Digital I\O
PWM(3, 5, 6, 9, 10, 11)
Analog
INPUTS
Arduino Parts Input/Output
USB
(IO)
PWR IN (to Computer)
RESET
SCL\SDA
(I2C Bus)
POWER
5V / 3.3V / GND
Digital I\O
PWM(3, 5, 6, 9, 10, 11)
Analog
INPUTS
Arduino Shields
Micro SD MP3 Trigger LCD
Built Shield
PCB
Inserted Shield
Components
Name Image Type Function Notes
Push Button Digital Input Switch - Closes Polarized, needs
or opens circuit resistor
Trim Analog Input Variable resistor Also called a
Trimpot.
potentiometer
Photoresistor Analog Input Light Dependent Resistance varies
Resistor (LDR) with light.
Relay Digital Output Switch driven by Used to control
a small signal larger voltages
Temp Sensor Analog Input Temp Dependent
Resistor
Flex Sensor Analog Input Variable resistor
Soft Trimpot Analog Input Variable resistor Careful of shorts
RGB LED Dig & Analog 16,777,216
Output different colors
Components
Components
Components
Components
Electricity \ Electronics Basic Concept Review
• Ohms Law
• Voltage
• Current
• Resistance
• Using a Multi-meter
Ohm’s Law
Electrical Properties
Voltage Current Resistance
V I R
• Defined as • The rate of
the amount charge flow
of potential in a circuit.
energy in a • Units: Amperes (A)
circuit.
• Units: Volts (V)
Continuity – Is it a Circuit?
The word “circuit” is derived from the circle. An Electrical
Circuit must have a continuous LOOP from Power (Vcc) to
Ground (GND).
Continuity is important to make portions of circuits are
connect. Continuity is the simplest and possibly the most
important setting on your multi-meter. Sometimes we call
this “ringing out” a circuit.
Measuring Electricity – Voltage
Voltage is a measure of potential electrical energy. A
voltage is also called a potential difference – it is
measured between two points in a circuit – across
a device.
Measuring Electricity -- Current
Current is the measure of the rate of charge flow
In order to measure this – you must break the circuit or insert
the meter in-line (series).
Measuring Electricity -- Resistance
Resistance is the measure of how much opposition to current
flow is in a circuit.
Components should be removed entirely from the circuit to
measure resistance. Note the settings on the multi-meter.
Make sure that you are set for the appropriate range.
Resistance
settings
Prototyping Circuits Solderless Breadboard
• One of the most useful tools in an engineer or
Maker’s toolkit. The three most important things:
• A breadboard is easier than soldering
• A lot of those little holes are connected, which ones?
• Sometimes breadboards break
What’s a Breadboard?
Solderless Breadboard
•Each row (horiz.) of 5
holes are connected.
•Vertical columns – called
power bus are connected
vertically