Arduino for beginners How to upload arduino code

Spread the love

Steps to Program a Arduino board

  • Download and install the Arduino IDE.
  • Connect your Arduino board to your computer.
  • Chose right board from Tools>Board>” Arduino board you want to program”.
  • Select right board Tools>Port>COM port
  • Verify and upload.

Arduino software is very easy to use. Arduino for beginners, this article covers all the basics related to Arduino IDE. Here we will learn what are the main functions of Arduino software. How we can upload a sketch on the Arduino board.

Material Required Arduino for beginners

Software Layout

Open Arduino IDE, The first page appears like this. Some texts are written on it. These texts are mandatory functions so it will appear on every new file. You can check it by pressing ctrl+n. What are they we will discuss in the programming section? For now, ever code will be written in this section only.

Arduino first page

Let’s take a deep dive into the software’s first screen. The right symbol on the top left corner is used to compile the code. After writing the code you can check your code by click on this icon or you can use short key ctrl+r.

Arduino for beginners

The second arrow-like symbol is used to compile and upload a sketch on board. you can click on this icon or you can use short key ctrl+U.

Arduino for beginners

The next three symbols are a new file, open an old file and save the file. These are basic options like every software has.

Arduino for beginners

The tinny magnifying glass on the right top corner is used to open the serial monitor. This is basically used to communicate with Arduino boards. Ex:- you want to see temperature using a temperature sensor. This window display real-time values the Arduino board is reading.

Arduino for beginners

The black area basically compiler. If you made a mistake or anything went wrong message is displayed here.

Arduino for beginners

First code upload on Arduino Uno

Let’s upload an example code to Arduino. No need to write any code we will use an example code that is already present on software. Go to File>Examples>01.Basics>Blink. A code will appear on your screen.

This is an example code, which turns ON Arduino inbuild led( attach to pin no. 13. ) for one second and then turn it off for one second. The code repeats this for an infinite time.

Before uploading any code there are two steps that are compulsory. first is always select the right Arduino board. Here I am using Arduino UNO so I am selecting the Arduino Uno board. Go to tools> Board> Arduino UNO.

The second step is to select the write comport. Go to tools> port>port”No” in my case it is COM5. Port is visible only if you connect your Arduino to your computer.

Verify your code by click on the verify icon or ctrl+r.

A Done compiling message will display after success full compilation. If any error is in code will display here. In my case, I use an example code so there is no error.

After verifying the code click on Upload icon or ctrl+u. the code will start uploading on your Arduino. Your Arduino must be connected to your system otherwise it will through error.

Done uploading message will come out. that means code is uploaded successfully on your Arduino board.

There is an inbuilt LED is on every Arduino board. most of the model this led is connected to pin no. 13. The blink output can be clearly seen on this led.

Arduino for beginners is ended here. now you can upload any code on an Arduino board.

Follow me on Instagram

7 Comments

Add a Comment

Your email address will not be published. Required fields are marked *