Difference between revisions of "Arduino/C2/Arduino-components-and-IDE/English"
(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;">'''...") |
Nancyvarkey (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | '''Title of script : Arduino components and IDE''' | |
− | + | '''Author : Manivel and Nirmala Venkat''' | |
+ | |||
+ | '''Keywords : Arduino Hardware, Arduino IDE, Microcontroller, Video tutorials''' | ||
− | |||
{| style="border-spacing:0;width:17.607cm;" | {| style="border-spacing:0;width:17.607cm;" | ||
− | |- | + | |- |
| 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 1: |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 2: |
− | + | Learning objectives | |
− | * | + | * Set up a physical connection between the ''' Arduino''' and a computer |
− | * | + | * Arduino Hardware |
− | * | + | * Arduino Programming Language |
− | |||
| 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: | ||
− | * | + | * How to set up a physical connection between '''Arduino''' and a computer |
− | * | + | * '''Arduino''' Hardware and |
− | * | + | * '''Arduino''' programming language |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 3: |
+ | |||
+ | System Requirement | ||
− | |||
− | |||
| style="border:1pt solid #000000;padding:0.106cm;" | Here, I am using: | | style="border:1pt solid #000000;padding:0.106cm;" | Here, I am using: | ||
− | * | + | * '''Arduino UNO Board''' |
− | * | + | * '''Ubuntu Linux''' 14.04 operating system and |
− | * | + | * '''Arduino IDE''' |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 4: |
− | + | Pre-requisites | |
− | * | + | * Basic knowledge of Electronics |
− | * | + | * '''Arduino UNO Board''' , |
− | * | + | * '''USB''' power cable |
− | * | + | * Computer |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|To follow this tutorial, you should have: |
− | * | + | * Basic knowledge of Electronics |
− | * | + | * '''Arduino UNO Board''' |
− | * | + | * '''USB''' power cable and |
− | * | + | * A computer |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 5: |
− | + | Show the image | |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | 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. |
− | + | 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;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to the microcontroller |
− | |||
− | |||
− | + | | 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;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |What is an ''' Arduino BootLoader''' ? |
− | + | It is the first program which executes when the device is connected to a power supply . | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |Point to the image -Digital pins |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"| |
− | |||
− | |||
− | + | | 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;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |Here - |
− | + | '''0-RX''' stands for receiving, | |
− | + | '''1-TX''' stands for transmitting. | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to the Analog pins |
− | |||
− | + | | 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. | |
− | + | They take '''analog signals ''' and converts them into '''digital signals ''' that the computer can understand . | |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to Tx and Rx LEDS |
− | + | | style="border:1pt solid #000000;padding:0.106cm;" |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''' . | |
+ | |- | ||
+ | | style="border:1pt solid #000000;padding:0.106cm;"|Point to Reset button | ||
− | + | | 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;" | | + | |
− | + | It will not erase anything off the '''board''' . | |
+ | |- | ||
+ | | style="border:1pt solid #000000;padding:0.106cm;"|Point to Power pins | ||
− | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to Ground pins |
− | + | | 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;" | | + | |
− | + | ||
− | + | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to USB interface |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | | 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;" | | + | |
− | + | And also can be used for serial communication between the '''board ''' and the computer. | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Point to power adapter |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |Next, we will see about ''' Arduino''' programming language. |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 5: |
− | + | Image: | |
− | + | Arduino Programming Language | |
− | + | | 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 '''.''' | ||
− | + | 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. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
| 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;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |Let us open the ''' Arduino IDE''' . |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|In Arduino IDE, |
− | + | Click Help >> reference | |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | 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;" | | + | | 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;" | | + | | 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;" | | + | | 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;" | | + | | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |This brings us to the end of this tutorial. |
− | + | Let us summarise. | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 7: |
− | + | Summary | |
− | |||
− | + | | style="border:1pt solid #000000;padding:0.106cm;" |In this tutorial, we l earnt about: | |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | |
− | * | + | * How to set up a physical connection between the ''' Arduino''' and computer |
− | * | + | *' ''Arduino''' h ardware |
− | * | + | * '''Arduino''' programming language |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 8: |
− | + | Assignment | |
− | |||
− | |||
− | |||
− | + | ||
− | * | + | | style="border:1pt solid #000000;padding:0.106cm;"|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.''' | ||
|- | |- | ||
| 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|The video at the following link summarises the Spoken Tutorial project. |
− | + | Please download and watch it. | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 10: |
− | + | Spoken Tutorial workshops | |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;" |The ''' Spoken Tutorial Project''' t eam: |
− | * | + | * conducts workshops and |
− | * | + | * gives certificates. |
− | + | For more details, please write to us. | |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 11: |
+ | |||
+ | Forum for specific questions | ||
− | |||
− | |||
| style="border:1pt solid #000000;padding:0.106cm;" | | | style="border:1pt solid #000000;padding:0.106cm;" | | ||
− | * | + | * 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 |
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Slide 12: |
− | + | Acknowledgement<div style="color:#000000;margin-left:0cm;margin-right:0cm;"> | |
− | | style="border:1pt solid #000000;padding:0.106cm;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|Spoken Tutorial project is funded by NMEICT, MHRD, Government of India. |
− | + | More information on this mission is available at | |
− | + | 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;" | | + | | style="border:1pt solid #000000;padding:0.106cm;"|This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay. |
− | + | Thanks for watching. | |
|- | |- | ||
|} | |} | ||
− |
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
|
In this tutorial, we will learn about:
|
Slide 3:
System Requirement
|
Here, I am using:
|
Slide 4:
Pre-requisites
|
To follow this tutorial, you should have:
|
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.
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:
|
Slide 8:
Assignment
|
As an assignment,
|
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:
For more details, please write to us. |
Slide 11:
Forum for specific questions
|
|
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. |