SlideShare a Scribd company logo
1 of 19
Introduction to
Arduino
Seng Kang Secondary School
Applied Learning Programme (ALP)
Lesson Objective
• What is Arduino
• Parts of Arduino board
• Programming codes / Arduino
Software
What is an Arduino?
• Microcontroller board
• Arduino can be used to develop interactive objects,
taking INPUTS (eg. Switches or sensors) and controlling
physical OUTPUTS (eg. Lights or motors)
• The boards can be assembled by hand or purchased
preassembled
Power in
USB (to
computer)
Digital IO
PWM(3, 5, 6, 9, 10, 11)RESET
POWER
5V / 3.3V / GND
Analog
INPUTS
Arduino
How Arduino works?
Human inputs
Eye
Ear
Nose
Tongue
Skin
Output
examples
Activate arms
Activate legs
Activate mouth
Human brain
Output
examples
Activate LEDs
Activate Servo
Activate buzzer
Arduino inputs
Light Sensors
Heart Rate sensors
Temperature sensors
Other inputs
Arduino Board
How Arduino works?
Arduino board
blinks the LED
Computer
uploads blinking
LED code to
Arduino board
Teacher shows
how to connect
the Arduino
components
Student connects
the Arduino
components
Student’s brain
Arduino Board
Digital Pins vs Analog Pins
• Digital Pin
– There is two modes
(eg: ON/OFF)
• Analog Pins
– Variable range
(eg: dimming the light,
different intensity)
Arduino Software
(Sketch)
Light Emitting Diode
(LED)
√ Polarity
Examples of LED
Activity: Blinking LED
Assemble
Negative leg LED  GND
Positive leg LED Pin 13
Codes
• Step 1: Double click the icon
to OPEN up the IDE
• Step 2: TYPE the code into the
space below.
• Step 3: Click on to VERIFY the
codes.
• Step 4: Click on to UPLOAD
the codes to the board.
What does the codes
means?
What do you observe
after the codes are
uploaded?
End with a semi-colon ( ; )
const int led = 13;
void setup ()
{
pinMode (led, OUTPUT);
}
void loop ()
{
digitalWrite (led, HIGH);
delay(1000);
digitalWrite (led, LOW);
Delay (1000);
}
Declaration
Setup function
(Preparation)
Loop function
(Execution)
Open and close with curly
brackets { }
Let’s Decode!!!
const int led = 13;
void setup ()
{
pinMode(led, OUTPUT);
}
void loop ()
{
digitalWrite (led, HIGH);
delay(1000);
digitalWrite (led, LOW);
delay(1000);
}
Declare LED as pin 13
Define LED as OUTPUT
HIGH  LED On
LOW  LED Off
Duration between blinks
(In millisecond)
void loop ( )
{
digitalWrite (led, HIGH) ;
delay(1000);
digitalWrite (led, LOW);
delay(1000);
}
void loop ( )
{
digitalWrite (led, HIGH) ;
delay(500);
digitalWrite (led, LOW);
delay(500);
}
What do you observe after the
codes are changed?
Keywords
• Arduino Board: Physical programmable circuit board
(also known as microcontroller)
• Sketch: The name that Arduino uses for a program. It is
where the program codes are written.
• LED: Light Emitting Diode. Is an output.

More Related Content

What's hot

Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoRichard Rixham
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriGaurav Pandey
 
Arduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoVishnu
 
Arduino Introduction (Blinking LED) Presentation (workshop #5)
Arduino  Introduction (Blinking LED)  Presentation (workshop #5)Arduino  Introduction (Blinking LED)  Presentation (workshop #5)
Arduino Introduction (Blinking LED) Presentation (workshop #5)UNCG University Libraries
 
Robotics and Arduino (Arduino UNO)
Robotics and Arduino (Arduino UNO)Robotics and Arduino (Arduino UNO)
Robotics and Arduino (Arduino UNO)Dragos Ionita
 

What's hot (20)

Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Arduino Uno Pin Description
Arduino Uno Pin DescriptionArduino Uno Pin Description
Arduino Uno Pin Description
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
 
Arduino course
Arduino courseArduino course
Arduino course
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Arduino
ArduinoArduino
Arduino
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
 
Arduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic Arduino
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
 
Arduino Introduction (Blinking LED) Presentation (workshop #5)
Arduino  Introduction (Blinking LED)  Presentation (workshop #5)Arduino  Introduction (Blinking LED)  Presentation (workshop #5)
Arduino Introduction (Blinking LED) Presentation (workshop #5)
 
Robotics and Arduino (Arduino UNO)
Robotics and Arduino (Arduino UNO)Robotics and Arduino (Arduino UNO)
Robotics and Arduino (Arduino UNO)
 

Viewers also liked

Module 4 chpt 2 Energy Transfer through Waves
Module 4 chpt 2 Energy Transfer through WavesModule 4 chpt 2 Energy Transfer through Waves
Module 4 chpt 2 Energy Transfer through WavesBetsy Eng
 
Uss module 5 chpt 6 Sources of Food
Uss module 5 chpt 6 Sources of FoodUss module 5 chpt 6 Sources of Food
Uss module 5 chpt 6 Sources of FoodBetsy Eng
 
module 4 chpt 1 Energy and Its Uses
module 4 chpt 1 Energy and Its Usesmodule 4 chpt 1 Energy and Its Uses
module 4 chpt 1 Energy and Its UsesBetsy Eng
 
Uss module 4 chpt 4 Electrcity
Uss module 4 chpt 4 ElectrcityUss module 4 chpt 4 Electrcity
Uss module 4 chpt 4 ElectrcityBetsy Eng
 
module 4 chpt 3 Effects of Forces
module 4 chpt 3 Effects of Forcesmodule 4 chpt 3 Effects of Forces
module 4 chpt 3 Effects of ForcesBetsy Eng
 
Lss module 3 chpt 10 nutrients an food
Lss module 3 chpt 10 nutrients an foodLss module 3 chpt 10 nutrients an food
Lss module 3 chpt 10 nutrients an foodBetsy Eng
 
Getting Started with Arduino
Getting Started with ArduinoGetting Started with Arduino
Getting Started with ArduinoWee Keat Chin
 
DIY! Introduction to Arduino (Development Board)
DIY! Introduction to Arduino (Development Board) DIY! Introduction to Arduino (Development Board)
DIY! Introduction to Arduino (Development Board) Dignitas Digital Pvt. Ltd.
 
20150826 Introduction to Arduino
20150826 Introduction to Arduino20150826 Introduction to Arduino
20150826 Introduction to ArduinoSyuan Wang
 
Uss module 4 chpt 5 Sources of Electricity
Uss module 4 chpt 5 Sources of ElectricityUss module 4 chpt 5 Sources of Electricity
Uss module 4 chpt 5 Sources of ElectricityBetsy Eng
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduinozvikapika
 
Arduino Introduction Guide 1
Arduino Introduction Guide 1Arduino Introduction Guide 1
Arduino Introduction Guide 1elketeaches
 
Getting started with arduino
Getting started with arduinoGetting started with arduino
Getting started with arduinoDr. Pranav Rathi
 
Uss module 5 chpt 8 Food Health and Safety
Uss module 5 chpt 8 Food Health and SafetyUss module 5 chpt 8 Food Health and Safety
Uss module 5 chpt 8 Food Health and SafetyBetsy Eng
 
Chapter 6 6_1_running_water_and_groundwater[1][1]
Chapter 6 6_1_running_water_and_groundwater[1][1]Chapter 6 6_1_running_water_and_groundwater[1][1]
Chapter 6 6_1_running_water_and_groundwater[1][1]Tamara
 
Bio 100 Chapter 39
Bio 100 Chapter 39Bio 100 Chapter 39
Bio 100 Chapter 39wmk423
 
Lss module 2 chpt 6 water, solution, suspension
Lss module 2 chpt 6 water, solution, suspensionLss module 2 chpt 6 water, solution, suspension
Lss module 2 chpt 6 water, solution, suspensionBetsy Eng
 
Lss module 3 chpt 9 cells
Lss module 3 chpt 9 cellsLss module 3 chpt 9 cells
Lss module 3 chpt 9 cellsBetsy Eng
 
Bio 105 Chapter 13
Bio 105 Chapter 13Bio 105 Chapter 13
Bio 105 Chapter 13wmk423
 
Lss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energyLss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energyBetsy Eng
 

Viewers also liked (20)

Module 4 chpt 2 Energy Transfer through Waves
Module 4 chpt 2 Energy Transfer through WavesModule 4 chpt 2 Energy Transfer through Waves
Module 4 chpt 2 Energy Transfer through Waves
 
Uss module 5 chpt 6 Sources of Food
Uss module 5 chpt 6 Sources of FoodUss module 5 chpt 6 Sources of Food
Uss module 5 chpt 6 Sources of Food
 
module 4 chpt 1 Energy and Its Uses
module 4 chpt 1 Energy and Its Usesmodule 4 chpt 1 Energy and Its Uses
module 4 chpt 1 Energy and Its Uses
 
Uss module 4 chpt 4 Electrcity
Uss module 4 chpt 4 ElectrcityUss module 4 chpt 4 Electrcity
Uss module 4 chpt 4 Electrcity
 
module 4 chpt 3 Effects of Forces
module 4 chpt 3 Effects of Forcesmodule 4 chpt 3 Effects of Forces
module 4 chpt 3 Effects of Forces
 
Lss module 3 chpt 10 nutrients an food
Lss module 3 chpt 10 nutrients an foodLss module 3 chpt 10 nutrients an food
Lss module 3 chpt 10 nutrients an food
 
Getting Started with Arduino
Getting Started with ArduinoGetting Started with Arduino
Getting Started with Arduino
 
DIY! Introduction to Arduino (Development Board)
DIY! Introduction to Arduino (Development Board) DIY! Introduction to Arduino (Development Board)
DIY! Introduction to Arduino (Development Board)
 
20150826 Introduction to Arduino
20150826 Introduction to Arduino20150826 Introduction to Arduino
20150826 Introduction to Arduino
 
Uss module 4 chpt 5 Sources of Electricity
Uss module 4 chpt 5 Sources of ElectricityUss module 4 chpt 5 Sources of Electricity
Uss module 4 chpt 5 Sources of Electricity
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
 
Arduino Introduction Guide 1
Arduino Introduction Guide 1Arduino Introduction Guide 1
Arduino Introduction Guide 1
 
Getting started with arduino
Getting started with arduinoGetting started with arduino
Getting started with arduino
 
Uss module 5 chpt 8 Food Health and Safety
Uss module 5 chpt 8 Food Health and SafetyUss module 5 chpt 8 Food Health and Safety
Uss module 5 chpt 8 Food Health and Safety
 
Chapter 6 6_1_running_water_and_groundwater[1][1]
Chapter 6 6_1_running_water_and_groundwater[1][1]Chapter 6 6_1_running_water_and_groundwater[1][1]
Chapter 6 6_1_running_water_and_groundwater[1][1]
 
Bio 100 Chapter 39
Bio 100 Chapter 39Bio 100 Chapter 39
Bio 100 Chapter 39
 
Lss module 2 chpt 6 water, solution, suspension
Lss module 2 chpt 6 water, solution, suspensionLss module 2 chpt 6 water, solution, suspension
Lss module 2 chpt 6 water, solution, suspension
 
Lss module 3 chpt 9 cells
Lss module 3 chpt 9 cellsLss module 3 chpt 9 cells
Lss module 3 chpt 9 cells
 
Bio 105 Chapter 13
Bio 105 Chapter 13Bio 105 Chapter 13
Bio 105 Chapter 13
 
Lss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energyLss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energy
 

Similar to Lesson sample introduction to arduino

Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.pptZainIslam20
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshopmayur1432
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
13223971.ppt
13223971.ppt13223971.ppt
13223971.pptSuYee13
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming FamiliarizationAmit Kumer Podder
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينوsalih mahmod
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoBrian Huang
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxethannguyen1618
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdfJayanthi Kannan MK
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfssusere5db05
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slidesmkarlin14
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2Qtechknow
 

Similar to Lesson sample introduction to arduino (20)

Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduino.ppt
arduino.pptarduino.ppt
arduino.ppt
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
Arduino programming
Arduino programmingArduino programming
Arduino programming
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
13223971.ppt
13223971.ppt13223971.ppt
13223971.ppt
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
 

More from Betsy Eng

Lss module 1 chpt 1 investigating forces
Lss module 1 chpt 1 investigating forcesLss module 1 chpt 1 investigating forces
Lss module 1 chpt 1 investigating forcesBetsy Eng
 
Lss module 1 chpt 3 investigating heat
Lss module 1 chpt 3 investigating heatLss module 1 chpt 3 investigating heat
Lss module 1 chpt 3 investigating heatBetsy Eng
 
Lss module 1 chpt 4 investigating electricity
Lss module 1 chpt 4 investigating electricityLss module 1 chpt 4 investigating electricity
Lss module 1 chpt 4 investigating electricityBetsy Eng
 
Lss module 2 chpt 5 properties of matter
Lss module 2 chpt 5 properties of matterLss module 2 chpt 5 properties of matter
Lss module 2 chpt 5 properties of matterBetsy Eng
 
Lss module 2 chpt 7 water pollution
Lss module 2 chpt 7 water pollutionLss module 2 chpt 7 water pollution
Lss module 2 chpt 7 water pollutionBetsy Eng
 
Lss module 2 chpt 8 air pollution
Lss module 2 chpt 8 air pollutionLss module 2 chpt 8 air pollution
Lss module 2 chpt 8 air pollutionBetsy Eng
 
Lss module 3 chpt 11 human reproduction
Lss module 3 chpt 11 human reproductionLss module 3 chpt 11 human reproduction
Lss module 3 chpt 11 human reproductionBetsy Eng
 
Lss module 3 chpt 12 taking good care of my body
Lss module 3 chpt 12 taking good care of my bodyLss module 3 chpt 12 taking good care of my body
Lss module 3 chpt 12 taking good care of my bodyBetsy Eng
 
Uss module 6 chpt 12 Staying Healthy
Uss module 6 chpt 12 Staying HealthyUss module 6 chpt 12 Staying Healthy
Uss module 6 chpt 12 Staying HealthyBetsy Eng
 
Uss module 6 chpt 11 Fitness and Cardiac Health
Uss module 6 chpt 11 Fitness and Cardiac HealthUss module 6 chpt 11 Fitness and Cardiac Health
Uss module 6 chpt 11 Fitness and Cardiac HealthBetsy Eng
 
Uss module 6 chpt 10 Breathing
Uss module 6 chpt 10 BreathingUss module 6 chpt 10 Breathing
Uss module 6 chpt 10 BreathingBetsy Eng
 
Uss module 6 chpt 9 Digestion
Uss module 6 chpt 9 DigestionUss module 6 chpt 9 Digestion
Uss module 6 chpt 9 DigestionBetsy Eng
 
Uss module 5 chpt 7 Food Chemistry
Uss module 5 chpt 7 Food ChemistryUss module 5 chpt 7 Food Chemistry
Uss module 5 chpt 7 Food ChemistryBetsy Eng
 
Concept Cartoon Character
Concept Cartoon CharacterConcept Cartoon Character
Concept Cartoon CharacterBetsy Eng
 

More from Betsy Eng (14)

Lss module 1 chpt 1 investigating forces
Lss module 1 chpt 1 investigating forcesLss module 1 chpt 1 investigating forces
Lss module 1 chpt 1 investigating forces
 
Lss module 1 chpt 3 investigating heat
Lss module 1 chpt 3 investigating heatLss module 1 chpt 3 investigating heat
Lss module 1 chpt 3 investigating heat
 
Lss module 1 chpt 4 investigating electricity
Lss module 1 chpt 4 investigating electricityLss module 1 chpt 4 investigating electricity
Lss module 1 chpt 4 investigating electricity
 
Lss module 2 chpt 5 properties of matter
Lss module 2 chpt 5 properties of matterLss module 2 chpt 5 properties of matter
Lss module 2 chpt 5 properties of matter
 
Lss module 2 chpt 7 water pollution
Lss module 2 chpt 7 water pollutionLss module 2 chpt 7 water pollution
Lss module 2 chpt 7 water pollution
 
Lss module 2 chpt 8 air pollution
Lss module 2 chpt 8 air pollutionLss module 2 chpt 8 air pollution
Lss module 2 chpt 8 air pollution
 
Lss module 3 chpt 11 human reproduction
Lss module 3 chpt 11 human reproductionLss module 3 chpt 11 human reproduction
Lss module 3 chpt 11 human reproduction
 
Lss module 3 chpt 12 taking good care of my body
Lss module 3 chpt 12 taking good care of my bodyLss module 3 chpt 12 taking good care of my body
Lss module 3 chpt 12 taking good care of my body
 
Uss module 6 chpt 12 Staying Healthy
Uss module 6 chpt 12 Staying HealthyUss module 6 chpt 12 Staying Healthy
Uss module 6 chpt 12 Staying Healthy
 
Uss module 6 chpt 11 Fitness and Cardiac Health
Uss module 6 chpt 11 Fitness and Cardiac HealthUss module 6 chpt 11 Fitness and Cardiac Health
Uss module 6 chpt 11 Fitness and Cardiac Health
 
Uss module 6 chpt 10 Breathing
Uss module 6 chpt 10 BreathingUss module 6 chpt 10 Breathing
Uss module 6 chpt 10 Breathing
 
Uss module 6 chpt 9 Digestion
Uss module 6 chpt 9 DigestionUss module 6 chpt 9 Digestion
Uss module 6 chpt 9 Digestion
 
Uss module 5 chpt 7 Food Chemistry
Uss module 5 chpt 7 Food ChemistryUss module 5 chpt 7 Food Chemistry
Uss module 5 chpt 7 Food Chemistry
 
Concept Cartoon Character
Concept Cartoon CharacterConcept Cartoon Character
Concept Cartoon Character
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

Lesson sample introduction to arduino

  • 1. Introduction to Arduino Seng Kang Secondary School Applied Learning Programme (ALP)
  • 2. Lesson Objective • What is Arduino • Parts of Arduino board • Programming codes / Arduino Software
  • 3. What is an Arduino? • Microcontroller board • Arduino can be used to develop interactive objects, taking INPUTS (eg. Switches or sensors) and controlling physical OUTPUTS (eg. Lights or motors) • The boards can be assembled by hand or purchased preassembled
  • 4. Power in USB (to computer) Digital IO PWM(3, 5, 6, 9, 10, 11)RESET POWER 5V / 3.3V / GND Analog INPUTS Arduino
  • 5. How Arduino works? Human inputs Eye Ear Nose Tongue Skin Output examples Activate arms Activate legs Activate mouth Human brain Output examples Activate LEDs Activate Servo Activate buzzer Arduino inputs Light Sensors Heart Rate sensors Temperature sensors Other inputs Arduino Board
  • 6. How Arduino works? Arduino board blinks the LED Computer uploads blinking LED code to Arduino board Teacher shows how to connect the Arduino components Student connects the Arduino components Student’s brain Arduino Board
  • 7. Digital Pins vs Analog Pins • Digital Pin – There is two modes (eg: ON/OFF) • Analog Pins – Variable range (eg: dimming the light, different intensity)
  • 12. Assemble Negative leg LED  GND Positive leg LED Pin 13
  • 13. Codes • Step 1: Double click the icon to OPEN up the IDE • Step 2: TYPE the code into the space below. • Step 3: Click on to VERIFY the codes. • Step 4: Click on to UPLOAD the codes to the board.
  • 14. What does the codes means?
  • 15. What do you observe after the codes are uploaded?
  • 16. End with a semi-colon ( ; ) const int led = 13; void setup () { pinMode (led, OUTPUT); } void loop () { digitalWrite (led, HIGH); delay(1000); digitalWrite (led, LOW); Delay (1000); } Declaration Setup function (Preparation) Loop function (Execution) Open and close with curly brackets { } Let’s Decode!!!
  • 17. const int led = 13; void setup () { pinMode(led, OUTPUT); } void loop () { digitalWrite (led, HIGH); delay(1000); digitalWrite (led, LOW); delay(1000); } Declare LED as pin 13 Define LED as OUTPUT HIGH  LED On LOW  LED Off Duration between blinks (In millisecond)
  • 18. void loop ( ) { digitalWrite (led, HIGH) ; delay(1000); digitalWrite (led, LOW); delay(1000); } void loop ( ) { digitalWrite (led, HIGH) ; delay(500); digitalWrite (led, LOW); delay(500); } What do you observe after the codes are changed?
  • 19. Keywords • Arduino Board: Physical programmable circuit board (also known as microcontroller) • Sketch: The name that Arduino uses for a program. It is where the program codes are written. • LED: Light Emitting Diode. Is an output.

Editor's Notes

  1. Activity 1 – LED Circuit Activity 2 – 2 LED Circuit Activity 3 – Infinite Blink
  2. IDE - Integrated Development Environment. Software to write and upload programming codes to Arduino board.
  3. Step 1: Double click the icon to OPEN up the IDE Step 2: TYPE the code into the space below. Step 3: Click on to VERIFY the codes. Check for errors in the code. Step 4: Click on to UPLOAD the codes to the board. Check for errors in the code