SlideShare a Scribd company logo
WELCOME
arduino.ppt
Agenda
• About us / Introductions
• Software Installation
• What can it do? Who cares?
• Blink Sketch
• Button
Arduino Board
Atmel Processor
Coding in C++
Arduino Software Installation
Open Source
Free
Available on-line with resources at:
www.arduino.cc
What can it do?
•Great for prototyping ideas
•Access to multiple I/O
•Drive motors, turn on lights,
trigger controls.
•Low Power requirements
•Flexible / Open-source
Setup Board Type
Tools → Board → Arduino Uno
Setup Serial COM Port
Tools → Serial Port →
Notes:
PC –
Highest COM #
Mac –
/dev/tty.usbserial-A####xxx
Analog and Digital
• All Arduino signals are either Analog or
Digital
• All computers including Arduino, only
understand Digital
• It is important to understand the difference
between Analog and Digital signals since
Analog signals require an Analog to Digital
conversion
Input vs. Output
Everything is referenced from the perspective of the
microcontroller.
Inputs is a signal going into the board.
Output is any signal exiting an electrical system
• Almost all systems that use physical computing will
have some form of output
• Often – Outputs include LEDs, a motor, a servo, a
piezo element, a relay and an RGB LED
Basic Program
Two required routines /
methods / functions:
void setup()
{
// runs once
}
void loop()
{
// repeats forever!!!
}
upload
Let’s get to hacking…
Project #1 – Blink
“Hello World” of Physical Computing
Psuedo-code – how should this work?
Turn
LED ON
Wait
Turn
LED
OFF
Wait
Rinse &
Repeat
Three commands to know…
pinMode(pin, INPUT/OUTPUT);
ex: pinMode(13, OUTPUT);
digitalWrite(pin, HIGH/LOW);
ex: digitalWrite(13, HIGH);
delay(time_ms);
ex: delay(2500);
LED1 = ~3;
LED2 = ~5;
LED3 = ~10;
LED4 = 13;
Can you figure out which LED is tied to
which pin? Write down a few notes in your
notebook!
3
5
13
LED Pin Configurations
10
Output is always Digital
To output a signal that pretends to be Analog
use this code:
analogWrite (pinNumber, value );
Where pin is one of the analog output pins: 3,
5, 6, 9, 10, 11
Where value is a number ranging from: 0 –
255.
Output is always Digital
(ON or OFF)
Using a Digital signal that pretends to be an Analog
signal is called Pulse Width Modulation (PWM)
By varying the duty cycle, we can “fake” an analog
signal output.
PWM is available on Arduino pins # 3, 5, 6, 9, 10, and
11
P.W.M. Signal @ 25% P.W.M. Signal @ 75% P.W.M. Signal rising
Using Variables
To clean-up code, for read-ability, and flexibility
– we can create placeholders in code.
Example:
int ledPin = 3;
void setup(){
pinMode(ledPin, OUTPUT);
}
void loop(){
digitalWrite(ledPin, HIGH);
}
Digital Input
int button_state = digitalRead(ButtonPin);
Value will be either: HIGH or LOW
Reading a button press
Button Input is normally
HIGH – when you press
it, you pull it LOW.
The Code:
int buttonPress = digitalRead(2);
Activating the Internal Pull-up
Resistor
pinMode(pin, INPUT_PULLUP);
ex: pinMode(2, INPUT_PULLUP);
Notes:
BUTTON1 = 2;
BUTTON2 = 6;
BUTTON3 = 9;
BUTTON4 = 12;
BUTTON1 = 2;
BUTTON2 = 6;
BUTTON3 = 9;
BUTTON4 = 12;
Can you figure out which Button is tied to
which pin? Write down a few notes in your
notebook!
2
6
12
Button Pin Configurations
9
Conditional Statements
If…
General Use
if(condition)
{
// do this
}
Example
if(button_State==HIGH)
{
digitalWrite(ledPin,
HIGH);
delay(300);
digitalWrite(ledPin,
LOW);
delay(300);
}
Digital Input
• To connect digital input to your Arduino use Digital
Pins # 0 – 13 (Although pins # 0 & 1 are also used
for serial)
• Digital Input needs a pinMode command:
pinMode ( pinNumber, INPUT );
Make sure to use caps for INPUT
• To get a digital reading: digitalRead ( pinNumber );
• Digital Input values are only HIGH (On) or LOW (Off)
PROJECT LIST
1.IOT based remote
2. Active sign board with speed control
3. Energy meter over IOT
4. IOT recovered Vehicle black box
5. Android based robotic arm
6. IOT based patient monitoring station
7. Smart power theft detection system
8. E -notice board via IOT
9. Line following robot
10. Finger prints-based voting machine
11. IOT based garbage monitor system
12. FPGA based voting machine
13. SPY robo
14. MPPT for solar panel
15. Object sorting robotic arm
16. Voice controlled wheelchair
THANKS

More Related Content

Similar to arduino.ppt (20)

PPTX
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Jo Mebs
 
PPTX
Fun with arduino
Ravikumar Tiwari
 
PPT
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
 
PPT
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
PDF
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
PDF
Arduino workshop
Jonah Marrs
 
PPTX
IoT applications With Arduino coding and real life examples
AnuragSingh841686
 
DOCX
Basic arduino sketch example
mraziff2009
 
PPTX
Arduino slides
sdcharle
 
PPTX
Arduino Workshop Slides
mkarlin14
 
PDF
Arduino - Learning.pdf
KhalilSedki1
 
PPTX
02 General Purpose Input - Output on the Arduino
Wingston
 
PPTX
Intro to Arduino.ppt
jonathan Dietz
 
PPT
13223971.ppt
SuYee13
 
PPTX
Introduction To Arduino-converted for s.pptx
rtnmsn
 
PPTX
Basic arduino components and more things about arduino
GeorgeTsak
 
PPTX
Introduction to Arduino with ArduBlock & SparkFun LilyPad
Brian Huang
 
PDF
Arduino workshop sensors
Jhonny Wladimir Peñaloza Cabello
 
PDF
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Jo Mebs
 
Fun with arduino
Ravikumar Tiwari
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
 
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
Arduino workshop
Jonah Marrs
 
IoT applications With Arduino coding and real life examples
AnuragSingh841686
 
Basic arduino sketch example
mraziff2009
 
Arduino slides
sdcharle
 
Arduino Workshop Slides
mkarlin14
 
Arduino - Learning.pdf
KhalilSedki1
 
02 General Purpose Input - Output on the Arduino
Wingston
 
Intro to Arduino.ppt
jonathan Dietz
 
13223971.ppt
SuYee13
 
Introduction To Arduino-converted for s.pptx
rtnmsn
 
Basic arduino components and more things about arduino
GeorgeTsak
 
Introduction to Arduino with ArduBlock & SparkFun LilyPad
Brian Huang
 
Arduino workshop sensors
Jhonny Wladimir Peñaloza Cabello
 
02 Sensors and Actuators Understand .pdf
engsharaf2025
 

Recently uploaded (20)

DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Day2 B2 Best.pptx
helenjenefa1
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
Thermal runway and thermal stability.pptx
godow93766
 
Design Thinking basics for Engineers.pdf
CMR University
 
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Ad

arduino.ppt

  • 3. Agenda • About us / Introductions • Software Installation • What can it do? Who cares? • Blink Sketch • Button
  • 5. Arduino Software Installation Open Source Free Available on-line with resources at: www.arduino.cc
  • 6. What can it do? •Great for prototyping ideas •Access to multiple I/O •Drive motors, turn on lights, trigger controls. •Low Power requirements •Flexible / Open-source
  • 7. Setup Board Type Tools → Board → Arduino Uno
  • 8. Setup Serial COM Port Tools → Serial Port → Notes: PC – Highest COM # Mac – /dev/tty.usbserial-A####xxx
  • 9. Analog and Digital • All Arduino signals are either Analog or Digital • All computers including Arduino, only understand Digital • It is important to understand the difference between Analog and Digital signals since Analog signals require an Analog to Digital conversion
  • 10. Input vs. Output Everything is referenced from the perspective of the microcontroller. Inputs is a signal going into the board. Output is any signal exiting an electrical system • Almost all systems that use physical computing will have some form of output • Often – Outputs include LEDs, a motor, a servo, a piezo element, a relay and an RGB LED
  • 11. Basic Program Two required routines / methods / functions: void setup() { // runs once } void loop() { // repeats forever!!! } upload
  • 12. Let’s get to hacking… Project #1 – Blink “Hello World” of Physical Computing Psuedo-code – how should this work? Turn LED ON Wait Turn LED OFF Wait Rinse & Repeat
  • 13. Three commands to know… pinMode(pin, INPUT/OUTPUT); ex: pinMode(13, OUTPUT); digitalWrite(pin, HIGH/LOW); ex: digitalWrite(13, HIGH); delay(time_ms); ex: delay(2500);
  • 14. LED1 = ~3; LED2 = ~5; LED3 = ~10; LED4 = 13; Can you figure out which LED is tied to which pin? Write down a few notes in your notebook! 3 5 13 LED Pin Configurations 10
  • 15. Output is always Digital To output a signal that pretends to be Analog use this code: analogWrite (pinNumber, value ); Where pin is one of the analog output pins: 3, 5, 6, 9, 10, 11 Where value is a number ranging from: 0 – 255.
  • 16. Output is always Digital (ON or OFF) Using a Digital signal that pretends to be an Analog signal is called Pulse Width Modulation (PWM) By varying the duty cycle, we can “fake” an analog signal output. PWM is available on Arduino pins # 3, 5, 6, 9, 10, and 11 P.W.M. Signal @ 25% P.W.M. Signal @ 75% P.W.M. Signal rising
  • 17. Using Variables To clean-up code, for read-ability, and flexibility – we can create placeholders in code. Example: int ledPin = 3; void setup(){ pinMode(ledPin, OUTPUT); } void loop(){ digitalWrite(ledPin, HIGH); }
  • 18. Digital Input int button_state = digitalRead(ButtonPin); Value will be either: HIGH or LOW
  • 19. Reading a button press Button Input is normally HIGH – when you press it, you pull it LOW. The Code: int buttonPress = digitalRead(2);
  • 20. Activating the Internal Pull-up Resistor pinMode(pin, INPUT_PULLUP); ex: pinMode(2, INPUT_PULLUP); Notes: BUTTON1 = 2; BUTTON2 = 6; BUTTON3 = 9; BUTTON4 = 12;
  • 21. BUTTON1 = 2; BUTTON2 = 6; BUTTON3 = 9; BUTTON4 = 12; Can you figure out which Button is tied to which pin? Write down a few notes in your notebook! 2 6 12 Button Pin Configurations 9
  • 22. Conditional Statements If… General Use if(condition) { // do this } Example if(button_State==HIGH) { digitalWrite(ledPin, HIGH); delay(300); digitalWrite(ledPin, LOW); delay(300); }
  • 23. Digital Input • To connect digital input to your Arduino use Digital Pins # 0 – 13 (Although pins # 0 & 1 are also used for serial) • Digital Input needs a pinMode command: pinMode ( pinNumber, INPUT ); Make sure to use caps for INPUT • To get a digital reading: digitalRead ( pinNumber ); • Digital Input values are only HIGH (On) or LOW (Off)
  • 24. PROJECT LIST 1.IOT based remote 2. Active sign board with speed control 3. Energy meter over IOT 4. IOT recovered Vehicle black box 5. Android based robotic arm 6. IOT based patient monitoring station 7. Smart power theft detection system 8. E -notice board via IOT
  • 25. 9. Line following robot 10. Finger prints-based voting machine 11. IOT based garbage monitor system 12. FPGA based voting machine 13. SPY robo 14. MPPT for solar panel 15. Object sorting robotic arm 16. Voice controlled wheelchair