Course Content
The Arduino UNO
In the following three lessons, you will get to know your microcontroller - the Arduino UNO. You will learn more about its history, its functions, and most importantly: how to power it.
0/3
The Arduino IDE
For beginners, the Arduino IDE (Integrated Development Environment) is usually the first choice – and for good reason. You can program all Arduino boards with it and manage libraries for sensors, displays, etc. It also features the "Serial Monitor," where you can output data and troubleshoot.
0/2
Your first sketch
In the following lessons, you'll get to know the basic structure of an Arduino sketch and write your own programs. Let's get started!
0/2
The Serial Monitor
Now let's turn our attention to the Serial Monitor – a feature of the Arduino IDE that you will use in virtually every one of your projects.
0/2
Variables
No programmer can avoid variables. In the following lessons, you'll learn what types there are and what you can do with them.
0/3
Controlling an LED
Now it's time for more hardware! In the next lessons, you'll connect an LED to your Arduino. You'll first turn it on and off with a button. After that, you'll build a dimmer to control the brightness of the LED.
0/6
Lie Detector
Discover the entertaining side of electronics by building your own simple lie detector with your Arduino. This fun project uses basic components to measure skin resistance changes when someone might be telling a fib, perfect for adding some playful suspense to your next gathering with friends.
0/1
There’s music inside!
Your Arduino can do much more than "just" make LEDs shine at different brightness levels. For example, it can make music. In the following lesson, you'll learn how to use a piezo buzzer and coax some charming tones out of it.
0/3
A Theremin with Ultrasound
Do you want to make a bit more music? In this lesson, you'll build a theremin that you operate with your HC-SR04 ultrasonic sensor. You move your hand toward and away from the sensor - your Arduino calculates the pitch of the tones from the distance, which are then played through your piezo buzzer.
0/5
The Sound Sensor
Ready to explore how your Arduino can respond to sounds? In this lesson, we'll connect a sound sensor to your Arduino and learn how to make it respond to both digital noise detection and analog volume levels.
0/1
Build an Alarm System
In this project, you will build your own alarm system. It consists of three components: the sound sensor, which you have just learned about, the active piezo buzzer, and the RGB LED.
0/2
The DHT11 Temperature Sensor
Let's move on to another component that you'll certainly use in many projects: the temperature sensor. In this case, the popular DHT11, which can measure not only temperature but also humidity.
0/3
Arduino Course for Beginners

In C++ there are several variable types that you can use in different ways. Let’s start with the text “Hello, World!”. This text should now be stored in a variable for text.

The easiest way to do this in the Arduino IDE is with the type String. Let’s take a brief look at variable declaration.

Declaring Variables

Declaring variables is quite simple and always follows the same principle:

Type Name = Value;

 

In our case that would be:

String text = "Hello, World";

 

Let’s briefly talk about variable names. In principle, there are no limits to your imagination here. However, there are some names that you cannot use because they are already assigned to other functions in C++.

These include, for example: if, else, continue, class and true.

The list of reserved words is long – but fortunately you don’t have to memorize them. Whenever you use a variable name during declaration that is already reserved elsewhere, the name will be colored (allowed names remain black) and at the latest when uploading the sketch, you will receive an error message.

Also, you cannot start variable names with a number or a special character.

However, you can write variable names in upper or lower case. It is common practice to begin a variable name with lowercase. If the name consists of two or more words, the so-called Camel Case is used. Here you begin the first word with lowercase and start all further words with an uppercase letter:

myCamelVariable

 

With some imagination, you can see the humps of a camel here, well… 😉 One final tip: Try to give variables names that describe their purpose well. This helps you and other readers of your code understand what is stored in them.

Other Types of Variables

Besides text, there are of course also numbers. There are several types for this, depending on what kind of number it is:

Type Suitable for Numeric range
int Whole numbers -32,768 to 32,767
long Whole numbers -2,000,000,000 to 2,000,000,000
float Floating point numbers -3.4028235E+38 to 3.4028235E+38 (yes, very large)

As we continue with the course, we will use variables of the type int – i.e., whole numbers. And one very special type: bool. Variables of type bool can only take two values or states: True or False.

In the next lesson, we’ll continue with variables – in practice. 🙂

We don't track you. Enjoy your cookies while making awesome projects!