Arduino/C2/Arduino-components-and-IDE/English

From Script | Spoken-Tutorial
Revision as of 18:17, 9 September 2016 by Nancyvarkey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"