Installation of Arduino IDE

Installation of Arduino IDE

To make it as easy as possible to get started with the Arduino, the Arduino developers have created a simple but useful integrated development environment (IDE). It runs on many operating systems. Before you can create your first projects, you have to install it.

Installing the Arduino IDE on Windows

The Arduino IDE runs on all the latest versions of Microsoft Windows, such as Windows XP, Windows Vista, and Windows 7. Installing the software is easy, because it comes as a self-contained ZIP archive,8 so you don’t even need an installer. Download the archive, and extract it to a location of your choice. And it is also available in installer.

Before you first start the IDE, you must install drivers for the Arduino’s USB port. This process depends on the Arduino board you’re using and on your flavor of Windows, but you always have to plug the Arduino into a USB port first to start the driver installation process.


Note: Similarly, the Arduino IDE can also been installed in Linux and macOS also.


Click here to download the Arduino IDE ðŸ‘ˆ

    

Step1 :

Connect the Arduino board to your PC .To connect Arduino Uno, Mega 2560, Arduino 101, Arduino Duemilanove. use USB cable type A/B .The below given cable is Type A/B

Arduino Uno cable
In case of Arduino Nano we will use USB Type A to Mini-B cable for connecting it to the pc.
The USB to connect Nano is shown below
           
     
Arduino Nano Cable
Step 2
Power up the board
Connect the Arduino board to your computer using USB cable. The green color LED should glow.

Step 3: Launch the Arduino IDE

Step 4:
Open your Project.
There are two ways to open the project
  • By clicking on New project.
  • By opening an example project .
To select New project 👉
  1. Select File
  2. Now click on New


To select a existing example project👉
  1. Select File
  2. Click on Examples 
  3. Select the desired example you want.

Step 6
Select your Arduino Board
Select the Arduino board which is connect to your computer




Step7: Serial Port Selection:

Selection of port is important for writing the program into the Arduino.

The steps to select the port are: 

  1. Click on the Start Menu, and open up the Control Panel.
  2. While in the Control Panel, navigate to System and Security. Next, click on System. Once the System window is up, open the Device Manager.
  3. Look under Ports (COM & LPT). You should see an open port named "Arduino UNO (COMxx)". If there is no COM & LPT section, look under "Other Devices" for "Unknown Device".
  4. Right click on the "Arduino UNO (COmxx)" port and choose the "Update Driver Software" option.
  5. Next, choose the "Browse my computer for Driver software" option.
  6. Finally, navigate to and select the driver file named "arduino.inf", located in the "Drivers" folder of the Arduino Software download (not the "FTDI USB Drivers" sub-directory). If you are using an old version of the IDE (1.0.3 or older), choose the Uno driver file named "Arduino UNO.inf".
  7. Windows will finish up the driver installation from there.
  8. Now open the IDE.
  9. Click on Tools.
  10. Under tools select the port.
  11. And click on the port no in which the Arduino is interfaced.
On the Mac, the serial port is probably something like /dev/tty.usbmodem241 (for an Uno or Mega2560 or Leonardo) or /dev/tty.usbserial-1B1 (for a Duemilanove or earlier USB board), or /dev/tty.USA19QW1b1P1.1 (for a serial board connected with a Keyspan USB-to-Serial adapter).

On Windows, it's probably COM1 or COM2 (for a serial board) or COM4, COM5, COM7, or higher (for a USB board) - to find out, you look for USB serial device in the ports section of the Windows Device Manager.

On Linux, it should be /dev/ttyACMx , /dev/ttyUSBx or similar.

Step 8
Uploading the program to board
Before uploading the code , first save the program in the desired location .


A-Compile - To verify Program
B-Upload - To dump the program into the device.
C-New- To Create a new program.
D-Open- To open a existing program.
E-Save-To save the program.
F-Serial Monitor-To receive serial data from the board and to send the serial data     to the board.

Once you've selected the correct serial port and board, press the upload button in the toolbar or select the Upload item from the Sketch menu. Current Arduino boards will reset automatically and begin the upload. With older boards (pre-Diecimila) that lack auto-reset, you'll need to press the reset button on the board just before starting the upload. On most boards, you'll see the RX and TX LEDs blink as the sketch is uploaded. The Arduino Software (IDE) will display a message when the upload is complete, or show an error.

When you upload a sketch, you're using the Arduino bootloader, a small program that has been loaded on to the microcontroller on your board. It allows you to upload code without using any additional hardware. The bootloader is active for a few seconds when the board resets; then it starts whichever sketch was most recently uploaded to the microcontroller. The bootloader will blink the on-board (pin 13) LED when it starts (i.e. when the board resets).




Post a Comment

0 Comments