SlideShare a Scribd company logo
INTRODUCTION TO
ARDUINO
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 4
DIFFERENT TYPES OF ARDUINO
Arduino Mega 2560
Arduino LilyPad
Arduino Uno
DIY Arduino
Boarduino Kit
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
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
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
error & status messages
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 11
INPUT VS OUTPUT
Image from Theory and Practice of Tangible User Interfaces at UC Berkley
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 12
6 MAJOR CONCEPTS
 digitalWrite()
 analogWrite()
 digitalRead()
 If (statements) / Boolean
 analogRead()
 Serial Communication
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
5 V
0 V
5 V
0 V
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 14
ANALOG VS DIGITAL
Analog Sensors
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
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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
LET’S START CODING
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 17
PROJECT #1 LED BLINK
 digitalWrite()
Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 18
Compile
Upload
Status Message
THANK YOU
Pune Makers
16th
May 2015
Ad

More Related Content

Similar to Arduino-Workshop For beginners UG Students (20)

WeMos D1 Mini with integrated ESP8266 has an operating
WeMos D1 Mini with integrated ESP8266 has an operatingWeMos D1 Mini with integrated ESP8266 has an operating
WeMos D1 Mini with integrated ESP8266 has an operating
AbhinavGurijala
 
arduino uno
arduino unoarduino uno
arduino uno
20PA013BHOOMIKAP
 
P.Akshaya reddy.pptx
P.Akshaya reddy.pptxP.Akshaya reddy.pptx
P.Akshaya reddy.pptx
SrinivasGurijala4
 
Microcontroller based system Babc.pptx
Microcontroller  based  system Babc.pptxMicrocontroller  based  system Babc.pptx
Microcontroller based system Babc.pptx
AbhinavGurijala
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
 
microcontroller based system and arduino.pptx
microcontroller based system and arduino.pptxmicrocontroller based system and arduino.pptx
microcontroller based system and arduino.pptx
AbhinavGurijala
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
 
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
elprocus
 
Arduino
ArduinoArduino
Arduino
vipin7vj
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Intro arduino
Intro arduinoIntro arduino
Intro arduino
MaLcom MooNwalker
 
Ardunio
ArdunioArdunio
Ardunio
DILEEP KUMAR
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
José Faria
 
Ardu
ArduArdu
Ardu
Dheeraj Sagar
 
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptxARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptx
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
menchc1207
 
Microcontroller based system amonG.pptx
Microcontroller  based  system amonG.pptxMicrocontroller  based  system amonG.pptx
Microcontroller based system amonG.pptx
AbhinavGurijala
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
RebekahSamuel2
 
Arduino_IOT Arduino_IOT Arduino_IOTArdui
Arduino_IOT Arduino_IOT Arduino_IOTArduiArduino_IOT Arduino_IOT Arduino_IOTArdui
Arduino_IOT Arduino_IOT Arduino_IOTArdui
deepikayadav216323
 
WeMos D1 Mini with integrated ESP8266 has an operating
WeMos D1 Mini with integrated ESP8266 has an operatingWeMos D1 Mini with integrated ESP8266 has an operating
WeMos D1 Mini with integrated ESP8266 has an operating
AbhinavGurijala
 
Microcontroller based system Babc.pptx
Microcontroller  based  system Babc.pptxMicrocontroller  based  system Babc.pptx
Microcontroller based system Babc.pptx
AbhinavGurijala
 
microcontroller based system and arduino.pptx
microcontroller based system and arduino.pptxmicrocontroller based system and arduino.pptx
microcontroller based system and arduino.pptx
AbhinavGurijala
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
 
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
elprocus
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
José Faria
 
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptxARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptx
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
menchc1207
 
Microcontroller based system amonG.pptx
Microcontroller  based  system amonG.pptxMicrocontroller  based  system amonG.pptx
Microcontroller based system amonG.pptx
AbhinavGurijala
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
RebekahSamuel2
 
Arduino_IOT Arduino_IOT Arduino_IOTArdui
Arduino_IOT Arduino_IOT Arduino_IOTArduiArduino_IOT Arduino_IOT Arduino_IOTArdui
Arduino_IOT Arduino_IOT Arduino_IOTArdui
deepikayadav216323
 

More from Godwin585235 (10)

Tech rat ppt for the engineering students.pptx
Tech rat ppt for the engineering students.pptxTech rat ppt for the engineering students.pptx
Tech rat ppt for the engineering students.pptx
Godwin585235
 
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptxVEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
Godwin585235
 
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
notwa dfdfvs gf fdgfgh  s thgfgh frg regggnotwa dfdfvs gf fdgfgh  s thgfgh frg reggg
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
Godwin585235
 
digita circuit design.pptx
digita circuit design.pptxdigita circuit design.pptx
digita circuit design.pptx
Godwin585235
 
java01.ppt
java01.pptjava01.ppt
java01.ppt
Godwin585235
 
PCB Tutorial.pptx
PCB Tutorial.pptxPCB Tutorial.pptx
PCB Tutorial.pptx
Godwin585235
 
ch02.ppt
ch02.pptch02.ppt
ch02.ppt
Godwin585235
 
cyber secuirty.pptx
cyber secuirty.pptxcyber secuirty.pptx
cyber secuirty.pptx
Godwin585235
 
ROBOTICS APPLICATIONS.pptx
ROBOTICS APPLICATIONS.pptxROBOTICS APPLICATIONS.pptx
ROBOTICS APPLICATIONS.pptx
Godwin585235
 
Presentation On Machine Learning.pptx
Presentation  On Machine Learning.pptxPresentation  On Machine Learning.pptx
Presentation On Machine Learning.pptx
Godwin585235
 
Tech rat ppt for the engineering students.pptx
Tech rat ppt for the engineering students.pptxTech rat ppt for the engineering students.pptx
Tech rat ppt for the engineering students.pptx
Godwin585235
 
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptxVEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
VEHICLE TO VEHICLE COMMUNICATION USING LI-FI TECHNOLOGY (2).pptx
Godwin585235
 
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
notwa dfdfvs gf fdgfgh  s thgfgh frg regggnotwa dfdfvs gf fdgfgh  s thgfgh frg reggg
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
Godwin585235
 
digita circuit design.pptx
digita circuit design.pptxdigita circuit design.pptx
digita circuit design.pptx
Godwin585235
 
cyber secuirty.pptx
cyber secuirty.pptxcyber secuirty.pptx
cyber secuirty.pptx
Godwin585235
 
ROBOTICS APPLICATIONS.pptx
ROBOTICS APPLICATIONS.pptxROBOTICS APPLICATIONS.pptx
ROBOTICS APPLICATIONS.pptx
Godwin585235
 
Presentation On Machine Learning.pptx
Presentation  On Machine Learning.pptxPresentation  On Machine Learning.pptx
Presentation On Machine Learning.pptx
Godwin585235
 
Ad

Recently uploaded (20)

data science data stoger Presentation1.pptx
data science data stoger Presentation1.pptxdata science data stoger Presentation1.pptx
data science data stoger Presentation1.pptx
sandeepsherkhane830
 
How to Switch Hosting Providers in Vancouver Without Any Downtime
How to Switch Hosting Providers in Vancouver Without Any DowntimeHow to Switch Hosting Providers in Vancouver Without Any Downtime
How to Switch Hosting Providers in Vancouver Without Any Downtime
steve198109
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
What's going on with IPv6? presented by Geoff Huston
What's going on with IPv6? presented by Geoff HustonWhat's going on with IPv6? presented by Geoff Huston
What's going on with IPv6? presented by Geoff Huston
APNIC
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
final project for icpna b08 if someone want.pptx
final project for icpna b08 if someone want.pptxfinal project for icpna b08 if someone want.pptx
final project for icpna b08 if someone want.pptx
ESTEFANOANDREYGARCIA
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
Virtualization Trends Streamlining Operations in Telecom with David Bernard ...
Virtualization Trends  Streamlining Operations in Telecom with David Bernard ...Virtualization Trends  Streamlining Operations in Telecom with David Bernard ...
Virtualization Trends Streamlining Operations in Telecom with David Bernard ...
David Bernard Ezell
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
data science data stoger Presentation1.pptx
data science data stoger Presentation1.pptxdata science data stoger Presentation1.pptx
data science data stoger Presentation1.pptx
sandeepsherkhane830
 
How to Switch Hosting Providers in Vancouver Without Any Downtime
How to Switch Hosting Providers in Vancouver Without Any DowntimeHow to Switch Hosting Providers in Vancouver Without Any Downtime
How to Switch Hosting Providers in Vancouver Without Any Downtime
steve198109
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
What's going on with IPv6? presented by Geoff Huston
What's going on with IPv6? presented by Geoff HustonWhat's going on with IPv6? presented by Geoff Huston
What's going on with IPv6? presented by Geoff Huston
APNIC
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
final project for icpna b08 if someone want.pptx
final project for icpna b08 if someone want.pptxfinal project for icpna b08 if someone want.pptx
final project for icpna b08 if someone want.pptx
ESTEFANOANDREYGARCIA
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
Virtualization Trends Streamlining Operations in Telecom with David Bernard ...
Virtualization Trends  Streamlining Operations in Telecom with David Bernard ...Virtualization Trends  Streamlining Operations in Telecom with David Bernard ...
Virtualization Trends Streamlining Operations in Telecom with David Bernard ...
David Bernard Ezell
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
Ad

Arduino-Workshop For beginners UG Students

  • 2. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
  • 3. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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
  • 4. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 4 DIFFERENT TYPES OF ARDUINO Arduino Mega 2560 Arduino LilyPad Arduino Uno DIY Arduino Boarduino Kit
  • 5. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
  • 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. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
  • 8. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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. error & status messages
  • 9. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
  • 10. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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.
  • 11. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 11 INPUT VS OUTPUT Image from Theory and Practice of Tangible User Interfaces at UC Berkley
  • 12. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 12 6 MAJOR CONCEPTS  digitalWrite()  analogWrite()  digitalRead()  If (statements) / Boolean  analogRead()  Serial Communication
  • 13. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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. 5 V 0 V 5 V 0 V
  • 14. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 14 ANALOG VS DIGITAL Analog Sensors 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. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 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
  • 17. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 17 PROJECT #1 LED BLINK  digitalWrite()
  • 18. Pune Makers ( http://www.meetup.com/Pune-Makers/ ) 18 Compile Upload Status Message

Editor's Notes

  • #3: 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 )