element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Tutorials
  • Products
  • Arduino
  • Arduino Tutorials
  • More
  • Cancel
Arduino Tutorials
Documents Installing Arduino IDE, Blinking an LED, and GitHub Libraries!
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Tutorials to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 26 Feb 2018 12:01 AM Date Created
  • Last Updated Last Updated: 27 Feb 2018 3:33 AM
  • Views 1056 views
  • Likes 3 likes
  • Comments 0 comments
Related
Recommended

Installing Arduino IDE, Blinking an LED, and GitHub Libraries!

image

Arduino Home

An Open-Source platform to create digital devices and interactive objects that sense and control physical devices.

Arduino Tutorials
Arduino Projects

 

 

{tabbedtable} Tab LabelTab Content
Installing Arduino IDE

This is just a quick overview of what you need to do to get started with Arduino.  I'm working from a Mac at the moment so I'll be installing the Mac version.

 

The procedure for Mac is the same as for Linux.

 

image

You can download the Arduino IDE here:

 

https://www.arduino.cc/en/Main/Software

 

and find older releases here:

 

https://www.arduino.cc/en/Main/OldSoftwareReleases

 

 

image

 

Unzip the folder and place it in your Applications folder:

 

image

 

Launch Arduino.app in the Applications folder and you should see this:

 

image

 

Hit Open when you see this popup:

 

image

 

when it's done you should see the editor and a toolbar at the top of the screen.

 

Your editor will now look like this:

 

image

Blinking an LED

 

 

If you are learning Arduino for the first time you can grab what are known as sketches.  Sketches give you the code you need to put something into the editor to make your Arduino do something useful.

 

Coding is something you learn from simply doing.  To help you get started along your journey there are included sketches including a sketch that blinks the built-in LED on an Arduino Uno.

 

image

 

You'll now have a sketch which you can use to program the microcontroller on your Arduino to  blink the built-in LED pin:

 

image

Under the Tools -> Board ensure that you have the right board selected (this example is using the Uno)

 

image

 

I'll need to connect my Arduino to the serial port of the my Arduino.

 

Arduino uses an A B usb cable which is something you see with printers and some older harddrives.

 

I do not feel like looking around for a A B usb cable so I just unplug A B cable connecting my printer to my computer.

 

image

 

Tell the board what port your board is connected to Tools -> Serial Port

 

 

On Linux and Mac this looks like /dev/tty.usbmodem* or /dev/tty.usbserial* where * is the a string of alphanumerical characters.

 

This is what mine looks like:

 

image

(My board appears to have shipped with a blinking LED program already loaded in.  I don't want that,  I want to show that I can blink my own LED so before I do upload the blinking LED sketch,  I upload the Bare Minimum sketch.)

 

I go back to the Blink LED Sketch at the top and I'm ready to upload my first Arduino program.

 

To upload the program I click on the arrow next to the check mark (they really do make this as simple as possible):

 

image

 

I click on the button and look at the bottom of the IDE screen to see if its working:

 

image

 

You can watch the progress bar on the bottom of the IDE to watch as your sketch compiles and uploads to the microcontroller.

 

Once completed, the yellow LED on your Arduino will blink once per second.

 

This is how mine looked:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Reading the Code:

 

  • If you've taken any kind of programming class or are at least familiar with HTML then you are aware of commenting.   Anywhere you see something like /*  */ or / /  , those are comments and have nothing to do with the code instructions that you are sending to the machine.  These comments make it easier to debug coding or for another developer to pick up and debug your code.  The open source nature of Arduino allows other programmers to pick up and fork out existing code so when you get to creating code yourself,  be sure to include these wherever possible to prevent a mess!
  • The C language isn't the first high-level programming language but having some knowledge of it will help you with not only coding for Arduino, but will help you in coding for any modern programming language.  If there is one book that you ever read on coding it should be The C Programming Language by Ritchie and Kernighan.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Getting to Github Libraries

As you get more involved with Arduino you are going to want to interface your board with a chip or a sensor.

 

For this kind of thing, Github is your friend.

 

May Arduino libraries are available on Github, thanks its the embrace of the Open Source Community.

 

Be sure to download the full zip file:

 

 

image

 

In this example the file is name Adafruit_NeoPixel-master.zip.

 

Use an unzipping program to unizip the folder.

 

remove master and any spaces, underscores, or dashes between the text so that it looks like this:

 

AdafruitNeoPixel

 

Under Sketches -> Import Library -> Add Library

 

That's it!   Your Library is now available for you to use!

 

View Jeremy Blum's element14 exclusive Arduino Tutorial on installing Arduino IDE and blinking LED:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

In 2011, Jeremy Blum produced a series of element14 tutorials. In this tutorial, Jeremy goes over installing Arduino IDE in Windows and Blinking an LED.

 

sudo Sergeant shows you how to Ditch the Arduino IDE for Terminal:

 

                                   image 

 

In the comments below, let us know if you have any useful advice to get people started on Arduino IDE!

  • arduino uno
  • blink led
  • github
  • arduino ide
  • arduino_tutorials
  • sketches
  • arduino_tutorial
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube