0% found this document useful (0 votes)
6 views71 pages

Introduction to Arduino Programming

The document provides an overview of Arduino, including its definition, purpose, and applications in physical computing projects. It explains how to program Arduino using the Arduino IDE and details the types of Arduino boards available. Additionally, it includes a hands-on section for getting started with Arduino using the Tinkercad simulator.

Uploaded by

fd9272910
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views71 pages

Introduction to Arduino Programming

The document provides an overview of Arduino, including its definition, purpose, and applications in physical computing projects. It explains how to program Arduino using the Arduino IDE and details the types of Arduino boards available. Additionally, it includes a hands-on section for getting started with Arduino using the Tinkercad simulator.

Uploaded by

fd9272910
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Arduino

Yarelis D.
Acevedo
Arianna H. Colón
Tiahra N. Avilés
1
AGENDA 2

What is Arduino?
1 What is an Arduino? Why Arduino? How can I
use it and implement it on the lab?

Arduino Software
2 How Arduinos are programmed

How to get started?


3

Hands On
4 Using Tinkercad simulator
BBSUR0170 BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR2 28,41
PICKER
CONTRACTORS BBSUR
BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR2 31,26
ONE HUNDRED AND PICKER
BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 3,38
SEVENTY PICKER
BBSUR0174 BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR2 30,73
CONTRACTORS BBSUR PICKER
BBSUR0176 BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR1 22,15
PICKER
CONTRACTORS BBSUR
BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 11,55
ONE HUNDRED AND PICKER
BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 8,68
SEVENTYSIX PICKER
BBSUR0179 BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 8,49
CONTRACTORS BBSUR PICKER
BBSUR0180 BBSUR3 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 18,72
PICKER
CONTRACTORS BBSUR
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR2 41,29
ONE HUNDRED AND PICKER
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 15,83
EIGHTY PICKER
BBSUR0183 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 11,77
CONTRACTORS BBSUR PICKER
BBSUR0185 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 18,61
PICKER
CONTRACTORS BBSUR
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 14,10
ONE HUNDRED AND PICKER
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 10,69
EIGHTYFIVE PICKER
BBSUR0189 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 10,17
CONTRACTORS BBSUR PICKER
BBSUR0190 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 8,18
PICKER
CONTRACTORS BBSUR
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 14,06
ONE HUNDRED AND PICKER
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 10,39
NINETY PICKER
BBSUR0197 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 10,71
CONTRACTORS BBSUR PICKER
BBSUR0198 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 13,59
PICKER
CONTRACTORS BBSUR
BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 10,27
ONE HUNDRED AND PICKER
BBSUR0200 BBSUR4 2025-12-02 CONTRACTOR CONTRACTOR BBSUR3 8,63
CONTRACTORS PICKER
Grand Total 3.761,17
What is a 4

microcontroller?

A microcontroller (MCU for microcontroller unit) or more CPUs (processor


is a small computer on a single cores) along with memory
metal-oxide-semiconductor (MOS) integrated and programmable
circuit (IC) chip. A microcontroller contains one input/output peripherals.
Big computers vs small
computers
01

What is
Arduino? What is an

Arduino? What is the purpose? How


can I use it and implement it on the lab?
6
A brief story. The Arduino project

Arduino began in 2005 as a tool for


students at the
Interaction Design Institute Ivrea
microcontr in Ivrea, Italy, aiming to provide a
low-cost and easy way for novices

oller and using


environment professionals
sensors to
andcreate devices
actuators.

7
Arduino Microcontroller

● Open-source electronics
based on easy-to-use
hardware
and software.
● Are able to read inputs - light on
a
sensor, a finger on a button, or
a
Twitter message - and turn it
into
an output - activating a motor,
turning on an LED, publishing
something online.
What is it used
for?
● Physical Computing projects /

r

e
● s

e 9
What can I do? 10

●Photoresistors (sensing light)


Sensors ●
Thermistors
tilt switches
(temperature)●Ultrasound
●Variable resistors (Sliders,
(proximity
Volume knobs)
range finder)
Actuators
● Lights, LED’s
● Motors
● Speakers
● Displays (LCD’s)
Types of Arduinos 11
What is the
difference
between them?

12
Types of Arduino 13

Arduino Board Processor Memory Digital I/O Analogue I/O

Arduino Uno 16Mhz ATmega328 2KB SRAM, 32KB flash 14 6 input, 0 output

96KB SRAM, 512KB


Arduino Due 84MHz AT91SAM3X8E 54 12 input, 2 output
flash

8KB SRAM, 256KB


Arduino Mega 16MHz ATmega2560 54 16 input, 0 output
flash

2.5KB SRAM, 32KB


Arduino Leonardo 16MHz ATmega32u4 20 12 input, 0 output
flash
Arduino Uno Digital output
0, 1 Serial Port
14

USB port

In circuit
serial
programming

ATMEL
Microcontroller

Power
input
Power supply Analog input
Analog and digital 15

pins
How Arduino is 16

programmed?

Using a software
called Arduino IDE
02

Arduino
Software How Arduinos are

programmed
17
Arduino Software 18

(IDE)

The Arduino Integrated Development Environment - or Arduino Software


(IDE) - contains a text editor for writing code, a message area, a text
console, a toolbar with buttons for common functions and a series of
menus. It connects to the Arduino hardware to upload programs and
communicate with them.
[Link]
Arduino 19

Language

●Simplified C/C++
●Based on the

●Peripheral
○LCD, sensors,
12C, ect.
Useful functions 20

pinMode() set pin as input or output

digitalWrite() set a digital pin high/low

digitalRead() read a digital pin’s state

analogRead() read an analog pin

analogWrite() write an “analog” PWM value

delay() wait an amount of time

millis() get the current time


Sketch 21

Global Declare variables at the top


variables

setup()
Initialize
setup() - run once at
the
beginning
set pins

loop() loop() - run


repeatedly
after setup()
Let’s see how a
sketch for
turning an LED
light runs in an
Arduino
22
Blinking LED 23
Global 24

variables

int ledPin = 13;


Global variables - LED connected
the control
pin 13
Setup() 25

setup() pinMode(ledPin,
OUTPUT);
loop() 26
27
Verify Search

Upload

Opens
Save
New
sketch
03
How to
get
started?
28
If you have the
board

29
How to get started? 30

●Arduino board
○USB cable
○DC power supplies
●Download the Arduino’s software
(Arduino
IDE)
○Read carefully
■Instruccions to install and
setup the Arduino board
with the computer and
software
○Download the Arduino IDE
software

●Plug it in!
Plug in it into the 31

computer
Online

32
33

Tinkercad is a free, online 3D


modeling program that runs in a
web browser, known for its platform for creating models for 3D
simplicity and ease of use. printing as well as an entry-level
Since it became available in introduction to constructive solid
2011 it has become a popular geometry in schools.
Tinkercad 34

Make an
account in It’s free!
tinkercad
35
36

Scroll down
until you find

the Arduino
Uno
37

Find the
resistor
and the LED

Connect the
resistor to
the
GND
(Ground)

Connect the
LED:
Shorter leg with

the resistor and

longer leg to
pin
12
38

Write the code After writing the


code, start the
simulation here
to see the
circuit work with
the Arduino!
39
Moving a stepper 42

motor

You might also like