This tutorial is an introduction to the Arduino software interface.
This is what you see when you open the software:
1. top bar
- Verify: check for errors in the code
- Upload: upload the code in the board
- New: open a blank new window
- Open: open an Arduino file (.ino)
- Save: save the current file
- Serial monitor: open the serial monitor window, we’ll explain it later
To start with the code let’s open an empty example from File > Examples > TinkerKit > Empty
This is how an empty TinkerKit sketch looks like. If you’re familiar with Arduino, you’ll notice that is almost the same, except for the library inclusion in the top-line.
As you can see there are two main areas inside every sketch, called setup and loop.
Inside the setup we write all the things that need to be set up before the sketch start
Everything that is written inside the loop, as the name suggests, is repeated over and over until the Arduino is powered.
The “Empty” example is a good way to start your project instead of copying the same code every time. Remember that examples are read-only and can’t be modified. Click on “Save” to save it as a new project (after the read-only warning).
All the projects you make with the Arduino software are saved by default inside the “Arduino” folder inside “Documents”. If you try to be organized your life would be easier, it takes very little to have that folder filled with hundreds of random-named projects. All your projects can be accessed from the software under File > Sketchbook
That’s pretty much everything you need to know to set up a project in the Arduino software. In the next tutorial we’ll start writing our code, stay tuned!