Header Image - My path with Arduino

HW5: Potentiometer

In this article we will see two ways to use a potentiometer.

The previous article was a few more than a review on how to use LEDs. Because of that, this article will be more dense of contents, we will see two examples of use of the potentiometer.

The first example doesn’t involve any code. With this example we will only learn what a potentiometer is and what it does.

What we need (for both the examples):

  • 1x 10KΩ potentiometer
  • 1x 220Ω resistor
  • 1x 5mm LED

SW1: Serial Monitor

The Serial Monitor is a very useful tool once the code to write moves a bit from the very basics.

We can use the Serial Monitor to print anything we want: variables’ value, values coming from a sensor, a custom debugging string and so on.

In order to open the Serial Monitor we have to connect Arduino to the PC and then to click on the magnifier icon on the right side of the Arduino IDE.

HW4: Multiple LEDs fading with PWM pins

As extention of the last project we will see how to have a multiple LEDs fading effect by connecting 4 LEDs using the PWM pins.

What we need (from now on I will not mention Arduino, breadboard and wires):

  • 4x 5mm LEDs
  • 4x 220Ω resistors

To connect the 4 LEDs is very easy, we only need to do 4 times what we did in the previous project.

Let’s see how it looks with an image (click on it to zoom).

HW3: The breadboard

As mentioned in the previous article, in this one we will learn what is a breadboard and how to use it.

The integrated circuits, such as Arduino UNO itself, have the various components soldered on a board.

For educational purpose we have to often move the components around and most of all we want to be able to easily reuse our components once we have finished with a project and we want to start a new one.

For that reason we will use a breadboard.

A breadboard is nothing more than a plastic box full of holes connected together according to a schema that I’m going to explain, but first let’s see how a breadboard looks like

HW2: The first project with Arduino

In the previous article we have discussed about the various components on the board, now we will learn how to write the code and how to load it to the microcontroller in order to do something with Arduino.

As a first project with Arduino we will do the easiest thing possible, we will see the L LED blinking, but not that boring perfectly alternate blinking proposed by all the other other tutorials.

What we need:

  • Arduino UNO (or compatible)
  • USB cable
  • Arduino IDE

HW1: The Arduino UNO board

First of all we have to know that there are different kind of the Arduino boards, I will talk about Arduino UNO board, which is the most common for beginners. Arduino is an open project, anyone can build his own board compatible with the original one and infact you can find many clones sold on internet.
Because of that, your board could look a bit different from the one I’ll show you in my articles, but don’t worry all the most important things will be in the same place and you will have no problem to follow what I write.

Let’s take a look to the board:

About this blog

by Luigi Caradonna 0 Comments

I’m interested in technology and recently I’ve decided to start learning how to use Arduino and to make things with it.

I’m not an expert with electronics, thus, this blog is basically meant for those who, completely unexperienced, are looking for a way to learn the Arduino platform really from the beginning.