SlideShare a Scribd company logo
1 of 25
Download to read offline
Start With Arduino
The Indian Way - Low Cost and Quick
Kinds of Arduino Boards

There are Four kind of boards

 ● With USB port -Arduino UNO, Arduino MEGA
 ● With Serial Port - Arduino Severino (Lowest Cost)
 ● Small Size - Arduino Nano, Mini,Lilypad
 ● With some thing extra - Arduino BT, Arduino Ethernet
Which One Do You Need

Depends upon your need.
Which one do We use and why?

We use Arduino Severino.

Why?

 ● It is low cost. Costs less than
   Rs 600/- for complete board
   and PCB at just Rs 50/-
 ● Provide serial interface for
   use with GSM or GPS
   boards.
 ● Has all DIP parts, rework or
   changes are easy.
And why we do not use others

● USB based boards and blank PCBs are expensive.
● Double sided boards can not be easily reworked.
● If boot loader gets corrupted (and it often does), it is difficult
  to program further.
● Connecting GSM or GPS or Standalone blue tooth boards
  are difficult (if not impossible)
And how to program it

We use low cost USB ASP programmer which can be
connected to any lap top on USB port.

With this programmer you do not even need boot loader and
any blank IC can work.

USB ASP programmers are also available for less than Rs
600/-
So what is the total cost for starting

Arduino Severino Clone - Rs 599/-
USB ASP Programmer - Rs 599/-
Serial port cable - Rs 75/-
USB Cable - Rs 75/-
12V / 300 mAmps power supply - 150/-

Total cost - Rs 1498/-
Install driver for USB ASP

Download USB ASP driver from http://www.fischl.de/usbasp/

Connect USB ASP, when Windows ask for driver, point to the
location where you have stored unzipped drivers.

On Device Manager, you can check LibUSB device.

(Linux and MAC does not need driver and skip this step)
Find Location of preference.txt file

Download Arduino from arduino.cc
Install on your PC with Windows, Linux or MAC
Unzip and start.
Open Arduino and click on preference in menu
specify programming method
Open preference.txt file.Search for text 'upload'

if you find a line like this

upload.using=bootloader

change it to usbasp if you will be using USBASP for
programming

upload.using=usbasp

or leave it as it is if you will be using bootloader for
programming
What is upload or programming

When we write program in C and click on UPLOAD the arduino
converts C program to machine code and generate a hex file.

This hex file will be transferred to micro controller.

there are two methods - one is via serial port (this needs micro
controller already burnt with bootloader program)

second is using a separate programmer like USBASP. This
does not need a micro controller. Please also note that when
you get a arduino board, this comes with pre-loaded
bootloader. However after you program with USBASP,
bootloader is over written.
Write first program
Connect Hardware with USB Port
PC + Arduino Severino + USBASP + 12V Power Supply




If using Windows, check that USBLib is visible in Device
Manager. (If you do not know what is device manager, search it
yourself)

make sure that preference.txt file has
upload.using=usbasp
Connect hardware with RS232 port

PC with serial port + Arduino Sevnerino + 12V Power Supply




You need to have ATMEGA8 with bootloader

and preference file should have

upload.using=bootloader
Select Board, Verify and Then Upload

To select Board
Tools | Boards | Arduino NG or Older w/ATMEGA8

To select com port (when using with bootloader)
Tools | Serial Port | Select appropriate port number

To compile(verify the syntax)
Sketch | Verify or Compile

To download to the board
File | Upload to I/O Board

After uploading is over LED will start blinking at 1 Hz rate ie half
second on and half second off.
Some thing about bootloader

Bootloader is a program that allow more programs to be
uploaded with using external hardware.
At power on if bootloader is burnt into chip then program wait
for few seconds for data from serial port,

if data is available in some defined format that this is stored in
flash as program.

if nothing is coming from serial port then last uploaded program
starts.

More details about bootloader are available here
http://www.arduino.cc/en/Main/Bootloader
Modify The Program

You can change the time in parenthesis after delay and see
the difference in blinking.
The first time is time for LED ON and second is time for LED
OFF

                        This LED will blink as per program
Understand pin numbers

IC has some physical pin numbers. ATMEGA8 in 28 pin
package has 20 I/O lines and few pins for oscillator and power
supply etc. Physical pins are usually required for making circuit
and when probing using CRO or multimeter.

20 lines are given some names like PC6 where PC stand for
Port C and 6 is the bit 6 of port c. During programming in
C/Assembly we use PC6 and not the physical pin.

Arduino board has these 20 lines taken to a connector. These
connector pins are marked 0 to 19. In Arduino software we
refer to these pins ie 0 to 19 and not port pins or physical pins.
Understanding Pin Numbers

Some pins have dual purpose

For example Analog pin 0 is also digital pin 14.

Pin 0 is also Received data

Next few pages have more details and mapping of pin numbers
ie physical - logical - arduino
Understand Pin Numbers

This board has 20 I/O pins marked on pins.
all of them are I/O. Some have dual purpose.
Understanding Pin Numbers

All 20 pins can be access as general purpose I/O pins
Some pins have other functions as explained below


      Pin Number        Function
      0                 RXD
      1                 TXD
      13                On board LED

      9,10,11           PWM (Analog Outputs)
      14,15,16,17,18,19 Analog Inputs 0 to 5
      2,3               Interrupts 0 and 1
ATMEGA to Arduino Pin Mapping

ATMEGA has 28 physical pins.
In data sheets they are referred as Port and a number like PC5
In Arduino they are referred as numbers 0 to 19.
Mapping of all three is as below
Summary

This document explain the first day of experiments with Arduino
Board.

Total hardware cost of material used in less than Rs 1500/-

Not much can be done in this however this is a starting point.

Next addons could be relays, IR Sensors, Remote handset,
Temperature sensors, Light Sensors. Color LEDs, Buzzers.

All this material will cost less than Rs 1000/-
About Open.Embedded

This is an initiative of group of professionals, students and
hobbyists to share their knowledge among others using low
cost open source software.

We think it criminal when students are taught 8085 and 8051 in
college when world is moving forward and technology changes
are happening every where in the world.

Join us at facebook.com/open.embedded

Buy low cost kits at stores.ebay.in/openembedded
Modification History

Aug 18,2011 - details about bootloader added

More Related Content

What's hot

Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduinoMakers of India
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoKarim El-Rayes
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to ArduinoQtechknow
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1Audiomas Soni
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
arduino-ppt
 arduino-ppt arduino-ppt
arduino-pptjhcid
 
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!Makers of India
 
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 UnoVui Nguyen
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and CircuitsJason Griffey
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino ProgrammingJames Lewis
 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model'sAli Izmir
 
Arduino Microcontroller
Arduino Microcontroller Arduino Microcontroller
Arduino Microcontroller creatjet3d labs
 
arduino-1
 arduino-1 arduino-1
arduino-1jhcid
 

What's hot (20)

Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduino
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
arduino-ppt
 arduino-ppt arduino-ppt
arduino-ppt
 
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!
 
Arduino basics
Arduino basicsArduino basics
Arduino basics
 
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
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and Circuits
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
2009 11-17-arduino-basics
2009 11-17-arduino-basics2009 11-17-arduino-basics
2009 11-17-arduino-basics
 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model's
 
Arduino Microcontroller
Arduino Microcontroller Arduino Microcontroller
Arduino Microcontroller
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
Arduino course
Arduino courseArduino course
Arduino course
 
arduino-1
 arduino-1 arduino-1
arduino-1
 

Viewers also liked

Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 
Who what and by whom
Who what and by whomWho what and by whom
Who what and by whomOpen.Embedded
 
Micro controller what_and_how_to_learn
Micro controller what_and_how_to_learnMicro controller what_and_how_to_learn
Micro controller what_and_how_to_learnOpen.Embedded
 
Learn arduino hardware
Learn arduino hardwareLearn arduino hardware
Learn arduino hardwareOpen.Embedded
 
Arduino + On Screen Display
Arduino + On Screen Display Arduino + On Screen Display
Arduino + On Screen Display Open.Embedded
 
Presentation on Embedded system using micro controller by PARAS JHA
Presentation on Embedded system using micro controller  by PARAS JHAPresentation on Embedded system using micro controller  by PARAS JHA
Presentation on Embedded system using micro controller by PARAS JHAParas Jha
 
Embeded System
Embeded SystemEmbeded System
Embeded SystemDhaval09
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro ControllerMidhu S V Unnithan
 
Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3Sai Kumar
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 

Viewers also liked (17)

Joy-n-Freedom
Joy-n-FreedomJoy-n-Freedom
Joy-n-Freedom
 
Open.embedded intro
Open.embedded introOpen.embedded intro
Open.embedded intro
 
Micro controller
Micro controllerMicro controller
Micro controller
 
About vinay chaddha
About vinay chaddhaAbout vinay chaddha
About vinay chaddha
 
Who what and by whom
Who what and by whomWho what and by whom
Who what and by whom
 
Micro controller what_and_how_to_learn
Micro controller what_and_how_to_learnMicro controller what_and_how_to_learn
Micro controller what_and_how_to_learn
 
Arduino lab 1_0
Arduino lab 1_0Arduino lab 1_0
Arduino lab 1_0
 
Learn arduino hardware
Learn arduino hardwareLearn arduino hardware
Learn arduino hardware
 
Arduino lab 1_1
Arduino lab 1_1Arduino lab 1_1
Arduino lab 1_1
 
Arduino + On Screen Display
Arduino + On Screen Display Arduino + On Screen Display
Arduino + On Screen Display
 
Presentation on Embedded system using micro controller by PARAS JHA
Presentation on Embedded system using micro controller  by PARAS JHAPresentation on Embedded system using micro controller  by PARAS JHA
Presentation on Embedded system using micro controller by PARAS JHA
 
Embeded System
Embeded SystemEmbeded System
Embeded System
 
ARM in 30 minutes
ARM in 30 minutes ARM in 30 minutes
ARM in 30 minutes
 
Micro-controller course lec 01
Micro-controller course lec 01Micro-controller course lec 01
Micro-controller course lec 01
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3Micro processor, micro controller, raspberry pi3
Micro processor, micro controller, raspberry pi3
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 

Similar to Start with arduino

Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptxyosikit826
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptansariparveen06
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5Syed Mustafa
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docxAjay578679
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriGaurav Pandey
 
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
 ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdfRuby Hermano
 
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
 
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.pptxmenchc1207
 
An Introduction To Arduino.pptx
An Introduction To Arduino.pptxAn Introduction To Arduino.pptx
An Introduction To Arduino.pptxRoboDJ
 

Similar to Start with arduino (20)

notes about Arduino
notes about Arduinonotes about Arduino
notes about Arduino
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptx
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Indroduction arduino
Indroduction arduinoIndroduction arduino
Indroduction arduino
 
Arduino guide
Arduino guideArduino guide
Arduino guide
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).ppt
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
 
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
 ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
 
How to use an Arduino
How to use an ArduinoHow to use an Arduino
How to use an Arduino
 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
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
 
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
 
An Introduction To Arduino.pptx
An Introduction To Arduino.pptxAn Introduction To Arduino.pptx
An Introduction To Arduino.pptx
 

Recently uploaded

Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan
 
E J Waggoner against Kellogg's Pantheism 8.pptx
E J Waggoner against Kellogg's Pantheism 8.pptxE J Waggoner against Kellogg's Pantheism 8.pptx
E J Waggoner against Kellogg's Pantheism 8.pptxJackieSparrow3
 
南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证kbdhl05e
 
(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)oannq
 
Inspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxInspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxShubham Rawat
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...JeylaisaManabat1
 

Recently uploaded (6)

Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
 
E J Waggoner against Kellogg's Pantheism 8.pptx
E J Waggoner against Kellogg's Pantheism 8.pptxE J Waggoner against Kellogg's Pantheism 8.pptx
E J Waggoner against Kellogg's Pantheism 8.pptx
 
南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证
 
(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)
 
Inspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxInspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptx
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
 

Start with arduino

  • 1. Start With Arduino The Indian Way - Low Cost and Quick
  • 2. Kinds of Arduino Boards There are Four kind of boards ● With USB port -Arduino UNO, Arduino MEGA ● With Serial Port - Arduino Severino (Lowest Cost) ● Small Size - Arduino Nano, Mini,Lilypad ● With some thing extra - Arduino BT, Arduino Ethernet
  • 3. Which One Do You Need Depends upon your need.
  • 4. Which one do We use and why? We use Arduino Severino. Why? ● It is low cost. Costs less than Rs 600/- for complete board and PCB at just Rs 50/- ● Provide serial interface for use with GSM or GPS boards. ● Has all DIP parts, rework or changes are easy.
  • 5. And why we do not use others ● USB based boards and blank PCBs are expensive. ● Double sided boards can not be easily reworked. ● If boot loader gets corrupted (and it often does), it is difficult to program further. ● Connecting GSM or GPS or Standalone blue tooth boards are difficult (if not impossible)
  • 6. And how to program it We use low cost USB ASP programmer which can be connected to any lap top on USB port. With this programmer you do not even need boot loader and any blank IC can work. USB ASP programmers are also available for less than Rs 600/-
  • 7. So what is the total cost for starting Arduino Severino Clone - Rs 599/- USB ASP Programmer - Rs 599/- Serial port cable - Rs 75/- USB Cable - Rs 75/- 12V / 300 mAmps power supply - 150/- Total cost - Rs 1498/-
  • 8. Install driver for USB ASP Download USB ASP driver from http://www.fischl.de/usbasp/ Connect USB ASP, when Windows ask for driver, point to the location where you have stored unzipped drivers. On Device Manager, you can check LibUSB device. (Linux and MAC does not need driver and skip this step)
  • 9. Find Location of preference.txt file Download Arduino from arduino.cc Install on your PC with Windows, Linux or MAC Unzip and start. Open Arduino and click on preference in menu
  • 10. specify programming method Open preference.txt file.Search for text 'upload' if you find a line like this upload.using=bootloader change it to usbasp if you will be using USBASP for programming upload.using=usbasp or leave it as it is if you will be using bootloader for programming
  • 11. What is upload or programming When we write program in C and click on UPLOAD the arduino converts C program to machine code and generate a hex file. This hex file will be transferred to micro controller. there are two methods - one is via serial port (this needs micro controller already burnt with bootloader program) second is using a separate programmer like USBASP. This does not need a micro controller. Please also note that when you get a arduino board, this comes with pre-loaded bootloader. However after you program with USBASP, bootloader is over written.
  • 13. Connect Hardware with USB Port PC + Arduino Severino + USBASP + 12V Power Supply If using Windows, check that USBLib is visible in Device Manager. (If you do not know what is device manager, search it yourself) make sure that preference.txt file has upload.using=usbasp
  • 14. Connect hardware with RS232 port PC with serial port + Arduino Sevnerino + 12V Power Supply You need to have ATMEGA8 with bootloader and preference file should have upload.using=bootloader
  • 15. Select Board, Verify and Then Upload To select Board Tools | Boards | Arduino NG or Older w/ATMEGA8 To select com port (when using with bootloader) Tools | Serial Port | Select appropriate port number To compile(verify the syntax) Sketch | Verify or Compile To download to the board File | Upload to I/O Board After uploading is over LED will start blinking at 1 Hz rate ie half second on and half second off.
  • 16. Some thing about bootloader Bootloader is a program that allow more programs to be uploaded with using external hardware. At power on if bootloader is burnt into chip then program wait for few seconds for data from serial port, if data is available in some defined format that this is stored in flash as program. if nothing is coming from serial port then last uploaded program starts. More details about bootloader are available here http://www.arduino.cc/en/Main/Bootloader
  • 17. Modify The Program You can change the time in parenthesis after delay and see the difference in blinking. The first time is time for LED ON and second is time for LED OFF This LED will blink as per program
  • 18. Understand pin numbers IC has some physical pin numbers. ATMEGA8 in 28 pin package has 20 I/O lines and few pins for oscillator and power supply etc. Physical pins are usually required for making circuit and when probing using CRO or multimeter. 20 lines are given some names like PC6 where PC stand for Port C and 6 is the bit 6 of port c. During programming in C/Assembly we use PC6 and not the physical pin. Arduino board has these 20 lines taken to a connector. These connector pins are marked 0 to 19. In Arduino software we refer to these pins ie 0 to 19 and not port pins or physical pins.
  • 19. Understanding Pin Numbers Some pins have dual purpose For example Analog pin 0 is also digital pin 14. Pin 0 is also Received data Next few pages have more details and mapping of pin numbers ie physical - logical - arduino
  • 20. Understand Pin Numbers This board has 20 I/O pins marked on pins. all of them are I/O. Some have dual purpose.
  • 21. Understanding Pin Numbers All 20 pins can be access as general purpose I/O pins Some pins have other functions as explained below Pin Number Function 0 RXD 1 TXD 13 On board LED 9,10,11 PWM (Analog Outputs) 14,15,16,17,18,19 Analog Inputs 0 to 5 2,3 Interrupts 0 and 1
  • 22. ATMEGA to Arduino Pin Mapping ATMEGA has 28 physical pins. In data sheets they are referred as Port and a number like PC5 In Arduino they are referred as numbers 0 to 19. Mapping of all three is as below
  • 23. Summary This document explain the first day of experiments with Arduino Board. Total hardware cost of material used in less than Rs 1500/- Not much can be done in this however this is a starting point. Next addons could be relays, IR Sensors, Remote handset, Temperature sensors, Light Sensors. Color LEDs, Buzzers. All this material will cost less than Rs 1000/-
  • 24. About Open.Embedded This is an initiative of group of professionals, students and hobbyists to share their knowledge among others using low cost open source software. We think it criminal when students are taught 8085 and 8051 in college when world is moving forward and technology changes are happening every where in the world. Join us at facebook.com/open.embedded Buy low cost kits at stores.ebay.in/openembedded
  • 25. Modification History Aug 18,2011 - details about bootloader added