Maker.io main logo

Getting started with Arduino

2020-10-12 | By Shahbaz Ahmad

License: None Arduino

Getting started with Arduino

Let's we are getting started with Arduino to run our first program. As we use it with different machines e, g. windows, apple, Ubuntu, mobile, etc. but here, I will discuss for windows operating system and also a little another operating system. First, I discuss how to interface with the Windows operating system.

What you Needs

  • Arduino Uno
  • USB Cable A-B male (usually used for printers)
  • Laptop/Desktop with Windows 7, 8, 10
  • The IDE Software
  • Led (can choose any color)
  • Resistance (value of 230 ohms)

Download the Software (IDE)

Get the latest version from the official Arduino website and Install it on your system. An integrated development environment (IDE) can work on Windows, Linux (both 32 and 64 bits), and Mac.

Let's start after Downloading the software IDE and installation at your system. The icon will show on the desktop. Now just plug in the USB terminal with the standard B USB cable and status led will light up at the board.

1) USB used for power-up the  Board

2) To upload the program in the board

3) For Communication between computer and board

Getting Started connection 

Now, you need to check driver availability at your system. For that, please follow these steps and go to My Computer → Properties → Device Manager, a pop-up window will be open, as shown 

 How%20to%20find%20Arduino%20in%20device%20manager

Highlighted in the picture. If you found a USB-serial device under Port (COM & LPT) then ok else check in Other devices and found unknown devices. Right-click to update the driver or need to check the USB Serial port IC chip at your UNO board.

Mostly Windows XP, Vista, 7, or 10 will auto-detect drivers. For the communication, some boards used Atmega16/FTDI 232 chip/CH 340 chip. In my case, it was CH340 and automatically detected.

MAC OSX Installation

Download the latest disk image (dmg) file for the IDE Environment. Open the. DMG file by dragging the icon over to the Applications folder.

Also, for installation at Linux (both 32 and 64 bits), and Mac OS X can check the link http://arduino.cc/en/Main/Software from the official website.

Explore Ide Environment

After it does a successful installation, open the development environment to start your first program. When you open the integrated development environment (IDE), it will similar to the figure as shown below.

 Arduino%20Ide%20menu%20details

Some buttons are inside the menu bar, it's important to understand first the functions 

New  -  It starts a new program/Writes a new code.

Open -  By this option, you can open the existing program.

Save  -  It will save the program.

Verify-  To verify before, upload the program/Compiling the code (Some time found we could correct an error issue)

Upload-It uploads the program to the chip.

 

Open Led Blink Program

 

Start your first program blinking, led by File → Example → 01. Basics → Blink will launch a blinking led program.

 Led%20blinking%20program%20in%20Arduino%20ide

Board Selection in Ide

Now you need to go to the tool menu and select the board.

 Arduino%20board%20selection

How to select the Port

After that, once again in the tool menu and select port, and it will show in the bottom side along with COM Port as in fig

 

 Arduino%20port%20selection

Upload the First Led blink Program

After uploading the program and getting started with Arduino Uno Ide, you will see,  after a few seconds Led near pin # 13 will blink as it is the start, Congratulation and now arrange the led circuit at the board and 230-ohm resistance in series

 led%20blinking%20with%20Arduino

You can change blinking time to change the code, I define it as delay (1000); 1000 = 01      second. You can change ON/OFF time by changing the value.

制造商零件编号 ABX00021
ARDUINO UNO WIFI REV2
Arduino
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum