0% found this document useful (0 votes)
34 views16 pages

Arduino Integrated Development Environment (IDE) : Members

Uploaded by

Poornima GS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views16 pages

Arduino Integrated Development Environment (IDE) : Members

Uploaded by

Poornima GS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Arduino Integrated

Development
Environment (IDE)
Members:

Harshitha.b
Poornima.gs
Harshitha.r
What is Arduino IDE?

Arduino is an open-source electronic


gadget that reads inputs and Arduino just run C/C++ code that is
generates outputs based on those stored in their firmware
inputs

Arduino was created at a design


The Arduino IDE is free software
Institute as a simple tool for
that allows you to create and upload
students with no prior experience
code to an Arduino board
with electronics or programming

Arduino IDE 2.2.1.The new


major release of the Arduino
IDE is faster and even more
powerful
Why Arduino IDE?

• Arduino has been used in millions of projects and applications due to its simple and accessible user interface
• In comparison to other microcontroller systems, Arduino boards are comparatively affordable
• The Arduino Software is simple for beginners, but it’s also flexible enough for advanced users
• It runs on Mac, Windows and Linux. Teachers and students use it to build low cost scientific instruments, to prove chemistry and
physics principles, or to get started with programming and robotics.
• Inexpensive
• Cross-platform
• Simple, clear programming environment
• Open source and extensible software
Types of Arduino
Working with Arduino Integrated Development Environment (IDE)

 Programs written using Arduino Software (IDE) are


called sketches.
 Tool bar:-

Verify Checks your code for errors compiling it


Upload Compiles your code and uploads it to the
configured board.
New Creates a new sketch.
Open Presents a menu of all the sketches in your
sketchbook. Clicking one will open it within the current
window overwriting its content.
Save Saves your sketch.
Serial Monitor Opens the serial monitor.

 Menu bar:-
Additional commands are found within the five menus:
File, Edit, Sketch, Tools, Help.
File
•New Creates a new instance of the editor.
•Open Allows to load a sketch file browsing through the
computer drives and folders.
•Open Recent Provides a short list of the most recent sketches,
ready to be opened.
•Sketchbook Shows the current sketches within the sketchbook
folder structure; clicking on any name opens the corresponding
sketch.
•Examples Any example provided by the Arduino Software (IDE)
shows up in this menu item.
•Close Closes the instance of the Arduino Software from which
it is clicked.
•Save Saves the sketch with the current name. If the file hasn't
been named before, a name will be provided in a "Save as.."
window.
Edit
•Undo/Redo Goes back and forward of one or more steps you did while editing
•Copy for Forum Copies the code of your sketch to the clipboard in a form
suitable for posting to the forum, complete with syntax coloring.
•Copy as HTML Copies the code of your sketch to the clipboard as HTML,
suitable for embedding in web pages.
•Comment/Uncomment Puts or removes the // comment marker at the
beginning of each selected line.
•Increase/Decrease Indent Adds or subtracts a space at the beginning of each
selected line.
•Find Opens the Find and Replace window where you can specify text to search
inside the current sketch according to several options.
•Find Next Highlights the next occurrence - if any - of the string specified as the
search item in the Find window, relative to the cursor position.
•Find Previous Highlights the previous occurrence - if any - of the string
specified as the search item in the Find window relative to the cursor position.
Sketch
•Verify/Compile Checks your sketch for errors compiling it.
•Upload Compiles and loads the binary file onto the configured board
through the configured Port.
•Upload Using Programmer This will overwrite the bootloader on the
board.
•Export Compiled Binary Saves a .hex file that may be kept as archive
or sent to the board using other tools.
•Show Sketch Folder Opens the current sketch folder.
•Include Library Adds a library to your sketch by inserting #include
statements at the start of your code. Additionally, from this menu
item you can access the Library Manager and import new libraries
from .zip files.
•Add File... Adds a supplemental file to the sketch (it will be copied
from its current location). The file is saved to the data subfolder of
the sketch.
 Arduino code:
To run a program in Arduino, sketch should contain two methods:
1 void setup ( ) : Initialization of variables, pin mode, libraries are done and it run once.
2 void loop ( ) : Contains main program and run repeatedly.

Basic software functions:


1. pinMode( )
2. digitalWrite ( )
3. digitalRead( )
4. delay( )
1. pinMode():
pinMode() is used to configure the specified pin to behave either as an input or output.
Syntax : pinMode(pin, mode)
- pin: the index number of the pin whose mode you wish to set
- mode: INPUT, OUTPUT.
Example:
pinMode(1, OUTPUT)//setup pin1 digital in
pinMode(A3, INPUT)//setup A3 for digital in
if no pinMode applied to A0->A5, they are analog in by default.

2. digitalWrite():
digitalWrite() is used to write a HIGH or a LOW value to a digital pin
Syntax : digitalWrite(pin, value)
- pin: the number of the pin whose value you wish to set
- value: HIGH(5V) or LOW(Ground)
Example: digitalWrite(1, HIGH)//set pin1 to HIGH.

3.digitalRead():
digitalRead() is used to read the value from a specified digital pin, either HIGH or LOW
Syntax: digitalRead(pin)
- pin: the number of the pin whose mode you want to read.

4.delay():
delay() is used to pause the program for the amount of time
Syntax: delay(ms)
- ms: the number of milliseconds to pause.
TOOLS :
Tools in the Arduino Integrated Development Environment (IDE) play
a crucial role in configuring and controlling various aspects of your
Arduino project. Here are some of the key tools and their uses in the
Arduino IDE:
Auto Format: This tool helps us to format our code for better
readability by automatically adjusting the indentation and spacing.
Board: This tool allows us to select the type of Arduino board we are
using. It's essential to choose the right board to ensure that the IDE
compiles and uploads code correctly for your specific hardware.
Port: The Port tool lets us select the communication port to which
our Arduino board is connected. This is essential for uploading code
to the board and for serial communication with it.
Library Manager: We can use the Library Manager to easily search
for and install libraries that extend the functionality of our Arduino
projects. Libraries provide pre-written code for various components
and sensors.
Serial Plotter: The Serial Plotter is a tool for visualizing data sent
over the serial port in real-time. It's useful for creating graphs and
charts based on sensor readings or other data.
These tools make the Arduino IDE a versatile platform for
developing, uploading, and debugging code for Arduino boards and
a wide range of compatible hardware. By using these tools
effectively, you can streamline your development process and create
more efficient and functional projects.
LIBRARIES:
• Libraries provide extra functionality for use in sketches, e.g. working with hardware or
manipulating data.

• To use a library in a sketch, select it from the Sketch > Import Library menu. This will
insert one or more #include statements at the top of the sketch and compile the library
with your sketch.

• Some libraries are included with the Arduino software. Others can be downloaded from
a variety of sources or through the Library Manager.
HELP :
• Here we can find easy access to a number of
documents that come with the Arduino
Software (IDE). We have access to Getting
Started, Reference, that guide to the IDE and
other documents locally, without an internet
connection.

• Find in Reference, this is the only interactive


function of the Help menu: it directly selects the
relevant page in the local copy of the Reference
for the function or command under the cursor.
UPLOADING :
• Before uploading our sketch, we need to select the correct
items from the Tools > Board and Tools > Port menus.
• On Windows, it's probably COM1 or COM2 (for a serial
board) or COM4, COM5, COM7, or higher (for a USB board)
- to find out, we look for USB serial device in the ports
section of the Windows Device Manager.
• Once we have selected the correct serial port and board,
press the upload button in the toolbar or select the
Upload item from the Sketch menu.
• Current Arduino boards will reset automatically and begin
the upload. With older boards (pre-Diecimila) that lack
auto-reset, we need to press the reset button on the board
just before starting the upload. On most boards, we will
see the RX and TX LEDs blink as the sketch is uploaded.
• The Arduino Software (IDE) will display a message when
the upload is complete, or show an error.
SERIAL MONITOR :
• This displays serial sent from the Arduino
board over USB or serial connector.
• It can be used as a debugging tool, testing
out concepts or to communicate directly with
the Arduino board.
• Choose the baud rate from the drop-down
menu that matches the rate passed
to Serial.begin in the sketch.
• On Windows, Mac or Linux, the board will
reset (it will rerun your sketch) when you
connect with the serial monitor.
THANK YOU

You might also like