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

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
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
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
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotIntroduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotSachin S
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino ProgrammingJames Lewis
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduinoyeokm1
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino PlatformEoin Brazil
 

What's hot (20)

Arduino
ArduinoArduino
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
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
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
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotIntroduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to Iot
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino
ArduinoArduino
Arduino
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
 
Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
 

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
 
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
 
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
 

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
 
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)
 
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
 

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
 

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
 
Arduino course
Arduino courseArduino course
Arduino course
 
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
 

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 2 investigating energy
Lss module 1 chpt 2 investigating energyLss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energyBetsy 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 (15)

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 2 investigating energy
Lss module 1 chpt 2 investigating energyLss module 1 chpt 2 investigating energy
Lss module 1 chpt 2 investigating energy
 
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

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 

Recently uploaded (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

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