DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Getting Familiar With Arduino IDE

Getting Familiar With Arduino IDE

In this article, we'll become more familiar with the Arduino IDE and run our first sketch. Read on and learn more.

Pooja  Baraskar user avatar by
Pooja Baraskar
·
Jan. 02, 16 · Tutorial
Like (10)
Save
Tweet
Share
11.41K Views

Join the DZone community and get the full member experience.

Join For Free

4

You must use the Arduino IDE to write code for Arduino and Arduino-compatible boards. In our previous article, we downloaded Arduino software and set up the MediaTek LinkIt one board, an Arduino compatible board. Before running our first sketch, let’s get familiar with the development environment of Arduino IDE.

Arduino IDE is a development environment—a program where you write code, upload it to the board, and check for errors. If you open the Arduino IDE in Windows OS it will look familiar to this:

1
As you can see here, when you open the IDE it already contains two blank functions which are the default functions. (We will learn about these in the next part.)

The Arduino IDE looks simple enough... here, I've provided a brief overview about it.

The IDE is split into the following four parts:

  1. File menu at top
  2. Toolbar just beneath it
  3. Code window
  4. Message window

The buttons of the toolbar provide easy access to most commonly used functions like Verify, New, Upload, Open, Save, and Serial Monitor.

  • Verify: This is used to check that your code is correct before uploading to your board.
  • Upload: Used to upload the code to your board.
  • New: This button creates a completely new sketch with two default functions in another window. It is named with the current date by default, which you have to save before uploading.
  • Open: Opens a sketch.
  • Save: Save the current sketch.
  • Serial Monitor: This is very useful tool for debugging the code. It opens another window that displays the serial data being sent out by the board. 3

On the File menu, you will get the option to Create, Open, Save, and Print a sketch. There is a sketchbook option where you can put some sample sketch and take a look at them.

Adding Sketchbook to the Arduino IDE:

  • Open Arduino IDE.
  • Select “File” -> “Preferences”. 2

  • View the “Sketchbook Location” field.

  • Click “Browse” and copy the Sketches into the resulting folder and rename it to something appropriate.

With the Arduino IDE version 1.6.4 and greater you can easily add 3rd party boards directly from the stock IDE by adding the URL in Preferences under File menu.

In examples, you will find many sample programs that come with Arduino IDE.

In Sketch tab, you will find options to Verify, Compile, Upload Code, and an option to import a library.

In the Tools menu you will find an option to Auto Format your code and make it look nicer. Here you can select the COM port to which your board is connected, and you can choose your board from Board Manager.

The final option is the Help Menu where you can find information about the IDE and links to the Arduino website and other useful pages.

Now you have learned to use the Arduino IDE and its components and buttons. The Arduino IDE is pretty simple—you can easily get your hands on it by running just a few sketches. Now, you can make the hardware work with the software.

arduino Integrated development environment

Published at DZone with permission of Pooja Baraskar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • TDD: From Katas to Production Code
  • Automated Performance Testing With ArgoCD and Iter8
  • Continuous Development: Building the Thing Right, to Build the Right Thing
  • How to Create a Dockerfile?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: