Getting Started with Arduino & Arduino IDE
Now, that you have Arduino IDE downloaded and installed, fire it up by clicking the icon that must have appeared on your desktop. When you first open the IDE, a window will open up that shows something called as a sketch. Every program that we write in the IDE is called a sketch. On the toolbar, you can see a variety of options similar to every windows program. You can click File to open a menu that gives variety of options like "New", "Open", "Open Recent" etc. There are several other options that can be explored as you get familiar with the tool.
Go ahead, and click on the "New" option in the File menu. This will open a new sketch with some default codes present in your sketch. Also, you can notice some buttons below the toolbar. These are shortcut buttons for :
Note for installation of Arduino IDE: The installation of this software is pretty regular as any other software. However, at a point of time, it will pop up a window mentioning the installation of driver. Please select Yes, and install the driver so that your PC can successfully communicate with the Arduino.
Go ahead, and click on the "New" option in the File menu. This will open a new sketch with some default codes present in your sketch. Also, you can notice some buttons below the toolbar. These are shortcut buttons for :
- Verifying the Sketch
- Uploading the Sketch
- Create a new Sketch (What we did just now)
- Open an existing Sketch
- Save the current sketch
- Setup()- This function runs only once in the program. Its mainly present to setup and configure your hardware or to run a piece of code that needs no repetition.
- Loop()- This is the main function that repeats indefinitely to get the main work done. For instance, if you are trying to control a light or fan in your room, the control code has to be placed in the Loop function as your control code needs to run repeatedly so you can control your light or fan at any given point of time.
Another important menu is the Tool Menu. Since Arduino IDE supports a variety of board, you can select the board that you are using from the Tool Menu. Com Port can also be selected depending upon the boards or ports that are being used in your PC.
Note for installation of Arduino IDE: The installation of this software is pretty regular as any other software. However, at a point of time, it will pop up a window mentioning the installation of driver. Please select Yes, and install the driver so that your PC can successfully communicate with the Arduino.
Comments
Post a Comment