Difference between revisions of "Arduino/C2/Arduino-components-and-IDE/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with " <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Title of script'''</span><span style="color:#000000;">:</span><span style="color:#000000;">'''...")
 
 
Line 1: Line 1:
  
<div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Title of script'''</span><span style="color:#000000;">:</span><span style="color:#000000;">''' Arduino components and IDE'''</span></div>
+
'''Title of script : Arduino components and IDE'''
  
<div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Author:'''</span><span style="color:#000000;"> Manivel and Nirmala Venkat</span></div>
+
'''Author : Manivel and Nirmala Venkat'''
 +
 
 +
'''Keywords : Arduino Hardware, Arduino IDE, Microcontroller, Video tutorials'''
  
<div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Keywords:'''</span><span style="color:#000000;"> Arduino Hardware, Arduino IDE, Microcontroller, Video tutorials</span></div>
 
  
 
{| style="border-spacing:0;width:17.607cm;"
 
{| style="border-spacing:0;width:17.607cm;"
|- style="background-color:#c0c0c0;border:1pt solid #000000;padding:0.106cm;"
+
|-
 
| style="color:#000000;" | '''Visual Cue'''
 
| style="color:#000000;" | '''Visual Cue'''
 
| style="color:#000000;" | '''Narration'''
 
| style="color:#000000;" | '''Narration'''
 +
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 1:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 1:
  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Welcome to the</span><span style="color:#000000;">''' Spoken Tutorial'''</span><span style="color:#000000;"> on</span><span style="color:#000000;">''' Arduino components and IDE.'''</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Welcome to the ''' Spoken Tutorial''' on ''' Arduino components and IDE.'''  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 2:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 2:
  
<div style="color:#000000;">Learning objectives</div>
+
Learning objectives
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">Set up a physical connection between the</span><span style="color:#000000;">''' Arduino'''</span><span style="color:#000000;"> and a computer</span></div>
+
* Set up a physical connection between the ''' Arduino''' and a computer  
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Arduino Hardware</div>
+
* Arduino Hardware
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Arduino Programming Language</div>
+
* Arduino Programming Language
  
<div style="color:#000000;"></div>
 
 
| style="border:1pt solid #000000;padding:0.106cm;" | In this tutorial, we will learn about:
 
| style="border:1pt solid #000000;padding:0.106cm;" | In this tutorial, we will learn about:
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">How to set up a physical connection between </span><span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> and a computer</span></div>
+
* How to set up a physical connection between '''Arduino''' and a computer  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> Hardware and</span></div>
+
* '''Arduino''' Hardware and  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> programming l</span><span style="color:#000000;">anguage </span></div>
+
* '''Arduino''' programming language 
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 3:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 3:
 +
 
 +
System Requirement
  
<div style="color:#000000;">System Requirement</div>
 
  
<div style="color:#000000;"></div>
 
 
| style="border:1pt solid #000000;padding:0.106cm;" | Here, I am using:
 
| style="border:1pt solid #000000;padding:0.106cm;" | Here, I am using:
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">'''Arduino UNO Board'''</div>
+
* '''Arduino UNO Board'''
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Ubuntu Linux'''</span><span style="color:#000000;"> 14.04 operating system and</span></div>
+
* '''Ubuntu Linux''' 14.04 operating system and  
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">'''Arduino IDE'''</div>
+
* '''Arduino IDE'''
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 4:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 4:
  
<div style="color:#000000;">Pre-requisites</div>
+
Pre-requisites
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Basic knowledge of &nbsp;Electronics</div>
+
* Basic knowledge of &nbsp;Electronics
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Arduino UNO Board'''</span><span style="color:#000000;">,</span></div>
+
* '''Arduino UNO Board''' ,  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''USB'''</span><span style="color:#000000;"> power cable </span></div>
+
* '''USB''' power cable
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">C</span><span style="color:#000000;">omputer</span></div>
+
* Computer
  
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">To follow this tutorial, you should have:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|To follow this tutorial, you should have:
  
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Basic knowledge of Electronics</div>
+
* Basic knowledge of Electronics
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">'''Arduino UNO Board'''</div>
+
* '''Arduino UNO Board'''
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''USB'''</span><span style="color:#000000;"> power cable and</span></div>
+
* '''USB''' power cable and  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">A c</span><span style="color:#000000;">omputer</span></div>
+
* A computer
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 5:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 5:
  
<div style="color:#000000;">Show the image</div>
+
Show the image
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">First, we have to connect the</span><span style="color:#000000;">''' Arduino board'''</span><span style="color:#000000;"> to the computer using the</span><span style="color:#000000;">''' USB'''</span><span style="color:#000000;"> cable, as shown here.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |First, we have to connect the ''' Arduino board''' to the computer using the ''' USB''' cable, as shown here.  
  
<span style="color:#000000;">The green </span><span style="color:#000000;">'''power LED'''</span><span style="color:#000000;"> turns</span><span style="color:#000000;">''' ON'''</span><span style="color:#000000;">. This indicates that the</span><span style="color:#000000;"> connection is working.</span>
+
The green '''power LED''' turns ''' ON''' . This indicates that the connection is working.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Now, let us see the various components that are available in the</span><span style="color:#000000;">''' Arduino'''</span><span style="color:#000000;"> hardware.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Now, let us see the various components that are available in the ''' Arduino''' hardware.  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to the microcontroller</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to the microcontroller
  
<div style="color:#000000;"></div>
 
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">The most important component is</span><span style="color:#000000;">''' ATMEGA 328 microcontroller chip.'''</span>
 
  
<span style="color:#000000;">This is the heart of </span><span style="color:#000000;">'''Arduino,'''</span><span style="color:#000000;"> where you can program it to do different things.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |The most important component is ''' ATMEGA 328 microcontroller chip.'''
 +
 
 +
This is the heart of '''Arduino,''' where you can program it to do different things.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the microcontroller
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the microcontroller
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">This</span><span style="color:#000000;">''' microcontroller'''</span><span style="color:#000000;"> contains internal</span><span style="color:#000000;">''' ROM, RAM'''</span><span style="color:#000000;"> and also an</span><span style="color:#000000;">''' Arduino BootLoader.'''</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |This ''' microcontroller''' contains internal ''' ROM, RAM''' and also an ''' Arduino BootLoader.'''  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the microcontroller
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the microcontroller
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">What is an</span><span style="color:#000000;">''' Arduino BootLoader'''</span><span style="color:#000000;">?</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |What is an ''' Arduino BootLoader''' ?  
  
<span style="color:#000000;">It is the first program which executes when the device is connected to a power supply</span><span style="color:#000000;">.</span>
+
It is the first program which executes when the device is connected to a power supply .  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Point to the image</span><span style="color:#000000;"> -Digital pins</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Point to the image -Digital pins  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">These are</span><span style="color:#000000;">''' digital pins'''</span><span style="color:#000000;">. Each of these can be programmed as either an </span><span style="color:#000000;">'''input'''</span><span style="color:#000000;"> or </span><span style="color:#000000;">'''output'''</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |These are ''' digital pins''' . Each of these can be programmed as either an '''input''' or '''output''' .  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|
  
<div style="color:#000000;"></div>
 
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">'''Digital'''</span><span style="color:#000000;"> means they can be </span><span style="color:#000000;">'''ON'''</span><span style="color:#000000;"> or </span><span style="color:#000000;">'''OFF'''</span><span style="color:#000000;">, high or low.</span>
 
  
<span style="color:#000000;">For example, to dim an</span><span style="color:#000000;">''' LED'''</span><span style="color:#000000;">, to generate </span><span style="color:#000000;">'''audio'''</span><span style="color:#000000;"> </span><span style="color:#000000;">'''signals'''</span><span style="color:#000000;"> etc.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |'''Digital'''  means they can be  '''ON'''  or  '''OFF''' , high or low.
 +
 
 +
For example, to dim an ''' LED''' , to generate '''audio'''   '''signals''' etc.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the Pin number 0 and 1
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the Pin number 0 and 1
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">The </span><span style="color:#000000;">'''pin'''</span><span style="color:#000000;"> number 0 and 1 can be used for </span><span style="color:#000000;">'''serial communication'''</span><span style="color:#000000;"> with other devices.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |The '''pin''' number 0 and 1 can be used for '''serial communication''' with other devices.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the Pin number 0 and 1
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the Pin number 0 and 1
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Here</span><span style="color:#000000;">,</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Here -
  
<span style="color:#000000;">'''0-RX'''</span><span style="color:#000000;"> stands for receiving,</span>
+
'''0-RX''' stands for receiving,  
  
<span style="color:#000000;">'''1-TX'''</span><span style="color:#000000;"> stands for transmitting.</span>
+
'''1-TX''' stands for transmitting.  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to the Analog pins</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to the Analog pins
  
<div style="color:#000000;"></div>
 
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |These are  '''Analog pins ''' which are marked from  '''A0'''  to  '''A5''' . These are only used for inputs.
  
<div style="color:#000000;"></div>
+
They take '''analog signals ''' and converts them into '''digital signals ''' that the computer can understand .  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">These are </span><span style="color:#000000;">'''Analog pins '''</span><span style="color:#000000;">which are marked from </span><span style="color:#000000;">'''A0'''</span><span style="color:#000000;"> to </span><span style="color:#000000;">'''A5'''</span><span style="color:#000000;">. These are only used for inputs.</span>
+
 
+
<span style="color:#000000;">They take </span><span style="color:#000000;">'''analog signals '''</span><span style="color:#000000;">and converts them into </span><span style="color:#000000;">'''digital signals '''</span><span style="color:#000000;">that</span><span style="color:#0000ff;"> </span><span style="color:#000000;">the computer can understand</span><span style="color:#000000;">.</span>
+
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to Tx and Rx LEDS</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to Tx and Rx LEDS
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |These are transmit and receive ''' LED''' s that are embedded on the board.
  
<div style="color:#000000;"></div>
+
These will blink when we are sending or receiving data.
  
<div style="color:#000000;"></div>
+
This is very helpful for  '''troubleshooting''' .
 +
|-
 +
| style="border:1pt solid #000000;padding:0.106cm;"|Point to Reset button
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |When you press this  '''reset''' button, the program stops and restarts.  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">These are transmit and receive</span><span style="color:#000000;">''' LED'''</span><span style="color:#000000;">s that are embedded on the board.</span>
+
  
<div style="color:#000000;">These will blink when are sending or receiving data. </div>
+
It will not erase anything off the  '''board''' .
 +
|-
 +
| style="border:1pt solid #000000;padding:0.106cm;"|Point to Power pins
  
<span style="color:#000000;">This is very helpful for </span><span style="color:#000000;">'''troubleshooting'''</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |This is input voltage to the ''' Arduino board''' when it is using an external power source.  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to Reset button</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to Ground pins
  
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |These are ''' Ground pins''' which give access to the lowest voltage on the '''board.'''  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">When you press this </span><span style="color:#000000;">'''reset'''</span><span style="color:#000000;"> button, the program stops and restarts.</span>
+
 
+
<span style="color:#000000;">It will not erase anything off the </span><span style="color:#000000;">'''board'''</span><span style="color:#000000;">.</span>
+
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to Power pins</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to USB interface
  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">This is input voltage to the</span><span style="color:#000000;">''' Arduino board'''</span><span style="color:#000000;"> when it is using an external power source.</span>
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to Ground pins</div>
 
  
  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">These are</span><span style="color:#000000;">''' Ground pins'''</span><span style="color:#000000;"> which give access to the lowest voltage on the </span><span style="color:#000000;">'''board.'''</span>
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to USB interface</div>
 
 
<div style="color:#000000;"></div>
 
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |'''USB interface''' can be used for programming the ''' board.'''  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">'''USB interface'''</span><span style="color:#000000;"> can be used for programming the</span><span style="color:#000000;">''' board.'''</span>
+
  
<span style="color:#000000;">And can also be used for serial communication between the </span><span style="color:#000000;">'''board '''</span><span style="color:#000000;">and the computer.</span>
+
And also can be used for serial communication between the '''board ''' and the computer.  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Point to power adapter</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Point to power adapter
  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">We have this external </span><span style="color:#000000;">'''power adapter'''</span><span style="color:#000000;"> to power up the </span><span style="color:#000000;">'''board'''</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |We have this external '''power adapter''' to power up the '''board'''.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Next, we will see about</span><span style="color:#000000;">''' Arduino'''</span><span style="color:#000000;"> programming language .</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Next, we will see about ''' Arduino''' programming language.  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 5:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 5:
  
<div style="color:#000000;">Image:</div>
+
Image:
  
<div style="color:#000000;">Arduino Programming Language</div>
+
Arduino Programming Language
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |'''Arduino'''  programs can be divided into three main parts.
 +
*'''Control Structure statements'''
 +
*'''Operators, variables'''  and  '''constants'''
 +
* '''Functions'''<br/>
 +
The control statements are:  '''if, if..else, for, while, do..while, switch case ''' etc '''.'''
  
<div style="color:#000000;"></div>
+
These are the same as in any programming language.
  
<div style="color:#000000;"></div>
+
Then, we have  '''arithmetic operators, comparison operators ''' and ''' boolean operators.'''
  
<div style="color:#000000;"></div>
+
We have  '''variables'''  and  '''constants'''  as in other programming languages.
  
<div style="color:#000000;"></div>
+
These are ''' built-in functions'''  such as  '''pinMode(), digitalWrite(), digitalRead(), delay(), analogRead(), analogWrite() ''' etc.
  
<div style="color:#000000;"></div>
+
These are the important '''functions''' which are mostly used in the ''' Arduino''' projects.  
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
 
+
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> programs can be divided into three main parts.</span>
+
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Control Structure statement'''</span><span style="color:#000000;">s</span></div>
+
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Operators, variables'''</span><span style="color:#000000;"> and </span><span style="color:#000000;">'''constants'''</span></div>
+
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">'''Functions'''</div><br/>
+
<span style="color:#000000;">The control statements are: </span><span style="color:#000000;">'''if, if..else, for, while, do..while, switch case '''</span><span style="color:#000000;">etc</span><span style="color:#000000;">'''.'''</span>
+
 
+
<div style="color:#000000;">These are the same as in any programming language.</div>
+
 
+
<span style="color:#000000;">Then, we have </span><span style="color:#000000;">'''arithmetic operators, comparison operators '''</span><span style="color:#000000;">and</span><span style="color:#000000;">''' boolean operators.'''</span>
+
 
+
<span style="color:#000000;">We have </span><span style="color:#000000;">'''variables'''</span><span style="color:#000000;"> and </span><span style="color:#000000;">'''constants'''</span><span style="color:#000000;"> as in other programming languages.</span>
+
 
+
<span style="color:#000000;">These are</span><span style="color:#000000;">''' built-in functions'''</span><span style="color:#000000;"> such as </span><span style="color:#000000;">'''pinMode(), digitalWrite(), digitalRead(), delay(), analogRead(), analogWrite() '''</span><span style="color:#000000;">etc.</span>
+
 
+
<span style="color:#000000;">These are the important functions which are mostly used in the</span><span style="color:#000000;">''' Arduino'''</span><span style="color:#000000;"> projects.</span>
+
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">I'll show you how to refer this programming language of </span><span style="color:#000000;">'''Arduino IDE'''</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |I'll show you how to refer this programming language of '''Arduino IDE''' .  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Let us open the</span><span style="color:#000000;">''' Arduino IDE'''</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Let us open the ''' Arduino IDE''' .  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">In Arduino IDE,</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|In Arduino IDE,
  
<div style="color:#000000;">Click Help >> reference</div>
+
Click Help >> reference
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Click on the</span><span style="color:#000000;">''' Help'''</span><span style="color:#000000;"> menu in</span><span style="color:#000000;">''' '''</span><span style="color:#000000;">the</span><span style="color:#000000;">''' Arduino IDE'''</span><span style="color:#000000;">. Then click on</span><span style="color:#000000;">''' reference.'''</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Click on the ''' Help''' menu in ''' ''' the ''' Arduino IDE''' . Then click on ''' reference.'''  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the browser
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Point to the browser
Line 232: Line 185:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Click on digitalWrite() function
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Click on digitalWrite() function
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">For example, if you want to refer the</span><span style="color:#000000;">''' digitalWrite() '''</span><span style="color:#000000;">builtin function, just click</span><span style="color:#000000;"> on the function name.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |For example, if you want to refer the ''' digitalWrite() ''' '''built-in function''', just click on the '''function''' name.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Scroll down the page to show various options
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Scroll down the page to show various options
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Here you can see the description, syntax and a sample program of</span><span style="color:#000000;">''' digitalWrite()'''</span><span style="color:#000000;"> function.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Here you can see the description, syntax and a sample program of ''' digitalWrite() function.'''  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">There are many </span><span style="color:#000000;">'''built-in functions'''</span><span style="color:#000000;"> and we can refer to this manual depending upon our requirement.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |There are many '''built-in functions''' and we can refer to this manual depending upon our requirement.  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | We will be learning about some of the important built-in functions in the subsequent tutorials.
+
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | We will be learning about some of the important '''built-in functions''' in the subsequent tutorials.
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">Let us close this browser</span><span style="color:#000000;">.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |Let us close this browser .  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">This brings us</span><span style="color:#000000;"> to the end of this tutorial.</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |This brings us to the end of this tutorial.  
  
<div style="color:#000000;">Let us summarise.</div>
+
Let us summarise.
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 7:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 7:
  
<div style="color:#000000;">Summary</div>
+
Summary
  
<div style="color:#000000;"></div>
 
  
<div style="color:#000000;"></div>
+
| style="border:1pt solid #000000;padding:0.106cm;" |In this tutorial, we l earnt about:  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">In this tutorial, we l</span><span style="color:#000000;">earnt about:</span>
+
  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">How to set up a physical connection between the</span><span style="color:#000000;">''' Arduino'''</span><span style="color:#000000;"> and computer</span></div>
+
* How to set up a physical connection between the ''' Arduino''' and computer  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> h</span><span style="color:#000000;">ardware</span></div>
+
*' ''Arduino''' h ardware  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">'''Arduino'''</span><span style="color:#000000;"> programming language</span></div>
+
* '''Arduino''' programming language  
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 8:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 8:
  
<div style="color:#000000;">Assignment</div>
+
Assignment
  
<div style="color:#000000;"></div>
 
  
<div style="color:#000000;"></div>
 
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">As an assignment,</div>
 
  
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">Open the</span><span style="color:#000000;">''' Arduino IDE'''</span></div>
+
 
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">Click on the</span><span style="color:#000000;">''' Help'''</span><span style="color:#000000;"> Menu and select</span><span style="color:#000000;">''' reference'''</span></div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|As an assignment,
* <div style="margin-left:0cm;margin-right:0cm;"><span style="color:#000000;">Go through the </span><span style="color:#000000;">'''built-in functions'''</span><span style="color:#000000;"> such as </span><span style="color:#000000;">'''delay(), pinM</span><span style="color:#000000;">ode(), digitalRead() etc.'''</span></div>
+
 
 +
*Open the ''' Arduino IDE'''  
 +
*Click on the ''' Help''' Menu and select ''' reference'''  
 +
*Go through the '''built-in functions''' such as '''delay(), pinM ode(), digitalRead() etc.'''  
  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Slide 9:
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" | Slide 9:
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">The video at the following link summarises the Spoken Tutorial project.</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|The video at the following link summarises the Spoken Tutorial project.
  
<div style="color:#000000;">Please download and watch it.</div>
+
Please download and watch it.
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 10:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 10:
  
<div style="color:#000000;">Spoken Tutorial workshops</div>
+
Spoken Tutorial workshops
  
| style="border:1pt solid #000000;padding:0.106cm;" | <span style="color:#000000;">The</span><span style="color:#000000;">''' Spoken Tutorial Project'''</span><span style="color:#000000;"> t</span><span style="color:#000000;">eam:</span>
+
| style="border:1pt solid #000000;padding:0.106cm;" |The ''' Spoken Tutorial Project''' t eam:  
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">conducts workshops and</div>
+
* conducts workshops and
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">gives certificates.</div>
+
* gives certificates.
  
<div style="color:#000000;">For more details, please write to us.</div>
+
For more details, please write to us.
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 11:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 11:
 +
 
 +
Forum for specific questions
  
<div style="color:#000000;">Forum for specific questions</div>
 
  
<div style="color:#000000;"></div>
 
 
| style="border:1pt solid #000000;padding:0.106cm;" |
 
| style="border:1pt solid #000000;padding:0.106cm;" |
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Do you have questions in THIS Spoken Tutorial?</div>
+
* Do you have questions in THIS Spoken Tutorial?
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Please visit this site</div>
+
* Please visit this site
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Choose the minute and second where you have the question</div>
+
* Choose the minute and second where you have the question
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Explain your question briefly</div>
+
* Explain your question briefly
* <div style="color:#000000;margin-left:0cm;margin-right:0cm;">Someone from our team will answer them</div>
+
* Someone from our team will answer them
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Slide 12:</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Slide 12:
  
<div style="color:#000000;">Acknowledgement</div><div style="color:#000000;margin-left:0cm;margin-right:0cm;"></div>
+
Acknowledgement<div style="color:#000000;margin-left:0cm;margin-right:0cm;">
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.
  
<div style="color:#000000;">More information on this mission is available at</div>
+
More information on this mission is available at
  
<div style="color:#000000;">this link.</div>
+
this link.
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
 
| style="border:1pt solid #000000;padding:0.106cm;color:#000000;" |  
| style="border:1pt solid #000000;padding:0.106cm;" | <div style="color:#000000;">This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay. &nbsp;</div>
+
| style="border:1pt solid #000000;padding:0.106cm;"|This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay. &nbsp;
  
<div style="color:#000000;">Thanks for watching.</div>
+
Thanks for watching.
 
|-
 
|-
 
|}
 
|}
<div style="color:#000000;margin-left:0cm;margin-right:0cm;"></div>
 

Latest revision as of 18:17, 9 September 2016

Title of script : Arduino components and IDE

Author : Manivel and Nirmala Venkat

Keywords : Arduino Hardware, Arduino IDE, Microcontroller, Video tutorials


Visual Cue Narration
Slide 1: Welcome to the Spoken Tutorial on Arduino components and IDE.
Slide 2:

Learning objectives

  • Set up a physical connection between the Arduino and a computer
  • Arduino Hardware
  • Arduino Programming Language
In this tutorial, we will learn about:
  • How to set up a physical connection between Arduino and a computer
  • Arduino Hardware and
  • Arduino programming language
Slide 3:

System Requirement


Here, I am using:
  • Arduino UNO Board
  • Ubuntu Linux 14.04 operating system and
  • Arduino IDE
Slide 4:

Pre-requisites

  • Basic knowledge of  Electronics
  • Arduino UNO Board ,
  • USB power cable
  • Computer
To follow this tutorial, you should have:
  • Basic knowledge of Electronics
  • Arduino UNO Board
  • USB power cable and
  • A computer
Slide 5:

Show the image

First, we have to connect the Arduino board to the computer using the USB cable, as shown here.

The green power LED turns ON . This indicates that the connection is working.

Now, let us see the various components that are available in the Arduino hardware.
Point to the microcontroller


The most important component is ATMEGA 328 microcontroller chip.

This is the heart of Arduino, where you can program it to do different things.

Point to the microcontroller This microcontroller contains internal ROM, RAM and also an Arduino BootLoader.
Point to the microcontroller What is an Arduino BootLoader ?

It is the first program which executes when the device is connected to a power supply .

Point to the image -Digital pins These are digital pins . Each of these can be programmed as either an input or output .


Digital means they can be ON or OFF , high or low.

For example, to dim an LED , to generate audio signals etc.

Point to the Pin number 0 and 1 The pin number 0 and 1 can be used for serial communication with other devices.
Point to the Pin number 0 and 1 Here -

0-RX stands for receiving,

1-TX stands for transmitting.

Point to the Analog pins


These are Analog pins which are marked from A0 to A5 . These are only used for inputs.

They take analog signals and converts them into digital signals that the computer can understand .

Point to Tx and Rx LEDS These are transmit and receive LED s that are embedded on the board.

These will blink when we are sending or receiving data.

This is very helpful for troubleshooting .

Point to Reset button When you press this reset button, the program stops and restarts.

It will not erase anything off the board .

Point to Power pins This is input voltage to the Arduino board when it is using an external power source.
Point to Ground pins


These are Ground pins which give access to the lowest voltage on the board.
Point to USB interface



USB interface can be used for programming the board.

And also can be used for serial communication between the board and the computer.

Point to power adapter We have this external power adapter to power up the board.
Next, we will see about Arduino programming language.
Slide 5:

Image:

Arduino Programming Language

Arduino programs can be divided into three main parts.
  • Control Structure statements
  • Operators, variables and constants
  • Functions

The control statements are: if, if..else, for, while, do..while, switch case etc .

These are the same as in any programming language.

Then, we have arithmetic operators, comparison operators and boolean operators.

We have variables and constants as in other programming languages.

These are built-in functions such as pinMode(), digitalWrite(), digitalRead(), delay(), analogRead(), analogWrite() etc.

These are the important functions which are mostly used in the Arduino projects.

I'll show you how to refer this programming language of Arduino IDE .
Let us open the Arduino IDE .
In Arduino IDE,

Click Help >> reference

Click on the Help menu in the Arduino IDE . Then click on reference.
Point to the browser This opens an offline page in your browser.
Click on digitalWrite() function For example, if you want to refer the digitalWrite() built-in function, just click on the function name.
Scroll down the page to show various options Here you can see the description, syntax and a sample program of digitalWrite() function.
There are many built-in functions and we can refer to this manual depending upon our requirement.
We will be learning about some of the important built-in functions in the subsequent tutorials.
Let us close this browser .
This brings us to the end of this tutorial.

Let us summarise.

Slide 7:

Summary


In this tutorial, we l earnt about:
  • How to set up a physical connection between the Arduino and computer
  • ' Arduino' h ardware
  • Arduino programming language
Slide 8:

Assignment



As an assignment,
  • Open the Arduino IDE
  • Click on the Help Menu and select reference
  • Go through the built-in functions such as delay(), pinM ode(), digitalRead() etc.
Slide 9: The video at the following link summarises the Spoken Tutorial project.

Please download and watch it.

Slide 10:

Spoken Tutorial workshops

The Spoken Tutorial Project t eam:
  • conducts workshops and
  • gives certificates.

For more details, please write to us.

Slide 11:

Forum for specific questions


  • Do you have questions in THIS Spoken Tutorial?
  • Please visit this site
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from our team will answer them
Slide 12: Acknowledgement
Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.

More information on this mission is available at

this link.

This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.  

Thanks for watching.

Contributors and Content Editors

Nancyvarkey, Nirmala Venkat

Retrieved from "https://script.spoken-tutorial.org/index.php?title=Arduino/C2/Arduino-components-and-IDE/English&oldid=28414"