SlideShare a Scribd company logo
1 of 19
INTRODUCTION TO
ARDUINO
ARDUINO
• Arduino is the go-to gear for artists, hobbyists, students, and anyone with a
gadgetry dream.
• Arduino rose out of another formidable challenge: how to teach students to
create electronics, fast.
• With Arduino, you can control almost everything around you be it simple LED
or giant Robots.
2
ARDUINO
• Basically Arduino is Microcontroller.
• Microcontroller is microprocessor with memory, RAM and some other
peripheral connected with it.
• The Arduino Uno is a microcontroller board based on the ATmega328 .
The ATmega328 has Flash memory of 32 KB (with 0.5 KB used for the
bootloader). It also has 2 KB of SRAM and 1 KB of EEPROM
3
DIFFERENT TYPES OF ARDUINO
4
Arduino Mega 2560
Arduino LilyPad
Arduino Uno
DIY Arduino
Boarduino Kit
ARDUINO UNO
• What does it have?
• 14 Digital In/Out pins (6 can be used as PWM)
• 6 Analog Inputs
• A USB Connection
• A Power Jack
• Reset Button
• On-board LED
• SCL/SDA pins (Serial Clock/ Serial Data pins)
• In short, it contains everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it with a AC-to-DC
adapter or battery to get started.
5
Pune Makers ( http://www.meetup.com/Pune-Makers/ )
6
Digital IO
PWM(3, 5, 6, 9, 10, 11)
SCLSDA
(I2C Bus)
RESET
PWR IN
USB
(to Computer)
Analog
INPUTS
POWER
5V / 3.3V / GND
HOW TO CODE IN ARDUINO
• You need to download Arduino IDE (Integrated Development Environment).
• Arduino IDE is available for all Mac, Windows.and Linux.
7
HOW TO CODE IN ARDUINO
• Once you have downloaded and
installed/extracted the folder, you
can directly run Arduino.exe,
which will take you to its IDE.
• The IDE will look like the shown
screenshot.
8
error & status messages
PROGRAM YOUR ARDUINO
• Before you start programming,
double check that correct board
is selected under Tools  Board.
• Now, you can start playing with
Arduino.
9
PROGRAM YOUR ARDUINO
• The Arduino Uno can be
programmed with the Arduino
software. Select "Arduino Uno
from the Tools > Board menu
(according to the microcontroller
on your board).
• All the peripheral connected with
Computers are using Serial Port.
• You can check port for Arduino
Uno in Device Manger.
10
INPUT VS OUTPUT
11
Image from Theory and Practice of Tangible User Interfaces at UC Berkley
6 MAJOR CONCEPTS
• digitalWrite()
• analogWrite()
• digitalRead()
• If (statements) / Boolean
• analogRead
• Serial Communication
Pune Makers ( http://www.meetup.com/Pune-Makers/ )
12
ANALOG VS DIGITAL
•Microcontrollers are digital devices – ON or OFF. Also called – discrete.
•Analog signals are anything that can be a full range of values.
13
5 V
0 V
5 V
0 V
ANALOG VS DIGITAL
•Analog Sensors
14
Sensors Variables
Mic soundVolume
Photoresistor lightLevel
Potentiometer dialPosition
Temp Sensor temperature
Flex Sensor bend
Accelerometer tilt/acceleration
Digital Sensors
•Digital sensors are more
straight forward than Analog.
•No matter what the sensor
there are only two settings: On
and Off
•Example, Push button, Switch
SERIAL COMMUNICATION
• “Serial” because data is broken into bits, each sent one after another in a single wire.
• Compiling turns your program into binary data (ones and zeros)
• Uploading sends the bits through USB cable to the Arduino
• The two LEDs near the USB connector blink when data is transmitted.
• RX blinks when the Arduino is receiving data.
• TX blinks when the Arduino is transmitting data
15
LET’S START CODING
PROJECT #1 LED BLINK
• digitalWrite()
17
18
Compile
Upload
Status Message
THANK YOU

More Related Content

Similar to Introduction to Arduino Microcontrollers

Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino Dennis Espiritu
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdfRynefelElopre2
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IOT Academy
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdfHebaEng
 
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
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptxAkshat Bijronia
 
Overview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptxOverview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptxSAMTECH ELECTRONICS CONCEPT
 
An Introduction To Arduino.pptx
An Introduction To Arduino.pptxAn Introduction To Arduino.pptx
An Introduction To Arduino.pptxRoboDJ
 
What is arduino? and its type
What is arduino? and its typeWhat is arduino? and its type
What is arduino? and its typeDarshanGawde
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boardselprocus
 
MICROCONTROLLER BASED SYSTEM
MICROCONTROLLER BASED SYSTEMMICROCONTROLLER BASED SYSTEM
MICROCONTROLLER BASED SYSTEMSrinivasGurijala4
 
Microcontroller arduino uno board
Microcontroller arduino uno boardMicrocontroller arduino uno board
Microcontroller arduino uno boardGaurav
 

Similar to Introduction to Arduino Microcontrollers (20)

Arduino ppt 2023
Arduino ppt 2023Arduino ppt 2023
Arduino ppt 2023
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
 
Arduino Hands-on Workshop
Arduino Hands-on WorkshopArduino Hands-on Workshop
Arduino Hands-on Workshop
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
 
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
 
Intro arduino
Intro arduinoIntro arduino
Intro arduino
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Overview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptxOverview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptx
 
Arduino
ArduinoArduino
Arduino
 
An Introduction To Arduino.pptx
An Introduction To Arduino.pptxAn Introduction To Arduino.pptx
An Introduction To Arduino.pptx
 
What is arduino? and its type
What is arduino? and its typeWhat is arduino? and its type
What is arduino? and its type
 
Arduino
ArduinoArduino
Arduino
 
Ardu
ArduArdu
Ardu
 
Arduino01.pptx
Arduino01.pptxArduino01.pptx
Arduino01.pptx
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
MICROCONTROLLER BASED SYSTEM
MICROCONTROLLER BASED SYSTEMMICROCONTROLLER BASED SYSTEM
MICROCONTROLLER BASED SYSTEM
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Microcontroller arduino uno board
Microcontroller arduino uno boardMicrocontroller arduino uno board
Microcontroller arduino uno board
 

Recently uploaded

SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrsaastr
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Hasting Chen
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptssuser319dad
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
Motivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfMotivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfakankshagupta7348026
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxmohammadalnahdi22
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxNikitaBankoti2
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AITatiana Gurgel
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...NETWAYS
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...NETWAYS
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...Sheetaleventcompany
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxFamilyWorshipCenterD
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesPooja Nehwal
 

Recently uploaded (20)

SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
 
Motivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfMotivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdf
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 

Introduction to Arduino Microcontrollers

  • 2. ARDUINO • Arduino is the go-to gear for artists, hobbyists, students, and anyone with a gadgetry dream. • Arduino rose out of another formidable challenge: how to teach students to create electronics, fast. • With Arduino, you can control almost everything around you be it simple LED or giant Robots. 2
  • 3. ARDUINO • Basically Arduino is Microcontroller. • Microcontroller is microprocessor with memory, RAM and some other peripheral connected with it. • The Arduino Uno is a microcontroller board based on the ATmega328 . The ATmega328 has Flash memory of 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of SRAM and 1 KB of EEPROM 3
  • 4. DIFFERENT TYPES OF ARDUINO 4 Arduino Mega 2560 Arduino LilyPad Arduino Uno DIY Arduino Boarduino Kit
  • 5. ARDUINO UNO • What does it have? • 14 Digital In/Out pins (6 can be used as PWM) • 6 Analog Inputs • A USB Connection • A Power Jack • Reset Button • On-board LED • SCL/SDA pins (Serial Clock/ Serial Data pins) • In short, it contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. 5
  • 6. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 6 Digital IO PWM(3, 5, 6, 9, 10, 11) SCLSDA (I2C Bus) RESET PWR IN USB (to Computer) Analog INPUTS POWER 5V / 3.3V / GND
  • 7. HOW TO CODE IN ARDUINO • You need to download Arduino IDE (Integrated Development Environment). • Arduino IDE is available for all Mac, Windows.and Linux. 7
  • 8. HOW TO CODE IN ARDUINO • Once you have downloaded and installed/extracted the folder, you can directly run Arduino.exe, which will take you to its IDE. • The IDE will look like the shown screenshot. 8 error & status messages
  • 9. PROGRAM YOUR ARDUINO • Before you start programming, double check that correct board is selected under Tools  Board. • Now, you can start playing with Arduino. 9
  • 10. PROGRAM YOUR ARDUINO • The Arduino Uno can be programmed with the Arduino software. Select "Arduino Uno from the Tools > Board menu (according to the microcontroller on your board). • All the peripheral connected with Computers are using Serial Port. • You can check port for Arduino Uno in Device Manger. 10
  • 11. INPUT VS OUTPUT 11 Image from Theory and Practice of Tangible User Interfaces at UC Berkley
  • 12. 6 MAJOR CONCEPTS • digitalWrite() • analogWrite() • digitalRead() • If (statements) / Boolean • analogRead • Serial Communication Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 12
  • 13. ANALOG VS DIGITAL •Microcontrollers are digital devices – ON or OFF. Also called – discrete. •Analog signals are anything that can be a full range of values. 13 5 V 0 V 5 V 0 V
  • 14. ANALOG VS DIGITAL •Analog Sensors 14 Sensors Variables Mic soundVolume Photoresistor lightLevel Potentiometer dialPosition Temp Sensor temperature Flex Sensor bend Accelerometer tilt/acceleration Digital Sensors •Digital sensors are more straight forward than Analog. •No matter what the sensor there are only two settings: On and Off •Example, Push button, Switch
  • 15. SERIAL COMMUNICATION • “Serial” because data is broken into bits, each sent one after another in a single wire. • Compiling turns your program into binary data (ones and zeros) • Uploading sends the bits through USB cable to the Arduino • The two LEDs near the USB connector blink when data is transmitted. • RX blinks when the Arduino is receiving data. • TX blinks when the Arduino is transmitting data 15
  • 17. PROJECT #1 LED BLINK • digitalWrite() 17

Editor's Notes

  1. Flash- Where program is stored. SRAM-Static Random Access Memory ( sketch creates and manipulates variables when it runs ) EEPROM- Electrically Erasable Programmable Read-Only Memory ( memory whose values are kept when the board is turned off )