Arduino tutorials for beginner and intermediate Makers

do you want to learn how to use the arduino in your projects?
No programming or electronics experience?

No problem. 

If you are a Maker, STEM teacher or a student interested in programming, electronics, robotics, automation or the Internet of Things, then the Arduino is the multi-tool that you must master. 

Learning how to use any new technology well comes down to these critical factors:

Use Quality educational Content

Learning from the best available sources can make a huge difference in how quickly and how well you can master whatever it is that you want to learn. Excellent educational sources will not only teach you well and fast; they will also delight you.

Be an Active Learner

Technology education is hands-on.

The only way to truly learn something new is by executing your own simple experiments.

Each experiment is an opportunity to learn a new skill, capability, tool, or feature.

Work on Realistic Projects

Once you have acquire a few new skills, how can you consolidate your knowledge so that you can create a fully working machine, like a robot or a plant incubator? Project work is your opportunity to bring together everything you learned into a single activity.

Why learn Arduino?

By learning how to use the Arduino, you will learn about a host of related skills that will open the door to incredible possibilities. 

The Arduino is not only the best way to learn an extensive array of modern technologies, but also the tool that can enable you to create the machines that you imagine. 

Because the Arduino was created with education in mind, it is the best learning tool for getting started, even if you have never written a line of code before. And, while the Arduino is the perfect learning and creativity tool for people getting started, it is also an amazing platform for advanced designs. 

The Arduino platform has grown into a comprehensive array of hardware and software tools based on which you can create anything you imagine, and it also opens the door to learning many relevant and specialised technologies.

1

Getting Started with the Arduino

So, you have heard about the Arduino and some of the amazing things that you can do with it, but don't know where to start? Perhaps you have some or even no experience with electronics and programming? 

No problem. We all have to start somewhere. If you are totally new to the Arduino, this is where you should start.

1.1

What is the Arduino?

In this article, you will learn about the Arduino and how it came to be what it is today: an amazing learning and creativity tool.


I also want to try and dispel a myth. The myth is that to learn electronics, and to become a Maker, you need to be a naturally-born tech wizard.

This is important, because I common complain I receive from my students is that “I am not good with technology” or “my mind can’t think like a computer”.

Unless you can deal with inner inhibitions such as these ones, it will be very hard, almost impossible, to become good at anything that matters. 

1.2

Common Arduino boards, problems and opportunities

The Arduino is a word that describes a whole range of things: that boards that we use to plug components into and create circuits, the editor that we use to do the programming, and the language that we use in the editor.


But before looking at the Arduino boards that make up the core of the Arduino ecosystem, I’d like to suggest that you look at the Arduino as a problem-solving tool, not only a learning or electronics tool.

The Arduino is truly a blank canvas on which you can design solutions to problems


In this article, you will learn about some of the most important Arduino boards and explain that problems are, in reality, opportunities to learn.

1.3

Types of hardware that you can connect to an Arduino board

The open-source nature of the Arduino board and software has allowed the community to create a huge range of hardware components that allow us to create elaborate machines.


The Arduino can’t do much on its own. Its purpose is to communicate with external hardware, and to control.

There are many different kinds of hardware that you can connect to the Arduino. And there are a lot of them.


In this article, you will learn about the types of hardware that you can use with your Arduino.

1.4

The Arduino programming environment

One of the best features of the Arduino as a learning and creativity tool is that it is very simple to program it.


This simplicity comes from the bare-minimal and friendly application that we use to do the programming: The Arduino Integrated Development Environment (IDE).


Unlike the intimidating and complicated IDEs used elsewhere, the Arduino IDE is outright simple and friendly to use.


In this article, you will learn about what it is like to program the Arduino. You will install the Arduino IDE, and use it for the very first time to upload your first example sketch.

1.5

Arduino libraries and how to install them

After the simple and friendly programming environment, the second amazing feature of the Arduino that makes it such a great choice for creative people, is the huge range of libraries.


Libraries are collections of programs that other people have written that you can use in your own programs. By using libraries, you can build on top of other people's work, and quickly implement functions in your gadget.


Libraries make prototyping and experimenting with ideas on the Arduino very fast.


In this article, you will learn how to install and use Arduino libraries.

1.6

The basics of Arduino programming (part 1): program structure, functions, variables, operators

The Arduino is a small computer that we can use to control the world around it (via things such as motors and lights), and also sense the world (via sensors that can detect light, temperature and much more). Everything that the Arduino can do, you must program it.


If you have never done any programming, do not worry. Learning programming is much easier than learning a human language. 


In this article, you will learn the very essential of programming, and with this knowledge you can start writing simple programs ("sketches") for your Arduino. In this first part of the programming tutorial, you will learn about:


  • Program structure, 
  • Functions, variables, 
  • Operators.
1.7

The basics of Arduino programming (part 2): Loops, conditions, objects, inputs & outputs

In part 1 of this programming tutorial, you learned about the basics of programming the Arduino. You will build on this knowledge and learn three new important concepts:


  1. The programming structures that allow your Arduino (and any computer) to make decisions and repeat instructions.
  2. Classes and objects, that allow us (the programmers) to create reliable programs that resemble concepts from our real world experiences.
  3. Inputs and outputs, that allow us to connect external components like buttons and lights, to the Arduino.


Let's take it one step further and introduce these new concepts:


  • Loops, 
  • Conditions, 
  • Classes and Objects, 
  • Inputs and Outputs.

2

How to use buttons, lights and sensors

Once you have completed the tutorials in Part 1, you are ready to roll up your sleeves and do your first few experiments with your Arduino.

To follow along, you will need an Arduino and a few simple hardware components. If you don't have an Arduino at the moment, you can try these experiments with a simulator (I'll show you how to use it in each tutorial). 

2.1

Using peripherals (actuators and sensors) with your Arduino

The real power of the Arduino comes when you combine an Arduino, a sketch, and one or more peripherals. These peripherals are devices that can sense the world (sensors) or change something in it (actuators). 


In this series of tutorials, you will learn how to use some of the most common sensors and actuators, and take your first steps towards creating your first gadgets.

2.2

Simple output: make an LED blink on and off

The most common way to start learning how to control an external device with an Arduino, is to play with an LED (a Light-Emitting Diode), and make it turn on and off. Once you know how to do this, you already know how to control many other kinds of devices that have these two on/off states, like relays and motors.


In this article, you will learn how to control an LED by turning it on and off. If you don't have an Arduino handy, I'll show you how to use a simulator instead.

2.3

Simple output: make an LED fade on and off

Now that you know how to make the LED blink on and off, let's try something more interesting: make the LED turn on and the off gradually. This give a nicer listing effect, and will also help you learn how to control simple devices like LED and motors with a high level of precision.


In this article, you will learn how to make an LED fade on and off. I will also show you how to do this in the simulator, in case you don't have the necessary hardware.

2.4

How to use a button

A button is a simple on-off switch. There are many kinds of buttons, distinguished by the mechanism used to close or open a circuit, but essentially all buttons do the same thing: they open or close a circuit. 


In this article, you will learn how to use a momentary button to control an LED.

2.5

How to use a potentiometer

A potentiometer is a device that allows you to change the value of a resistance by turning a knob. 


In this tutorial you will learn how to use a potentiometer to control the brightness of an LED.

2.6

How to use the Infrared line sensor

An infrared line sensor is a simple device made up of an infrared emitting LED and an infrared sensitive photo-resistor. You could use one of these sensors to build a robot that follows a dark line on the floor, or your own heart rate monitor.

2.7

How to measure light with a photo-resistor

Measuring light with the Arduino is really easy. There are many sensors capable of detecting or measuring light, but the photo-resistor is one of the easiest to use. A photo-resistor is simply a resistor in which the resistance changes in accordance to its exposure to light.

2.8

How to detect tilt and impact

In many cases, knowing the exact force and direction applied to our gadgets is not necessary; just knowing that a bottle has been tipped over is enough to know that the lid should close automatically.For simple cases like that, a 3-axis accelerometer is an overkill. We could use a simple sensor that can detect the shock of an impact or for being upside down.

2.9

How to measure acceleration

Having the ability to measure acceleration is very useful. For this purpose, we use an accelerometer. Accelerometers are embedded in smart phones to provide orientation information, and for making games that are played by moving a controller device.

2.10

Measure the distance to another object with an ultrasonic sensor

Imagine a robot moving around in a room. The robot can use a distance (or proximity) sensor to detect that it is approaching a wall or another object.


Or, you could use a proximity sensor to automatically open a door if a person is within a meter of the sensor.

2.11

Detect motion with an infrared sensor

Passive infrared (PIR) sensors are very common and typically found in home electronics. They detect the heat that is emitted by the body of a person in a room as it contrasts against the background heat.


This kind of sensor is perfect for security applications. 

2.12

Measure temperature and humidity with the BME280

One of the most popular experiments with the Arduino, is to build an environment monitor gadget that measures temperature, humidity and barometric pressure.


You can do all that with a single sensor, the BME280.

3

Create circuits without a breadboard
using the Grove system

A Grove project

The Grove system uses a standard connector to replace the breadboard.

Breadboarding is a simple way to create circuits. However, as your circuits become larger, the risk of introducing wiring errors increases, your implementation and troubleshooting speed decreases, and your final build is sensitive to any small movement or bump.

How about get rid of the breadboard and replace it is a simple socket-based system? This is what Grove is about. With Grove, you can connect your peripherals to your Arduino using simple snap-on connectors. No breadboard, and no jumper wires. Learn all about Grove for Arduino with our tutorials.

3.1

What is Seed Studio Grove?


The Grove system is a set of hardware components that make it super easy and quick to create circuits without the need for breadboards and jumper wires.

3.2

The Grove Starter Kit for Arduino

The best way to get started with Grove for the Arduino is by purchasing the Grove Arduino Starter Kit. 


This is the kit that I also use in my course Grove For Busy People. 


In this article, we'll take a look at the components that come with the kit. I will briefly look at the components, and later in this series of articles (and in the course), I'll show you how they work.

3.3

The Grove Base Shield for Arduino

In this article, I will describe the Grove Base Shield and how you can use it to connect Grove modules to your Arduino Uno (or any compatible board).

3.4

The Seeeduino Board

In this article, you will learn about the Seeeduino, a board that is 100% compatible with the Arduino Uno.

3.5

Experiment: Momentary button

In this article, I'll show you how to use a Grove button module. As you'll see, wiring will be a breeze, with precisely zero margin for error.

3.6

Experiment: Momentary button

In this article, I'll show you how to use a Grove button module. As you'll see, wiring will be a breeze, with precisely zero margin for error.

3.7

Experiment: LED module

In this article, I'll show you how to use a Grove LED module. Just like with the button module, wiring will need only a few seconds and has not risk of error.

Other recommended articles about the Arduino

We publish new articles about the Arduino and related learning and creativity technologies regularly. Here are some of our most popular articles that aren't listed in the groups above:

The difference between unipolar and bipolar stepper motors.

How to drive DC motors with your Arduino.

New to the Arduino? Here is some advice to help you get started.

How to use bypass/decoupling capacitors, and why.

What are pull-up and pull down resistors?

Your first multimeter – a simple buying guide.

Finding your way around the Arduino IDE.

So, you want to be a Maker? What’s the plan?

Consider our Comprehensive Arduino and Electronics tutorial courses

Thousands of students have already taken our video courses to learn how to use the Arduino and understand how electronics work. 

With our video courses, it's like having a tutor showing you how to create circuits and write programs, one step at a time.

If you need help, all you have to do is use our Questions & Answers tool to ask your questions, available in each lecture.

Learn in a calm, distraction-free environment. No advertisements, no cat and dog videos to break your concentration. Just learning.

Not sure where to start? We can help you. 

Do you have very little or no prior experience in programming and electronics? 

If yes, we recommend this two-course bundle:

Arduino Step by Step Getting Started

How to setup your electronics workbench

These two courses are designed for people who have never worked with electronics or programming before.

Arduino Step by Step Getting Started will teach you how to program the Arduino and use many of the most popular and useful components through practical and fun experiments. 

The Electronics Workbench: A Setup Guide, will help you setup a dedicate area in your home or school as an electronics workbench. There, you'll be able to learn and create your gadgets.

Let's make something together

Hi, I’m Peter.

I am an online educator and Maker, author of Maker Education Revolution, KiCad Like a Pro, and founder at Tech Explorations.

I create all the content on the Tech Explorations website. 

Why? Because, as I already mentioned, I'm an educator and a Maker, and I have a Mission.

My mission is to help people learn electronics, programming, printed circuit board design, and lots more. Most importantly, I want to help as many people as possible to enjoy their technology education adventures.

After a 15 year career as a University Lecturer, I decided to become a Maker, again. Like most of us, as a child, I was curious, and I learned how things worked by experimenting with them (usually, this meant taking them apart and hoping to not loose any screws as I was putting things back together). 

Growing up, I became an Engineer, only to loose my childish curiosity in the name of pursuing a career. 

I became a child again once I got my first Arduino. With it, I started creating thing, tinkering with components, testing ideas. Even though I was a "career educator", it was only now that I realised how wrong my last 15 years of education had been. I was partly responsible for destroying the creativity of thousands of students, just like mine had been destroyed in the name of being a "proper adult".

At Tech Explorations, my job is to learn and to create. I learn what I am curious about, and I create educational content. This content is the record of my learning.

I don't create this content to teach "students". I create it to help learners learn things that they want to learn. 

At the end of the day, we are all learners, and we learn from each other.

I sincerely hope that through the content I create at Tech Explorations, as many people as possible will be inspired to re-kindle their childhood curiosity, learn, and create amazing things.

Learning is social

The Internet has brought a revolution in publishing and learning. It is the biggest repository of knowledge that has ever existed, and it is getting exponentially bigger. For anything you want to learn, there's a good chance that someone has written a blog post or created a video about it.

Perfect! Well, not exactly. While there is a lot of great content out there, much of what is available on the Internet lacks quality, and most important, lacks the human connection.  

The best learning is social. When you communicate with others that have been where you are now, you learn faster and better. You have someone to fall back when you need help, or discuss an idea when you are stuck. 

At Tech Explorations, we support our students through our community tools because we know that this is the best way to learn and teach.

Helping is part of learning

Learning new skills and technologies is a journey into uncharted territory. It is much better if you have a map, and even better if you can "radio in" for help. 

At Tech Explorations, we have made a big investment in our communication tools to make sure that no student is left behind. We have three levels of Support: Community Discussion Forums for each course, lecture-level Questions and Answers tool, and a Help Desk. 

Our content is live and monitored by our team so that we can respond to student questions quickly. Speed is important because learning obstacles can have a devastating effect in our learning process, so we try our best to help our students smash through them.

Stay Calm And Keep Learning

The world and the Internet are extremely noisy places. Many "free" earning resources operate more like noisy open-air bazaars, with annoying distractions that aim to stop you from doing what you want to do (to learn something new) so that you can click on the next video (often about a cat doing a funny trick). 

The loss of concentration alone accumulates to many hundreds of hours of lost learning productivity per learner per year. 

Would you be able to learn how to program the Arduino in the food court of a shopping center? In a way, that's what many of us are doing.

At Tech Exploration, we have created a calm environment that is appropriate for immersive learning. Concentrate, turn off your mobile phone, start the lecture video, and follow on with the experiment. 

That's all. Nothing else should compete for your attention.

The Path Forward

In this page we have given you lots of free and quality learning content, opportunities for hands on experimentation, and even larger projects that you can use to consolidate your learning. All that in a calm, learner-friendly environment.

A question I get a lot is "What should I do next?"

People that have just learned a new skill, like how to make an LED blink or spin a motor, are often overwhelmed. They have just grasp something new, but are having a hard time figuring out what is next.

It is totally understandable, and I have been there myself. In fact, I feel like that every time I learn a new thing, isolated from its possibilities.

Think about this: you just learned how to spin a motor. How can you build a robot out of that? What is the process of going from a single working component, to a system that brings together many components, into a working gadget?

The best answer I can give to this question is this simple process, plus a lot of perseverance (you need it when you decide to pursue something important):

  1. You need a project that excites you. This project gives you a goal, and even a path (although the path is not clear in the beginning). Think about what the project is about, and especially what it is supposed to do. This ("what is it supposed to do") is what gives you your project goal. You will need this for step 5 of this process.
  2. You need to analyse your project and break it down to its components. A robot is made of motors, motor controllers and microcontrollers, sensors, software, and a frame to hold everything together. Figure out what are main components in your project.
  3. Based on you analysis, figure out your level of knowledge in relation to the project components. You may have a good grasp of motors but lacking in sensor. 
  4. Plan your prototyping process. This part of the process is critical, because you have to make several decision, that involve the hardware, software, and assembly of the gadget, but also the learning that you have to engage in in order to make this possible. You don't need to know everything before you begin, but you need to choose a place to begin. If you were to build a wheeled robot, for example, you could start with the wheel and motor assembly so that your robot can move, and leave the sensors for later. Why? Because you know how to use motors now. You can learn how to use sensors later. Like so many things in life, beginning is half of everything you do. The first iteration will give you the momentum and confidence you need to go for the second, third, until the last iteration.
  5. Repeat until the project is complete. The iterative process of prototyping is your guide. Each iteration solves problems and creates new ones. The new problems usually demand that you learn something new. Go on, learn it, and come back to continue with the current iteration. The project is complete when you have achieved the goal that you set in step 1. But here's the catch: In prototyping, like in life, everything is fluid. Your original goal was based on early assumptions of what you wanted to achieve, before you had actually done any work towards that goal. In the process of working towards your goal, the goal changes! Be mindful of that, and know that it is Ok. Enjoy the process, and the achievement of the result.

This is the process that I follow with my projects, including my books and my courses. Over time, you will become better at picking projects and especially analysing them so that what you eventually create is very close to your original goal.

The only way to build up your project management and gadget building skills is to do it.

And we are here to help you 🙂

Join the Tech Explorations Insiders

Want to make sure that you get notified when I release my next article or video? Then sign up below to join my list of Tech Explorations Insiders.


You'll receive email notifications whenever I release new content plus you'll get access to insiders-only updates that aren't published on the site!


We never spam, and you can unsubscribe at any time.

By submitting this form, you agree to receive educational and promotional announcements from Tech Explorations. Your personal details will not be shared with anyone outside of Tech Explorations, and you may unsubscribe at any time.

>