0% found this document useful (0 votes)
3 views9 pages

Arduino Ide

The document provides an overview of the Arduino IDE, an open-source software used for writing and uploading code to Arduino boards, compatible with various operating systems. It details the installation process for Windows, describes the IDE's features and functionalities, and outlines different types of Arduino IDEs available for users. Additionally, it highlights the user interface components, such as the toolbar and menu bar, and their respective functions.

Uploaded by

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

Arduino Ide

The document provides an overview of the Arduino IDE, an open-source software used for writing and uploading code to Arduino boards, compatible with various operating systems. It details the installation process for Windows, describes the IDE's features and functionalities, and outlines different types of Arduino IDEs available for users. Additionally, it highlights the user interface components, such as the toolbar and menu bar, and their respective functions.

Uploaded by

Udai Pratap
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EXPERIMENT : 9

AIM : To study about the Arduino IDE

INTRODUCTION :
The Arduino IDE is an open-source so ware, which is used to write and upload code to the Arduino boards. The
IDE applica on is suitable for different opera ng systems such as Windows, Mac OS X, and Linux. It supports
the programming languages C and C++. Here, IDE stands for Integrated Development Environment.
The program or code wri en in the Arduino IDE is o en called as sketching. We need to connect the Genuino
and Arduino board with the IDE to upload the sketch wri en in the Arduino IDE so ware. The sketch is saved
with the extension '.ino.'

DOWNLOADING AND INSTALLING THE ARDUINO IDE ON WINDOWS :

The Arduino IDE so ware is free to download, and installing it is really easy. Just follow the instruc ons below
and you’ll be wri ng code and ge ng your Arduino up and running in no me.

The first step to star ng your electronics adventure with the Arduino board is to have the necessary so ware
installed.

Step 1: Go to the [Link] Website


Visit h p://[Link]/en/main/so ware to download the latest Arduino IDE version for your computer’s
opera ng system. There are versions for Windows, Mac, and Linux systems. Hover over the 'So ware' tab and
click on 'Downloads'. At the download page, click on the “Windows Installer” op on for the easiest installa on.
Step 2: Click on the Download Link
Scroll down un l you see the link that says 'Windows installer' and click on it.

Step 3: Begin the Download


A er clicking on the download link you'll be redirected to the dona on page, here you can donate or skip it if
you like by clicking on the 'Just download' link.
Step 4: Begin the Installa on Process
 Open the downloaded file.
 A new window will open asking you to agree to the license agreement.
 Click on 'I agree' to con nue.

Step 5: Select What to Install


 Now you'll see all the available op ons to install the so ware with.
 If you don't know what you need, it is best to keep everything checked as you can change it later when
the installa on has finished.
 Click on 'Next' to con nue.

Step 6: Choose the Installa on Path


 Now you have to choose the path the so ware will be installed in.
 it is fine to leave it at the configured loca on but if you want the Arduino IDE somewhere else installed
you can change that here.
 Click on 'Install' to begin the installa on
Step 7: Finish the Installa on
 Wait un l the installa on is finished, it shouldn't take very long.
 When the installa on is finished you may click on 'close' to end the setup wizard.

Step 8: Launch the Arduino IDE


 The Arduino IDE has now been successfully installed.
 To launch the IDE you can click on the Desktop icon that was created for you, or by searching for it in the
start menu.
DESCRIPTION OF THE ARDUINO IDE :

The Arduino IDE (Integrated Development Environment) is used to write the computer code and upload this
code to the physical board. The Arduino IDE is very simple and this simplicity is probably one of the main reason
Arduino became so popular. We can certainly state that being compa ble with the Arduino IDE is now one of
the main requirements for a new microcontroller board. Over the years, many useful features have been added
to the Arduino IDE and you can now managed third-party libraries and boards from the IDE, and s ll keep the
simplicity of programming the board.

Toolbar Bu on : The icons displayed on the toolbar are New, Open,


Save, Upload, and Verify.
It is shown in the figure:
Upload : The Upload bu on compiles and runs our code wri en on the
screen. It further uploads the code to the connected board. Before uploading the sketch, we need to make sure
that the correct board and ports are selected.
We also need a USB connec on to connect the board and the computer. Once all the above measures are done,
click on the Upload bu on present on the toolbar.
The latest Arduino boards can be reset automa cally before beginning with Upload. In the older boards, we
need to press the Reset bu on present on it. As soon as the uploading is done successfully, we can no ce the
blink of the Tx and Rx LED.
If the uploading is failed, it will display the message in the error window.
We do not require any addi onal hardware to upload our sketch using the Arduino Bootloader. A Bootloader is
defined as a small program, which is loaded in the microcontroller present on the board. The LED will blink on
PIN 13.
Open : The Open bu on is used to open the already created file. The selected file will be opened in the current
window.
Save : The save bu on is used to save the current sketch or code.
New : It is used to create a new sketch or opens a new window.
Verify : The Verify bu on is used to check the compila on error of the sketch or the wri en code.
Serial Monitor : The serial monitor bu on is present on the right corner of the toolbar. It opens the serial
monitor.
It is shown below: When we connect the serial monitor, the board will reset on the opera ng
system Windows, Linux, and Mac OS X. If we want to process the control
characters in our sketch, we need to use an external terminal program. The
terminal program should be connected to the COM port, which will be
assigned when we connect the board to the computer.
Menu Bar
o File
When we click on the File bu on on the Menu bar, a drop-down list will appear. It is shown below:

New : The New bu on opens the new window. It does not remove the sketch which is
already present.
Open : It allows opening the sketch, which can be browsed from the folders and computer
drivers.
Open Recent : The Open Recent bu on contains the list of the recent sketches.
Sketchbook : It stores the current sketches created in the Arduino IDE so ware. It opens
the selected sketch or code in a new editor at an instance.
Examples : It shows the different examples of small projects for a be er understanding of
the IDE and the board. The IDE provides examples of self-prac ce.
Close : The Close bu on closes the window from which the bu on is clicked.
Save : The save bu on is used to save the current sketch. It also saves the changes made
to the current sketch. If we have not specified the name of the file, it will open the 'Save
As...' window.
Save As... : We can save the sketch with a different name using the 'Save As...' bu on. We
can also change the name accordingly.

o Edit
When we click on the Edit bu on on the Menu bar, a drop-down list appears. It is shown below:

Undo : The Undo bu on is used to reverse the last modifica on done to the sketch while
edi ng.
Redo : The Redo bu on is used to repeat the last modifica on done to the sketch while
edi ng.
Cut : It allows us to remove the selected text from the wri en code. The text is further
placed to the clipboard. We can also paste that text anywhere in our sketch.
Copy : It creates a duplicate copy of the selected text. The text is further placed on the
clipboard.
Copy for Forum : The 'Copy for Forum' bu on is used to copy the selected text to the
clipboard, which is also suitable for pos ng to the forum.
Copy as HTML : The 'Copy for Forum' bu on is used to copy the selected text as HTML to
the clipboard. It is desirable for embedding in web pages.
Paste : The Paste bu on is used to paste the selected text of the clipboard to the specified
posi on of the cursor.
Select All : It selects all the text of the sketch.
Go to line... : It moves the cursor to the specified line number.
o Sketch
When we click on the Sketch bu on on the Menu bar, a drop-down list appears. It is shown below:

Verify/Compile : It will check for the errors in the code while compiling.
The memory in the console area is also reported by the IDE.
Upload : The Upload bu on is used to configure the code to the
specified board through the port.
Upload Using Programmer : It is used to override the Bootloader that is
present on the board. We can u lize the full capacity of the Flash
memory using the 'Upload Using Programmer' op on. To implement
this, we need to restore the Bootloader using the Tools-> Burn
Bootloader op on to upload it to the USB serial port.

o Tools
When we click on the Tools bu on on the Menu bar, a drop-down list appears. It is shown below:

Auto Format : The Auto Format bu on is used to format the wri en


code. For example, lining the open and closed curly brackets in the
code.
Archive Sketch : The copy of the current sketch or code is archived in
the .zip format. The directory of the archived is same as the sketch.
Fix Encoding and Reload : This bu on is used to fix the inconsistency
between the opera ng system char maps and editor char map
encoding.
Manage Libraries... : It shows the updated list of all the installed
libraries. We can also use this op on to install a new library into the
Arduino IDE.
Serial Monitor : It allows the exchange of data with the connected
board on the port.
Serial Plo er : The Serial Plo er bu on is used to display the serial data
in a plot. It comes preinstalled in the Arduino IDE.
WiFi101/WiFiNINA Firmware Updater : It is used to check and update
the Wi-Fi Firmware of the connected board.

o Help
When we click on the Help bu on on the Menu bar, a drop-down list will appear. It is shown below:

The Help sec on includes several documents that are easy to access, which
comes along with the Arduino IDE. It consists of the number of op ons
such as Ge ng Started, Environment, Troubleshoo ng, Reference, etc. We
can also consider the image shown above, which includes all the op ons
under the Help sec on.
FEATURES OF ARDUINO IDE :

The Arduino Integrated Development Environment (IDE) has many features, including:
 Text editor: Write code in the text editor

 Autocomplete: Speeds up development by automa cally comple ng code

 Remote Sketchbook: Pull, edit, and push sketches to the Arduino Cloud

 Debugging: Set up debuggers and debug programs

 Firmware and cer ficates: Update firmware and upload SSL Root Cer ficates

 Serial Monitor: Debug and visualize data with the built-in serial monitor

 Plo er: Visualize data with the built-in plo er

 Dark Mode: Switch to Dark Mode to reduce eye strain

 Sidebar: The sidebar in Arduino IDE 2 makes the most commonly used tools more accessible

TYPES OF ARDUINO IDE :


There are a few main types of Arduino IDEs, each offering unique features to suit different programming
preferences and project needs. Here’s an overview of the main types:
1. Arduino IDE (Classic)
 Descrip on: The original Arduino IDE, known for its simplicity and ease of use, provides a basic text editor
and straigh orward compiler.
 Features:
o Simple interface with essen al tools.
o Serial monitor for debugging.
o Compa ble with most Arduino boards.
 Best For: Beginners and users who prefer a minimal interface.
2. Arduino IDE 2.x (Modern)
 Descrip on: A newer version of the Arduino IDE with a modernized interface and addi onal features.
 Features:
o Dark mode, autocomple on, and enhanced editor.
o Real- me debugging (with supported boards).
o Integrated Library and Board Managers.
o Faster compila on and more reliable uploads.
 Best For: Both beginners and experienced users who want a more robust development environment.
3. Arduino Web Editor (Arduino Cloud)
 Descrip on: A cloud-based Arduino IDE that allows you to write and save code online.
 Features:
o Works directly in a browser, no installa on required.
o Online library and board management.
o Real- me collabora on and project sharing.
o Code accessible from any device with internet access.
 Best For: Users who want to code on different devices and access projects remotely.
4. Pla ormIO IDE
 Descrip on: An advanced, open-source IDE for embedded development, available as an extension for
Visual Studio Code, Atom, and other editors.
 Features:
o Mul -board support and cross-pla orm development.
o Powerful debugging tools.
o Advanced library management.
o Compa ble with mul ple embedded pla orms, not limited to Arduino.
 Best For: Professional developers and users who want advanced tools beyond standard Arduino
capabili es.
5. Eclipse with Arduino Plugin
 Descrip on: An IDE that adds Arduino support to Eclipse, providing a feature-rich environment tailored
to professional developers.
 Features:
o Supports C++ and Arduino programming.
o Advanced debugging and project management.
o Compa ble with many embedded systems.
 Best For: Advanced users familiar with Eclipse who need to work on complex projects.

You might also like