Skip to main content

Featured Post

Social media Share

Social mediaSocial mediaSocial media   Social media   Social mediaSocial media   Social media

Getting started with arduino uno for led blinking

What is Arduino Uno?


The Arduino Uno is an electronic board that has the ATMEGA 328P microcontroller. It has analog and digital input/output pins. We use it in simple projects, e.g. led lights and also complicated robotics projects. 

Let's get started with Arduino Uno to run our first program. As we use it with different machines e, g. Windows, Apple, Ubuntu, mobile, etc. as usual Arduino programming is difficult for newbies, but if you get in touch with this Arduino tutorial, it could be helpful.

Getting started with Arduino


Here, I will discuss especially the Windows operating system and also a little another operating system. First, I will discuss how to interface with the Windows operating system.


Requirements for Arduino setup

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

Setup Arduino ide


Get the latest version from the Arduino cc en main software and Install it on your system. Aintegrated development environment (IDE) can work on Windows, Linux (both 32 and 64 bits), and Mac.

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

We use the USB cable to communicate between the board and the computer. To upload the program, the Arduino board. We use it for a power supply purpose.

Arduino uno

how to connect Arduino to computer


Now, you need to check driver availability in 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 

arduino uno

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 the Atmega16/FTDI 232 chip/CH 340 chip. In my case, it was CH340 and automatically detected.

MAC OS X 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.

Arduino Programming

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 shown below.

arduino uno

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.

Led blink code to Arduino


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

arduino uno

Board Selection in Arduino Ide

Now you need to go to the tool menu. Then select your board in the drop-down list. If you are using another board, e.g. Nano, Mega, or Uno. In my case, I selected the Arduino Uno.  

arduino uno

Arduino Port

After that, once again in the tool menu and select port, it will show on the bottom side along with COM Port as in fig. In my case, it is COM7.


arduino uno

Upload the First Led blink Program

Before uploading the program, we should verify it by compiling it. Then upload the first led blinking program.

You will see after a few seconds Led near pin # 13 will blink if every step is as per instruction, 
Congratulations ! and now arrange the led circuit on the board. Between negative supply and Led pin, put 230-ohm resistance in series.


arduino uno


You can change the led blinking time to change the code. I define the delay time as

(1000); 1000 = 01 Second

You can change the ON/OFF time by changing the value.


The serial monitor button is located at the right corner of the Ide menu bar. You can use it to observe after running the program. There are a lot of examples of Led-related and Arduino sensor projects in the Ide environment. 

This short Arduino programming guide gives a good idea for getting started with Arduino UNO. Arduino coding tutorial is a healthy startup for simple robot projects.


Comments

kevin calain said…
This comment has been removed by a blog administrator.
This comment has been removed by a blog administrator.
Unknown said…
Increasing your fluid consumption, on the other hand, might be helpful to your overall health, which isn’t always the case with unregulated items like detox pills and kits. If you’ve ever done hot yoga, you’ve probably heard your instructors talk about sweating away all the toxins from your body. THC can be released from adipose (fat) tissue during exercise, and exercise may, in theory, assist to speed up the detox process. However, there is no scientific proof that exercising can help you detox faster and pass a drug test sooner than if you didn’t exercise. There are alternative solutions to consider if you still want to use cannabis but don’t want any evidence of the plant to show up in a blood or urine sample. Recreational purposes aside, many people who have been using marijuana for a long time can’t just go cold turkey for three consecutive months; the withdrawal effects make it very challenging to abstain, too

Popular posts from this blog

Arduino UNO Pinout (Diagram) Learn quickly pins function

Arduino UNO Pinout and Board components detail The Arduino Uno board is an electronic experimental board. The Atmega328P is the major component of the Arduino board. This is an open-source platform for creating electronics projects. I will explain the description of the  Arduino UNO Pins  and the board in the post.  Arduino Uno  is a standard board of the company, even though other boards, e.g. micro, Nano, mega, Leonardo, 101. Due and Yen. Arduino also manufactured IoT (internet of things), Bluetooth, GSM/3G, Wi-Fi, and motion sensor boards.                                                                       FIG-A Arduino Uno board The Atmega328P Microcontroller is 8bit with 32k byte internal flash memory. To program the main chip, a 16 MHz crystal is part of the board. The Arduino board requires only 5V DC to operate. Arduino Uno pins detail Arduino UNO board has 5 analog and 14 digital (PWM) pins. These pins could be GPIO or used for specific signals. Vin Pin It uses Vin pin for 7

Led Matrix display interface with Arduino uno

Led matrix display Pins description There are several types of dot matrix available in the market. We can differentiate it as per size and types of connection, e.g. 5x7, 8x8, common anode, and common cathode type. It comes in different single colors and RGB. But in this article, I will discuss 788bs as a common anode red color 8x8 Led matrix display Modules. We use it in many electronics displaying items, e.g. electronics clocks. also for moving message displays, displaying games, etc. We use a dot matrix display with an Arduino UNO board directly, sometimes in projects. But for some projects, we use a max7219 chip or 74hc595 for dot matrix driver as required in our projects. led Matrix 8x8 Pinout function detail The led matrix modules are used in various colors, but I specifically describe the red led matrix. It is very easy to interface a led matrix with an Arduino board as compared to an RGB led display. If we look at a piece of the 8x8 dot matrix , it contains 16 pins in w

Arduino Nano pinout. Tutorial with Diagram and Details

Arduino Nano pinout details with schematic Arduino Nano comes in small size and has the same function as Arduino Duemilanove. Nano contains Atmega328P Microcontroller as the main chip. Nano uses a small jack for the DC power supply.  For the USB interface and power, it uses a mini USB type B cable.   It is an electronic experimental board and being small in size,  we could install it easily in our projects . It has more analog pins than Uno, so very helpful to create controlling type electronics projects . Arduino Nano pin Diagram The pinout of Arduino nano is very easy to understand if you look at the board. Arduino Nano Board Details If you look at the Nano board Arduino Nano Pins the Atmega328P micro-controller is the major component of the board. The board has four LEDs for different identification. For ON, RX for receiving data, TX for transmitting data, and L for loading the program. Atmega328P Datasheet To learn Arduino Nano pin out it is necessary to understand the datashee

Resistor Calculator with Graphical Chart

Resistor Calculator for measuring resistance A is a very useful tool for anyone working on electronic experiments or projects. It is easy to use and has a simple design. To get resistance for Led voltage drop or your circuit resistance, you can use an online calculator or look up a formula. We can use it for voltage drops or led current limiting. Online resistor calculator It is a simple and easy-to-use online resistor calculator instead of using formulas. It comes with different bands e.g.3 band, 4, 5, and 6 bands. The program calculates resistor values. # Get in touch with more interesting topics ……… 1- How to use a led Matrix with Arduino . 2- Arduino books for projects . 3- Best Arduino kits for beginners . Standard Table For Calculating 4 Band Resistors Online Resistor Calculator (4 Band) Graphical Resistor Calculator Graphical Resistor Calculator is a Free Software to easily calculate the

Arduino Books for beginners and experts

Arduino Books for absolute beginners Arduino books are very helpful to learn about the smart Arduino board . These books provide the basic idea to start a project with basic knowledge of electronics. Some of these books contain codes for the projects, including pictures. These Arduino books for beginners and for experts who come up with a deep knowledge of electronic components. Programming Arduino: Getting Started with Sketches Edition - 2nd  Writer - Simon Monk . Amazon Kindle books Edition 191 Pages The Arduino programming book is using sketches to program the Arduino. It is very easy to use this book. It contains a thoroughly updated manual, step by step, on how you can speed program all Arduino models. This Arduino tutorial book gives a good understanding of Arduino regards hardware fundamentals. It has a brief description of micro-controller details, components and chips mounted on the Arduino board . Instruction about setting up the software. Introduction of Arduino power-up

best electronic books for beginners in 2021

Best electronic books with kindle editions A wonderful variety of electronic books .  Those who have a very basic knowledge of electronic components. These books are very useful. You can understand the basic structure of the electronic components. These are helpful for theory and practical purposes. Getting Started in Electronics Third Edition, Writer - Forrest M Mims III 128 Pages This book starts with the basic concept, from electricity to electronics. It deals with basic tools and items used to start a mini-project. In this book, the semiconductor-type materials and components are described. The book is about semiconductor components and photonic semiconductor components. It provides logic and symbols of logic gates, integrated circuits. Either digital integrated circuits or linear integrated circuits(operational amplifiers, function generators. The book is not only about electronic circuits. Although it is a combination of AC power-based electronic circuits.  This book includes 10

Arduino Kits for beginners

Arduino Kits for electronics projects Arduino kits are providing the ability to learn electronics easily. You can make your own projects in a few minutes. Making a circuit on a PCB is a hard job, and it requires excellent skills in soldering. Also, it consumes a lot of time. Assembling components is another problem. But electronic portable kits solve the issue. You can gain knowledge from Arduino starter kits because the kits include project books and different varieties of sensor modules that directly connect and reconnect just in a few steps. Arduino Starter Kit (official) This is the official Arduino starter kit from the original manufacturer, Arduino.cc/starter kit. This is a complete package, including the Arduino starter kit manual. This manual contains practical images and schematic diagrams to understand well.  The manual covers not only project-making areas; also it has information about Arduino IDE software installation on Windows/MAC OS X, and Linux. Every Project/lesson

Arduino app for programming and IoT device

Arduino app for Android and Windows We know that Arduino App is used for programming But we could run it on windows or android . As it depends on the availability of a programming device for our projects. This application also works for the Arduino Bluetooth android project. These Applications can help to learn and create electronic projects . I will describe. the functions and introductory of the following: application and also support systems required to run. A comprehensive list of Arduino programming applications for Android Android Apps for Electronics solutions. It is an easy-to-use Arduino Application in  Apple Android. ArduinoDroid app for Mobiles Droid v   4.9.1 . Droid is a short form of Android, it means a robot. The Droid app works on PC and, An example of Arduino android is also available. It includes IDE, compiler, and up-loader. the mobile memory should be enough and it can't be set up on an SD card for Android protection policy. The second picture shows a menu, i