Created on: 2022-01-04
Updated On: 2025-02-17
This beginner-friendly Arduino tutorial is a step-by-step guide that helps anyone get started with electronics using Arduino. Follow this guide to learn how to build circuits on a solderless breadboard and program an Arduino board. Discover the basics of the Arduino platform with an Arduino Uno, Arduino MEGA 2560, or a compatible board. This first part of the tutorial introduces Arduino and explains the tools and components used in the following parts of the tutorial.
Part 1 of the Arduino Tutorial for Beginners
The above image shows the simplest circuit connected to an Arduino Uno board. It is a single LED (Light Emitting Diode) and resistor circuit. A program loaded to the Arduino Uno board from a computer via the USB port flashes or blinks the LED. This Arduino tutorial for beginners starts using very simple circuits to teach basic Arduino and electronics concepts.
The official answer to the question “What is Arduino?” on the Arduino website is the following: “Arduino is an open-source electronics platform based on easy-to-use hardware and software. It’s intended for anyone making interactive projects.”
The above explanation is difficult for new users to understand. However, breaking down the explanation makes it easier to understand. Firstly, Arduino consists of hardware, meaning one of several different microcontroller boards. For example, the Arduino Uno microcontroller board shown in the previous image.
Secondly, Arduino is also software. In particular, Arduino software consists of a software package for programming different Arduino boards. In addition, Arduino has many programming and code examples available for anyone to use. Thirdly, Arduino is the Arduino community. Find the Arduino community on the Arduino forum, and Arduino project hub.
Finally, Arduino is open-source. Open-source means that the original files used to create both the Arduino hardware and software are available to anyone to download. Open-source files are available for examination, modification, adaption or improvement by anyone under the terms of the open-source license.
Use Arduino in interactive projects, and in general electronics projects. An Arduino project can be as simple as loading a program to an Arduino board that flashes or blinks the on-board LED. Measuring temperature and humidity of air, and displaying the measurements on an LCD or computer using Arduino is another project example. Also control anything from light displays to robots and more with Arduino.
There are many different types of Arduino boards, including different shaped boards, boards that operate at 3.3V and 5V, as well as boards with special capabilities such as WiFi and GSM connectivity. It can be difficult for a beginner to choose a board to start with.
The entry level Arduino Uno board and Arduino MEGA 2560 board can be used with this tutorial. Official version of the boards are: the official Arduino Uno board and the official Arduino MEGA 2560 board. Cheaper compatible boards can be used instead of the official Arduino boards.
An Arduino Uno is smaller and cheaper than an Arduino MEGA 2560. Most users following this tutorial will use an Arduino Uno or compatible board. Use a bigger more expensive Arduino MEGA 2560 board if you already have one, or specifically want to use one.
Official Arduino boards are quality products. Some of the money paid for official Arduino boards is used to fund the Arduino project. For example to run the forum and for designing new products.
The above image shows an official Arduino MEGA 2560 board on the left, and an official Arduino Uno board on the right. A clear plastic base is supplied with both official boards. Use either of these boards when following this Arduino tutorial for beginners. Alternatively, use a clone or compatible board.
Many different Arduino Uno and Arduino MEGA 2560 clone and compatible boards are available. The image below shows an example of two Arduino compatible boards. On the left is a board that is compatible with the Arduino MEGA 2560, and on the right is a board that is compatible with an Arduino Uno.
Either of the above boards works fine with this beginner’s Arduino tutorial. These boards are cheaper alternatives to official Arduino boards.
Official Arduino boards can be bought from the online Arduino store, or from one of many Arduino distributors. Compatible Arduino boards can be found at many different online stores. Use a search engine to find one near you.
A completely free of charge software program or app called the Arduino IDE is used for writing programs or code that runs on any Arduino board. This software is used to write programs called 'sketches' and is also used to load these sketches to any Arduino board. It runs on different computers and operating systems including Linux, Windows, and Apple Mac.
An Arduino board is required to follow this tutorial, as already discussed. A solderless breadboard, jumper wires and electronic components are also needed. Circuits are built on the breadboard and connected to the Arduino board in this tutorial. The section that follows discusses the electronic components required.
A number of options for purchasing an Arduino board are available. Options for buying an Arduino board are:
Where you buy an Arduino board from depends on where you are located. Consider import duties or taxes and shipping costs. Buy a USB cable in addition to one of the above Arduino boards.
Arduino Uno and Arduino MEGA 2560 boards connect to a computer via a A-B USB cable (also called a A to B USB cable, or USB printer cable). A USB cable provides power to the Arduino board. It is also used to load programs to the Arduino board.
Get a half-size 400 tie point solderless breadboard. For example, the image below shows a half-size breadboard used in this tutorial. Each hole in the breadboard is called a tie point. Therefore the breadboard in the image has 400 holes. Use a bigger breadboard if you already own one. Find out more about breadboards in the breadboards for beginners article. This article is part of a course that is an introduction to electronics.
Get jumper wires and links for building breadboard circuits. Single strand wires and Dupont wires are used to connect electronic components together. The following image shows Dupont wires with a pin on each end at the top of the image. These are male-to-male Dupont wires. Use them to connect a breadboard circuit to an Arduino.
Below the male-to-male Dupont wires are male-to-female Dupont wires. Male-to-female Dupont wires have a pin on one end and a socket on the other. These wires connect some components to a breadboard circuit, or directly to an Arduino. The Dupont wires shown in the image are all 10cm long.
Below the Dupont wires are single-strand wires of varying lengths. Generally, single-strand wires connect components to each other on a breadboard. Single-strand wires are available in jumper link kits. In addition, they can be cut from rolls of wire. The breadboards for beginners article explains jumper wires and kits, at the bottom of the page. An assortment of Dupont wires and single-strand jumper wires are used in this Arduino tutorial.
The table that follows lists a selection of components. This tutorial uses these components in various circuits. Electronic components are available from many online stores and electronic shops.
Buy the following parts as previously discussed.
Buy the following electronic components.
Quantity | Part | Image | Description |
---|---|---|---|
1 | 5k to 10 k Potentiometer | ![]() |
Variable resistance potentiometer |
1 | DHT11 | ![]() |
Temperature and humidity sensor |
1 | MCP9700 | ![]() |
Temperature sensor |
1 | TDB05LFPN | ![]() |
5V Buzzer |
1 | LDR | ![]() |
Light Dependent Resistor |
1 | RGB LED | ![]() |
Red/Green/Blue 4 pin LED, 5mm |
8 | Blue LEDs | ![]() |
5mm diffused blue LEDs |
4 | Red LEDs | ![]() |
5mm diffused red LEDs |
4 | Green LEDs | ![]() |
5mm diffused green LEDs |
4 | 22k | ![]() |
1/4W, 5% tolerance resistors |
4 | 10k | ![]() |
1/4W, 5% tolerance resistors |
4 | 4k7 | ![]() |
1/4W, 5% tolerance resistors |
8 | 470Ω | ![]() |
1/4W, 5% tolerance resistors |
2 | 100uF | ![]() |
Electrolytic capacitors, 25V or more |
2 | 100n | ![]() |
X7R capacitors |
2 | Switches | ![]() |
Momentary push-button switches |
3 | 2N2222 or KSP2222 | ![]() |
NPN Transistors |
Learn hardware details of Arduino Uno and Arduino MEGA 2560 boards using the recommended books that follow. In short, these books provide lots of useful information on Arduino hardware. Most important, they show how to test new Arduino boards, extend hardware, and connect basic components. These books provide excellent supplementary material for anyone following this tutorial. Buy the book for the board that you are using, and select either the printed (paperback) book, or the electronic (PDF) book from the following table.
Arduino Board | Format | Title |
---|---|---|
Arduino Uno | Paperback | Ultimate Arduino Uno Hardware Manual for the Arduino Uno |
Ultimate Arduino Uno Hardware Manual for the Arduino Uno | ||
Arduino MEGA 2560 | Paperback | Ultimate Arduino Mega 2560 Hardware Manual for the Arduino MEGA 2560 |
Ultimate Arduino Mega 2560 Hardware Manual for the Arduino MEGA 2560 |
Some optional tools make building breadboard circuits easier. Especially a magnifying glass, side-cutters, long-nose pliers and a multimeter. Read below for more details on each optional tool.
A magnifying glass makes identifying small components easier. Of course the need for a magnifying glass is dependent on eyesight, and may not be needed by everyone. The image below shows an example of a three lens magnifying glass. This is a jewelers type magnifying glass.
The image below shows a helping-hands magnifier. This is another example of a magnifying device used with electronics. In addition to these examples, there are many other types of magnifiers, some with their own light sources.
Use side-cutters to trim and strip single-strand wire for breadboards. For example, if a breadboard jumper wire breaks, use side cutters to neatly trim the broken end. Afterwards, strip some insulation off the trimmed end using side-cutters, or wire strippers. In addition to this basic use, side-cutters have many other uses in electronics. The image below shows an example of small side-cutters used in electronics work. Side-cutters are optional in this Arduino tutorial for beginners.
Bent single-strand wire does not easily fit into a breadboard. In this case, straighten the single-strand wire using long-nose or similar pliers. Use long-nose pliers when wire does not easily plug into a breadboard tie-point or hole. The following image shows an example of small long-nose pliers used in electronics.
Test voltages using a multimeter. For example, test for the presence of 5V on an Arduino board. Components and wires are also tested using a multimeter. However, a multimeter is optional for this Arduino beginner tutorial. The image below shows an example of a multimeter used in electronics.
Get the Arduino board, breadboard, wires, tools and components described above. Then complete each part of the tutorial that follows, in order. Tutorial parts start with setting up Arduino programming software. Then an explanation follows on how to load a first program to an Arduino board. Each following part of the tutorial builds on the previous part. Because this tutorial is for beginners, tutorial parts start from very easy and progress from there.