100% found this document useful (1 vote)
19 views53 pages

Arduino Essentials: From Basics to Projects

Uploaded by

Cecille Delgado
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
19 views53 pages

Arduino Essentials: From Basics to Projects

Uploaded by

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

ARDUINO

ESSENTIALS:
FROM BASICS TO
BUILDING PROJECTS
GETTING STARTED WITH ARDUINO
Arduino is an open-source electronics platform based
on easy-to-use hardware and software.
Hardware Software
a programmable circuit Arduino IDE. integrated
board called a development environment
microcontroller.
a microcontroller known as feed a program with a set
a small computer, which is of instructions to the
the heart of Arduino. Arduino board
ARDUINO PARTS
PROGRESS CHECK
What specific type of arduino pins are utilized
to achieve analog-like output through digital
means, by modulating the width of output
pulses?

A. PWM Pins
B. Digital I/O Pins
C. Analog Pins
PROGRESS CHECK
What specific type of arduino pins are utilized
to achieve analog-like output through digital
means, by modulating the width of output
pulses?

A. PWM Pins
B. Digital I/O Pins
C. Analog Pins
ARDUINO BOARDS
ARDUINO UNO R3 ARDUINO MEGA 2560

ARDUINO MICRO ARDUINO NANO


ARDUINO ZERO
ARDUINO UNO R3
Popular board for beginners
‘UNO’ means one in Italian, signifying
Arduino IDE 1.0
R3 signifies revision 3 of Arduino Uno
ATmega328P microcontroller
Digital I/O pins - 14
PWM pins - 6
Analog I/O pins – 6
The Operating Voltage - 5V
Input voltage - 7V to 12V
Flash Memory -32 KB
CLK Speed - 16 MHz
Length and width - 68.6 mm X 53.4 mm
ARDUINO UNO R3 ARDUINO MEGA 2560

ARDUINO MICRO ARDUINO NANO


ARDUINO ZERO
ARDUINO MEGA 2560
Digital I/O pins - 54
PWM pins - 15
Analog I/O pins - 16
Operating Voltage - 5V
Input voltage - 7V to 12V
Flash Memory - 256 KB
CLK Speed - 16 MHz
Length and width - 101.52mm X
53.4 mm

Designed for larger and more complex projects


Powerful ATmega2560 chip with lots of memory and numerous
input/output pins.
ARDUINO UNO R3 ARDUINO MEGA 2560

ARDUINO MICRO ARDUINO NANO


ARDUINO ZERO
ARDUINO MICRO

a small, versatile microcontroller board featuring the ATmega32U4


processor
compact size makes it suitable for projects with limited space.

Digital I/O pins - 20 Input voltage -7V to 12V


PWM pins - 7 Flash Memory - 32 KB
Analog I/O pins - 12 Length and width - 48.2mm X 17.8 mm
Operating Voltage - 5V CLK Speed - 16 MHz
ARDUINO UNO R3 ARDUINO MEGA 2560

ARDUINO MICRO ARDUINO NANO


ARDUINO ZERO
ARDUINO NANO

A small, versatile Digital I/O pins - 22


microcontroller board PWM pins - 6
featuring the ATmega328P Analog IN pins - 8
Analog I/O pins - 5
microcontroller.
Operating Voltage - 5V
Input voltage - 7V to 12V
Requires FTDI FT232RL or a Flash Memory - 32 KB
CH340G, to handle USB Length and width - 45mm X 18 mm
communication CLK Speed - 16 MHz
ARDUINO UNO R3 ARDUINO MEGA 2560

ARDUINO MICRO ARDUINO NANO


ARDUINO ZERO
Uses Atmel SAMD21 microcontroller.
ARDUINO ZERO Excels in innovative projects like
smart IoT devices, advanced robotics,
and high-tech automation.
Digital I/O pins - 20
PWM pins - 10
Analog Input pins - 6
Analog Output pins - 1
Operating Voltage - 3.3V
Input voltage - 7V to 12V
Flash Memory - 256 KB
Length and width - 68.6mm X 25.6 mm
CLK Speed - 48 MHz
SUMMARY
Digital I/O Analog I/O Operating Input Flash Length Width
PWM Pins CLK Speed
Pins Pins Voltage Voltage Memory (mm) (mm)

Arduino
14 6 6 5V 7V-12V 32 KB 68.6 53.4 16 MHZ
UNO R3

Arduino
54 15 16 5V 7V-12V 256 KB 101.52 53.4 16 MHZ
Mega 2560

Arduino
20 7 12 5V 7V-12V 32 KB 48.2 17.8 16 MHZ
Micro

Arduino
22 6 5 5V 7V-12V 32 KB 45 18 16 MHZ
Nano

Arduino
20 10 6/1 3.3V 7V-12V 256 KB 68.6 53 48 MHZ
Zero
HOW TO CHOOSE THE RIGHT
ARDUINO BOARD?
NUMBER OF I/O PINS POWER CONSUMPTION

MEMORY CAPACITY SIZE

SPEED
PROGRESS CHECK
What is the Arduino board that is small,
versatile, features an ATmega32U4 processor,
and is perfect for projects with limited space?

A. Arduino Zero
B. Arduino Micro
C. Arduino Uno R3
PROGRESS CHECK
What is the Arduino board that is small,
versatile, features an ATmega32U4 processor,
and is perfect for projects with limited space?

A. Arduino Zero
B. Arduino Micro
C. Arduino Uno R3
BASIC
COMPONENTS
CORE COMPONENTS

ARDUINO BREADBOARD JUMPERWIRES


BOARD
INPUT COMPONENTS

SENSORS BUTTONS AND POTENTIOMETERS


SWITCHES
OUTPUT COMPONENTS

MOTORS BUZZERS AND


LEDS
SPEAKERS

RELAYS LCD DISPLAYS


COMMUNICATION AND CONTROL

BLUETOOTH WIFI MODULE


MODULE

IR TRANSMITTER/ SHIELD
RECEIVER
PROGRESS CHECK
Among the basic components listed down below
which components belongs to the category of output
components?

A. Motor Shields and Wi-Fi Modules


B. Potentiometers and Sensor
C. LEDs and Buzzer
D. Arduino Board and Jumperwires
PROGRESS CHECK
Among the basic components listed down below
which components belongs to the category of output
components?

A. Motor Shields and Wi-Fi Modules


B. Potentiometers and Sensor
C. LEDs and Buzzer
D. Arduino Board and Jumperwires
ARDUINO IDE
INTERFACE
INSTALLATION OF ARDUINO IDE
Search Arduino IDE Click the first link
Select the appropriate download option for
your device.
Click ‘Just Download’ Click ‘Just Download’
Wait for the download
to finish, then install. Click ‘I agree’
Choose a User Profile Choose Installation
Location
Click Finish
WHAT YOU’LL FIND
IN ARDUINO IDE?
CODING IN
ARDUINO IDE
PROGRAM
VARIABLES
STRUCTURE
Definition: Defines the basic Definition: Stores data
structure of an Arduino values.
program. Data types: int, float,
char, boolean, etc.
void setup() - runs once Declaration: dataType
void loop() - runs repeatedly variableName = value;
Syntax:
int Sensor = 5;
CODES

// means comment // This is the program for LED


#include <LibraryName.h> Servo.h
pinMode(pin, mode); INPUT / OUTPUT
digitalWrite(pin, value); HIGH / LOW
analogWrite(pin, value); 0 - 255
digitalRead(pin); digitalRead(LED);
analogRead(pin); analogRead(sensor);
CODES

[Link](baudRate); [Link](9600);
[Link](value); [Link](value);
[Link](value); [Link](“Hello World”);
delay(value); delay(1000);
for(initialization; condition; for(int value=0; value<5;
increment) {code;} value++) {code;}
if(condition) {code;} if(value==5) {code;}
else {code;} else {code;}
Common Coding Errors
Syntax errors: Incorrect grammar of the
programming language.
Logic errors: Code produces incorrect results.
Runtime errors: Program crashes during
execution.

Remember: Everyone makes mistakes when learning to


code. The key is to learn from them and improve your skills
over time.
POST EVALUATION
Go to [Link]

Under a single program:


Comment you name using //
Turn on LED for 1 second.
Turn off LED for 1 second.
Turn on LED using varying voltage.
Turn off LED using varying voltage. SCAN ME
THANK
YOU!

You might also like