Getting started with Arduino IDE

In previous post of Arduino IDE series we learned a bit about its’ history, advantages, looked some cool projects created with this technology and discussed working principles. Now it is pretty good time to step further and install software. In order to do so, go on our ROBBO website and click “APPS” button (or just follow this link). Just click “Arduino IDE” and it will redirect you to the official website of Arduino where you will need to choose your operating system:

As a Windows user myself, I will guide you through Windows installation process. After clicking on the “Installer” button, you have a chance to support Arduino community and donate some money, or, if you don’t know yet whether you want it or not, there is always “Just download” option. After downloading and launching installer, window with license agreement pops up

Press “I Agree” and proceed further to the installation options, where you can choose which of the following components should be installed:

  • Install Arduino software – without it you will not be able to write any program since you will not have environment to do so
  • Install USB driver – this allows your PC to “communicate” with Arduino board via USB
  • Create Start Menu shortcut – pretty self-explanatory
  • Create Desktop shortcut
  • Associate .ino files –  .ino (extension of Arduino programs) files will be opened with IDE automatically

I do recommend having all those boxes marked so then you can start programming right after. By pressing “Next” installation folder can be selected and this is the last part of installation process. Press “Install” and wait, this will not take a lot of time. During this, Windows might ask permission for installing USB drivers so be near to press “accept”. Congrats! Now you have IDE up and running on your PC. Let’s take a closer look what’s inside.

This is how your working place looks like:

By default, your program (or, as it is called within Arduino community, “sketch”) will be named by the date of creation (as you can see, I created this on 27th of January). You can always rename it by clicking “File” and then “Save as” at the top left corner of the app. You also can change language, folder where sketches will be saved and other things at “Preferences” in “File” menu.  There is a cool feature mounted inside: there are some “starter” sketches designed specifically to show you how things are done here. Click “File”, follow it with “Examples” and choose which program you would like to study. There will be information about the creators of tutorial and when it was done as well as comments put after “//” sign (comments are optional and do not affect program in any ways, they are added in order to make code easier to understand for people).

 

This is one of the built in example programs which makes on-board LED blink. The program itself is very basic, however, you can change it. For example, if we change delay(1000) to delay(100), LED will blink each 0.1 second. NOTE: instead of LED_BUILTIN you should put the number of a digital pin LED is attached to; so if LED is on pin 13 and we want it to blink each 10 seconds, then code will look like this:

I recommend you to get familiar with Arduino IDE by taking a look at tutorials. Next, we will write our first sketch for Lab and compare it to RobboScratch’s code.

 

P.S. If you have different OS than Windows, then follow one of those links:

  • If you have Ubuntu click here
  • Mac users follow this guide

This is the second blog post brought to you by ROBBO to help you to become a pro robot hacker. Learning has never been so interactive!

5 Comments

  • Avatar
    best pc May 17, 2017 Reply

    Everyone needs a computer, even if you’re knee-deep in your iPhone,
    there are striking advantages to owning a PC that give us better
    performance to use it, the most expensive configuration,
    which comprises an Audio Block for built-in sound output,
    a 1TB hard drive block and even a graphics block for Ultra HD video.
    The following configurations are great to use my pc:
    CPU: Intel Core i5 – Core i7, Graphics: AMD Radeon RX 480 –
    Nvidia GeForce GTX 1080, Storage: 1TB HDD – 512GB SSD; 2TB HDD,
    Communication: Gigabit Ethernet, 802.11ac Wi-Fi, Bluetooth 4.2,
    Dimensions (W x D x H): 7.09 x 14.02 x 15.22 inches
    Actually my pc is great for using as well as to play and it’s
    better to care your Best PC that means due time charging its better
    don’t go to emergency charging that’s I do and thanks to everyone.

  • Avatar
    Jenny Mark July 4, 2017 Reply

    Nice post indeed! I am a novice to this Arduino world and looking for some resources to increase my learning in the field. Well this blog is certainly a big help but It would be more helpful if you provide a list of blogs from where I can read about Arduino.

    • Avatar
      Kristina July 5, 2017 Reply

      Hi Jenny,

      Thank you for your comment. We are planning more posts about Arduino and programming in their IDE environment. Stay tuned!

      Meanwhile, have you checked Arduino’s own guide? They have very interesting and helpful posts.

      Best,
      Kristina

  • Avatar
    Maddison Watson May 3, 2018 Reply

    Thank you for your excellent article on arduino-ide. It has helped me many times to start my project.

    • Avatar
      Kati Viljakainen May 3, 2018 Reply

      Thank you for your lovely comment! We wish you the best luck with your projects!

Leave a Reply