際際滷

際際滷Share a Scribd company logo
INTRODUCTION
THE ARDUINO
PRESENT BY THINGERBIT ELECTRONICS
WWW.THINGERBITS.COM
What is a
Microcontroller?
Computer on a single integrated chip
 Processor (CPU)
 Memory (RAM / ROM / Flash)
 I/O ports (USB, I2C, SPI, ADC)
Used in:
Common microcontroller families:
 Intel: 4004, 8008, etc.
 Atmel: AT and AVR
 Microchip: PIC
 ARM: (multiple manufacturers)
 Cellphones
 Toys
 Household appliances
 Cars
 Cameras
The ATmega328P
Microcontroller
AVR 8-bit RISC architecture
Up to 20 MHz clock
Available in DIP package
32kB flash memory
1 kB SRAM
23 programmable I/O channels
Six 10-bit ADC inputs
Three timers/counters
Six PWM outputs
What is Arduino Not?
 It is not a chip (IC)
 It is not a board (PCB)
 It is not a company or a manufacturer
 It is not a programming language
 It is not a computer architecture
(although it involves all of these things...)
So what is Arduino?
Founded by Massimo Banzi and David Cuartielles in 2005
Open-source hardware platform
Based on Wiring Platform, which dates to 2003
 Easy-to learn language and libraries (based on Wiring
language)
 Integrated development environment (based on Processing
programming environment)
 Available for Windows / Mac / Linux
Its a movement, not a microcontroller:
Open source development environment
The Many Flavors
of Arduino
 Arduino Uno
 Arduino Leonardo
 Arduino LilyPad
 Arduino Mega
 Arduino Nano
 Arduino Mini
 Arduino Mini Pro
 Arduino BT
Arduino-like
Systems
 BBC Micro:bit (ARM)
 NodeMCU (ARM)
 Teensy(ARM)
 BeagleBoard (Linux)
 STM32 Discovery
 magicblocks
Arduino Add-ons (Shields)
TFT Touch Screen
Motor/Servo shield
Data logger
Ethernet shield
Audio wave shield
WiFi shield
Cellular/GSM shield
Proto-shield
many more...
Where to Get an Arduino Board
Purchase from online
vendor (available
Sri Lanka)
Getting to know the Arduino
 Digital I/O ports is used to connect to other components
or modules, to receive an input signal, or to send a control
signal. Usually, we name it by adding a "D" in front of the
number, such as D13.
 USB interface is used to provide power, upload code or
communicate with PC.
 LED L is connected to digital I/O port 13 (D13).
 LED TX, RX is used to indicate the state of the serial
communication.
 DC interface is connected DC power to provide power for
the board.
 Power ports can provide power for electronic components
and modules.
 Analog I/O ports can be used to measure analog signals.
 LED ON is used to indicate the power state.
ARDUINO IDE
ONLINE IDE OFFLINE IDE
Download and Install
Download Arduino compiler and development environment
from: http://arduino.cc/en/Main/Software
Before running Arduino, plug in your board using USB cable
(external power is not necessary)
Current version: 1.6.8
 Windows
 MacOX
 Linux
Open source development environment
Select your Board
You have to select the arduino
board type in your IDE. I am using
an Arduino Uno board. To choose
the board, find Tools on menu bar.
Choose the option Board  and
select your correct arduino board
Select Serial Port
The port number is assigned while
installing the hardware driver of
board. You may refer the tutorial on
Installing Arduino on Windows to
know how to find the port number of
board. You can find the port number
by accessing device manager on
Windows. See the section Port (COM
& LPT) and look for an open port
named Arduino Uno (COMxx). If you
are using a different board, you will
find a name accordingly. What
matters is the xx in COMxx part. In my
case, its COM5. So my port number is
5. To select the right port, go to
Tools> Serial Port and select the
port number.
Elements of the Arduino IDE
 Text editor
 syntax and keyword
coloring
 automatic indentation
 programming shortcuts
 Compiler
 Hardware Interface
 Uploading programs
 Communicating with
Arduino via USB
Using the Arduino IDE
1. Verify: Compiles and approves your code. It will catch errors in
syntax (like missing semicolons or parentheses).
2. Upload: Sends your code to the 101 board.
3. New: This buttons opens up a new code window tab.
4. Open: This button will let you open up an existing sketch.
5. Save: This saves the currently active sketch.
6. Serial Monitor: This will open a window that displays any serial
information your 101 board is transmitting. It is very useful for
debugging.
7. Sketch Name: This shows the name of the sketch you are currently
working on.
8. Code Area: This is the area where you compose the code for your
sketch.
9. Message Area: This is where the IDE tells you if there were any
errors in your code.
10. Text Console: The text console shows complete error messages.
When debugging, the text console is very useful.
11. Board and Serial Port: Shows you what board and the serial port
selections.
Arduino Reference
Arduino Sketch Structure
void setup()
 Will be executed repeatedly
void loop()
 Will be executed only when the program
begins (or reset button is pressed)
Activity 1: LED Blink
Load the Blink example (File>Examples>Basics>Blink)
Compile, then upload the program
Congratulations! you are now blinkers!
Now connect your own LED
Resistor is needed to limit current
Pin 13 is special: has built-in
resistor and LED
Resistor and LED may be
interchanged
(but polarity of LED is important)
Change program and upload
Experimenting
Change the blink rate
 how fast can the LED blink (before you can no longer perceive the blinking?)
 (...without changing the resistor?)
How would you make the LED dimmer?
Summary
Introduction to Arduino
 About of Arduino
 History of Arduino
 Arduino Board
 Arduino Software
 How to Use Online Arduino IDE
 Install Arduino Offline IDE - Windows
 Download Arduino IDE
 Arduino Online IDE
 First Use
 Blink Program Code
 Pinout Diagram - Arduino Uno
Whats Next?
Chapter 1 - LED Blink
 Project 1.1 - Control LED by Manual Button
 Circuit Knowledge
1. Power supply
2. Voltage
3. Current (I)
4. Resistor
 Component knowledge
1. Jumper
2. Breadboard
3. Push button
4. LED
 Circuit
 Project 1.2 Control LED by Arduino
 Circuit knowledge
1. Analog signal & Digital signal
2. Low level & high level
 Code knowledge
1. Comments
2. Data type
3. Constant
4. Variable
5. Function
 Circuit
 Sketch

More Related Content

What's hot (20)

Start with arduino
Start with arduinoStart with arduino
Start with arduino
Open.Embedded
Arduino and its hw architecture
Arduino and its hw architectureArduino and its hw architecture
Arduino and its hw architecture
Zeeshan Rafiq
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
Sachin S
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
Lecture 7
Lecture 7Lecture 7
Lecture 7
vishal choudhary
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
Audiomas Soni
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
Qtechknow
Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduino
Makers of India
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Green Moon Solutions
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
Lecture 8
Lecture 8Lecture 8
Lecture 8
vishal choudhary
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Jonathan Ruiz de Garibay
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!
Makers of India
Arduino day 2019
Arduino day 2019Arduino day 2019
Arduino day 2019
BIPUL KUMAR GUPTA
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDEThe IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IOT Academy
arduino-ppt
 arduino-ppt arduino-ppt
arduino-ppt
jhcid
Intro to Hardware Programming with the Arduino Uno
Intro to Hardware Programming with the Arduino UnoIntro to Hardware Programming with the Arduino Uno
Intro to Hardware Programming with the Arduino Uno
Vui Nguyen
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Luki B. Subekti
CTC - What is Arduino
CTC - What is ArduinoCTC - What is Arduino
CTC - What is Arduino
David Cuartielles
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
Gaurav Pandey
Start with arduino
Start with arduinoStart with arduino
Start with arduino
Open.Embedded
Arduino and its hw architecture
Arduino and its hw architectureArduino and its hw architecture
Arduino and its hw architecture
Zeeshan Rafiq
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
Sachin S
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
Audiomas Soni
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
Qtechknow
Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduino
Makers of India
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Jonathan Ruiz de Garibay
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!
Makers of India
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDEThe IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IOT Academy
arduino-ppt
 arduino-ppt arduino-ppt
arduino-ppt
jhcid
Intro to Hardware Programming with the Arduino Uno
Intro to Hardware Programming with the Arduino UnoIntro to Hardware Programming with the Arduino Uno
Intro to Hardware Programming with the Arduino Uno
Vui Nguyen
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Luki B. Subekti
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
Gaurav Pandey

Similar to Indroduction arduino (20)

Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Damien Magoni
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
HebaEng
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
aartis110
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
rajalakshmi769433
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)
Tony Olsson.
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
baabtra.com - No. 1 supplier of quality freshers
Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2
Michael Stal
Arduino by yogesh t s'
Arduino by yogesh t s'Arduino by yogesh t s'
Arduino by yogesh t s'
tsyogesh46
arduino uno.pptx
arduino uno.pptxarduino uno.pptx
arduino uno.pptx
NeeladriBijayMisra
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
Arduino Labs Introduction
Arduino Labs IntroductionArduino Labs Introduction
Arduino Labs Introduction
Open.Embedded
Report on arduino
Report on arduinoReport on arduino
Report on arduino
Ravi Phadtare
What is arduino
What is arduinoWhat is arduino
What is arduino
vivek kumar
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
Arduino
ArduinoArduino
Arduino
Jerin John
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Damien Magoni
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
HebaEng
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
aartis110
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)
Tony Olsson.
Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2
Michael Stal
Arduino by yogesh t s'
Arduino by yogesh t s'Arduino by yogesh t s'
Arduino by yogesh t s'
tsyogesh46
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
Arduino Labs Introduction
Arduino Labs IntroductionArduino Labs Introduction
Arduino Labs Introduction
Open.Embedded
Report on arduino
Report on arduinoReport on arduino
Report on arduino
Ravi Phadtare
What is arduino
What is arduinoWhat is arduino
What is arduino
vivek kumar
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
Dhruwank Vankawala

Recently uploaded (20)

Install Software Application buze 1 new.pptx
Install Software Application buze 1 new.pptxInstall Software Application buze 1 new.pptx
Install Software Application buze 1 new.pptx
Bizunehgetu
Fibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
FibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaFibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Fibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
DrHemansheNarang
Calculating current efficiency using EQE.pdf
Calculating current efficiency using EQE.pdfCalculating current efficiency using EQE.pdf
Calculating current efficiency using EQE.pdf
Brian KIM, PhD
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
findbhavana94
COMPUTER INTERNET PRESENTATION SLIDES.pptx
COMPUTER INTERNET PRESENTATION SLIDES.pptxCOMPUTER INTERNET PRESENTATION SLIDES.pptx
COMPUTER INTERNET PRESENTATION SLIDES.pptx
kelvinzallan5
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
edget1
Presentation1.pptx hardware service ntwork
Presentation1.pptx hardware service ntworkPresentation1.pptx hardware service ntwork
Presentation1.pptx hardware service ntwork
kebimesay23
Module-4 Insurance Plannihzjajanzng.pptx
Module-4 Insurance Plannihzjajanzng.pptxModule-4 Insurance Plannihzjajanzng.pptx
Module-4 Insurance Plannihzjajanzng.pptx
divya995yahoo
Final Stakeholder Presentation for Aundh Smart City.pptx
Final Stakeholder Presentation for Aundh Smart City.pptxFinal Stakeholder Presentation for Aundh Smart City.pptx
Final Stakeholder Presentation for Aundh Smart City.pptx
spatranabis
Research Rabbit Research Rabbit Research Rabbit Research Rabbit
Research Rabbit Research Rabbit Research Rabbit Research RabbitResearch Rabbit Research Rabbit Research Rabbit Research Rabbit
Research Rabbit Research Rabbit Research Rabbit Research Rabbit
ThanhNguyn856080
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdfverlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
ethantaruc
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptxSensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sudhanshu278904
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
hashhshs786
quanta_zs,_hk5_r1a_2010201_schematics.pdf
quanta_zs,_hk5_r1a_2010201_schematics.pdfquanta_zs,_hk5_r1a_2010201_schematics.pdf
quanta_zs,_hk5_r1a_2010201_schematics.pdf
cifewo6167
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptxCLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
MRMATHSACADEMY1
3.1 - CPU Architecture and Fetch Execute - JR.pptx
3.1 - CPU Architecture and Fetch Execute - JR.pptx3.1 - CPU Architecture and Fetch Execute - JR.pptx
3.1 - CPU Architecture and Fetch Execute - JR.pptx
cmnsmashnalu
W03-L04 Content Addressable Network (1).pptx
W03-L04 Content Addressable Network (1).pptxW03-L04 Content Addressable Network (1).pptx
W03-L04 Content Addressable Network (1).pptx
AliAbbas835233
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdfenterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
RAJAGOPAL RAMACHANDRAN
Manpreet kay bhatia Business Statistics.ppt
Manpreet kay bhatia Business  Statistics.pptManpreet kay bhatia Business  Statistics.ppt
Manpreet kay bhatia Business Statistics.ppt
Noorien3
Campus life leveragun rhe tida ycvhcjkcncj
Campus life leveragun rhe tida ycvhcjkcncjCampus life leveragun rhe tida ycvhcjkcncj
Campus life leveragun rhe tida ycvhcjkcncj
abhisinghroy21
Install Software Application buze 1 new.pptx
Install Software Application buze 1 new.pptxInstall Software Application buze 1 new.pptx
Install Software Application buze 1 new.pptx
Bizunehgetu
Fibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
FibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaFibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Fibroadenomaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
DrHemansheNarang
Calculating current efficiency using EQE.pdf
Calculating current efficiency using EQE.pdfCalculating current efficiency using EQE.pdf
Calculating current efficiency using EQE.pdf
Brian KIM, PhD
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
Beckham bhul? 9((-&::-7+(;;+((;:-(((!;;-
findbhavana94
COMPUTER INTERNET PRESENTATION SLIDES.pptx
COMPUTER INTERNET PRESENTATION SLIDES.pptxCOMPUTER INTERNET PRESENTATION SLIDES.pptx
COMPUTER INTERNET PRESENTATION SLIDES.pptx
kelvinzallan5
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
M08 Maintenance Procedure.pdfConnect Hard Ware Perie PPT - Connect Hard Ware ...
edget1
Presentation1.pptx hardware service ntwork
Presentation1.pptx hardware service ntworkPresentation1.pptx hardware service ntwork
Presentation1.pptx hardware service ntwork
kebimesay23
Module-4 Insurance Plannihzjajanzng.pptx
Module-4 Insurance Plannihzjajanzng.pptxModule-4 Insurance Plannihzjajanzng.pptx
Module-4 Insurance Plannihzjajanzng.pptx
divya995yahoo
Final Stakeholder Presentation for Aundh Smart City.pptx
Final Stakeholder Presentation for Aundh Smart City.pptxFinal Stakeholder Presentation for Aundh Smart City.pptx
Final Stakeholder Presentation for Aundh Smart City.pptx
spatranabis
Research Rabbit Research Rabbit Research Rabbit Research Rabbit
Research Rabbit Research Rabbit Research Rabbit Research RabbitResearch Rabbit Research Rabbit Research Rabbit Research Rabbit
Research Rabbit Research Rabbit Research Rabbit Research Rabbit
ThanhNguyn856080
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdfverlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
verlogic3_chapteDDZXCCASCASCASCASCASC8.pdf
ethantaruc
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptxSensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sensors DTH11 PIR HC-05 (2) of sudhanshu.pptx
Sudhanshu278904
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
LATEST-CRACK Adobe Illustrator CC 2018 23.0.0
hashhshs786
quanta_zs,_hk5_r1a_2010201_schematics.pdf
quanta_zs,_hk5_r1a_2010201_schematics.pdfquanta_zs,_hk5_r1a_2010201_schematics.pdf
quanta_zs,_hk5_r1a_2010201_schematics.pdf
cifewo6167
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptxCLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
CLASS 12 MATRIXTESTFOR CLSASSWWWWWWWWWWWWWWWWWWWWWWWW.pptx
MRMATHSACADEMY1
3.1 - CPU Architecture and Fetch Execute - JR.pptx
3.1 - CPU Architecture and Fetch Execute - JR.pptx3.1 - CPU Architecture and Fetch Execute - JR.pptx
3.1 - CPU Architecture and Fetch Execute - JR.pptx
cmnsmashnalu
W03-L04 Content Addressable Network (1).pptx
W03-L04 Content Addressable Network (1).pptxW03-L04 Content Addressable Network (1).pptx
W03-L04 Content Addressable Network (1).pptx
AliAbbas835233
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdfenterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
enterprise_command_centre-roadmap_using_IBM_safer_planet_20180507.pdf
RAJAGOPAL RAMACHANDRAN
Manpreet kay bhatia Business Statistics.ppt
Manpreet kay bhatia Business  Statistics.pptManpreet kay bhatia Business  Statistics.ppt
Manpreet kay bhatia Business Statistics.ppt
Noorien3
Campus life leveragun rhe tida ycvhcjkcncj
Campus life leveragun rhe tida ycvhcjkcncjCampus life leveragun rhe tida ycvhcjkcncj
Campus life leveragun rhe tida ycvhcjkcncj
abhisinghroy21

Indroduction arduino

  • 1. INTRODUCTION THE ARDUINO PRESENT BY THINGERBIT ELECTRONICS WWW.THINGERBITS.COM
  • 2. What is a Microcontroller? Computer on a single integrated chip Processor (CPU) Memory (RAM / ROM / Flash) I/O ports (USB, I2C, SPI, ADC) Used in: Common microcontroller families: Intel: 4004, 8008, etc. Atmel: AT and AVR Microchip: PIC ARM: (multiple manufacturers) Cellphones Toys Household appliances Cars Cameras
  • 3. The ATmega328P Microcontroller AVR 8-bit RISC architecture Up to 20 MHz clock Available in DIP package 32kB flash memory 1 kB SRAM 23 programmable I/O channels Six 10-bit ADC inputs Three timers/counters Six PWM outputs
  • 4. What is Arduino Not? It is not a chip (IC) It is not a board (PCB) It is not a company or a manufacturer It is not a programming language It is not a computer architecture (although it involves all of these things...)
  • 5. So what is Arduino? Founded by Massimo Banzi and David Cuartielles in 2005 Open-source hardware platform Based on Wiring Platform, which dates to 2003 Easy-to learn language and libraries (based on Wiring language) Integrated development environment (based on Processing programming environment) Available for Windows / Mac / Linux Its a movement, not a microcontroller: Open source development environment
  • 6. The Many Flavors of Arduino Arduino Uno Arduino Leonardo Arduino LilyPad Arduino Mega Arduino Nano Arduino Mini Arduino Mini Pro Arduino BT
  • 7. Arduino-like Systems BBC Micro:bit (ARM) NodeMCU (ARM) Teensy(ARM) BeagleBoard (Linux) STM32 Discovery magicblocks
  • 8. Arduino Add-ons (Shields) TFT Touch Screen Motor/Servo shield Data logger Ethernet shield Audio wave shield WiFi shield Cellular/GSM shield Proto-shield many more...
  • 9. Where to Get an Arduino Board Purchase from online vendor (available Sri Lanka)
  • 10. Getting to know the Arduino Digital I/O ports is used to connect to other components or modules, to receive an input signal, or to send a control signal. Usually, we name it by adding a "D" in front of the number, such as D13. USB interface is used to provide power, upload code or communicate with PC. LED L is connected to digital I/O port 13 (D13). LED TX, RX is used to indicate the state of the serial communication. DC interface is connected DC power to provide power for the board. Power ports can provide power for electronic components and modules. Analog I/O ports can be used to measure analog signals. LED ON is used to indicate the power state.
  • 11. ARDUINO IDE ONLINE IDE OFFLINE IDE
  • 12. Download and Install Download Arduino compiler and development environment from: http://arduino.cc/en/Main/Software Before running Arduino, plug in your board using USB cable (external power is not necessary) Current version: 1.6.8 Windows MacOX Linux Open source development environment
  • 13. Select your Board You have to select the arduino board type in your IDE. I am using an Arduino Uno board. To choose the board, find Tools on menu bar. Choose the option Board and select your correct arduino board
  • 14. Select Serial Port The port number is assigned while installing the hardware driver of board. You may refer the tutorial on Installing Arduino on Windows to know how to find the port number of board. You can find the port number by accessing device manager on Windows. See the section Port (COM & LPT) and look for an open port named Arduino Uno (COMxx). If you are using a different board, you will find a name accordingly. What matters is the xx in COMxx part. In my case, its COM5. So my port number is 5. To select the right port, go to Tools> Serial Port and select the port number.
  • 15. Elements of the Arduino IDE Text editor syntax and keyword coloring automatic indentation programming shortcuts Compiler Hardware Interface Uploading programs Communicating with Arduino via USB
  • 16. Using the Arduino IDE 1. Verify: Compiles and approves your code. It will catch errors in syntax (like missing semicolons or parentheses). 2. Upload: Sends your code to the 101 board. 3. New: This buttons opens up a new code window tab. 4. Open: This button will let you open up an existing sketch. 5. Save: This saves the currently active sketch. 6. Serial Monitor: This will open a window that displays any serial information your 101 board is transmitting. It is very useful for debugging. 7. Sketch Name: This shows the name of the sketch you are currently working on. 8. Code Area: This is the area where you compose the code for your sketch. 9. Message Area: This is where the IDE tells you if there were any errors in your code. 10. Text Console: The text console shows complete error messages. When debugging, the text console is very useful. 11. Board and Serial Port: Shows you what board and the serial port selections.
  • 18. Arduino Sketch Structure void setup() Will be executed repeatedly void loop() Will be executed only when the program begins (or reset button is pressed)
  • 19. Activity 1: LED Blink Load the Blink example (File>Examples>Basics>Blink) Compile, then upload the program Congratulations! you are now blinkers!
  • 20. Now connect your own LED Resistor is needed to limit current Pin 13 is special: has built-in resistor and LED Resistor and LED may be interchanged (but polarity of LED is important) Change program and upload
  • 21. Experimenting Change the blink rate how fast can the LED blink (before you can no longer perceive the blinking?) (...without changing the resistor?) How would you make the LED dimmer?
  • 22. Summary Introduction to Arduino About of Arduino History of Arduino Arduino Board Arduino Software How to Use Online Arduino IDE Install Arduino Offline IDE - Windows Download Arduino IDE Arduino Online IDE First Use Blink Program Code Pinout Diagram - Arduino Uno
  • 23. Whats Next? Chapter 1 - LED Blink Project 1.1 - Control LED by Manual Button Circuit Knowledge 1. Power supply 2. Voltage 3. Current (I) 4. Resistor Component knowledge 1. Jumper 2. Breadboard 3. Push button 4. LED Circuit Project 1.2 Control LED by Arduino Circuit knowledge 1. Analog signal & Digital signal 2. Low level & high level Code knowledge 1. Comments 2. Data type 3. Constant 4. Variable 5. Function Circuit Sketch