Learn to code

ARDUINO & CODES

Arduino Basics

Arduino Tutorials BasicsWhether you are a completely new Arduino user or an experienced user, you’ll still need to master the basics. The goal of these tutorials is to help you understand the basic coding components with some simple, yet important examples. After you completed the tutorials below you are able to understand the sketches and write simple programs. By the end of this chapter, you will be able to understand the basics of the Arduino sketch.

What You’ll Learn:

  • How to structure the Arduino Code and which elements are essential.
  • Understanding Global and Local variables.
  • What kind of data types you can use for your sketch.
  • How to print or receive data with the serial monitor
Arduino Basics
Programs for Arduino are usually referred to as sketches; the first users were artists and designers and sketch highlights the quick and easy way to have an idea realized. The terms sketch and program are interchangeable. Sketches contain code—the instructions the board will carry out. Code that needs to run…
Read More
Arduino Basics
One of the first projects that you can make with an Arduino is to blink a LED. Many examples exist for blinking a Led with Arduino. Unfortunately, these tutorials do not go in detail about the coding and are very basic in their explanation. In this tutorial, I hope to…
Read More
Arduino Basics
In the previous tutorial, Arduino Tutorial: 2.1 Blink a LED, we made our first sketch.  with an external LED. We declared one constant variable at the top of the program for the output pin. This tutorial will give you insight into how variables can be used. We can distinguish two kinds of variables, the…
Read More
Arduino Basics
In this tutorial, we will learn more about working with strings. Strings are a sequence of characters. For example, The word “Arduino” is a string of characters. Strings allow the Arduino microcontroller to communicate with us in an understandable manner. We can see the output of Arduino communication through the…
Read More
Arduino Basics
An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. The coding language that is used by Arduino is rich in built-in operators and provides the following types of operators Arithmetic OperatorsComparison OperatorsBitwise OperatorsBoolean OperatorsCompound Operators Arithmetic Operators Operator name Operator SymbolDescription assignment operator…
Read More
Arduino Basics
In this tutorial, we will learn how to use for loops in our sketch. We will use the same circuit as explained in the tutorial: 2.1 Blink a LED. In our earlier tutorials, we build our first sketch as well as our first circuit. At this time you have learned how…
Read More
Arduino Basics
Controlling a program requires that the programmer specifies one or more conditions to be evaluated or tested by the program. In the previous tutorial, we controlled one led by using input from the Serial Monitor and using for loops. We will abandon the for loop  So, for this tutorial, we want the user…
Read More
Arduino Basics
The key in programming is to make a few lines of code to do as much work as possible. So far, we already explained how to use for loops in the tutorial: Arduino Tutorial: 2.5 For loop/repeat a statement With efficient coding, you will save not only time but also eliminate…
Read More
Arduino Basics
In the tutorial: Arduino Tutorial: 2.6 Understanding If / Else statement, we controlled two LEDs by asking the user in the Serial Monitor for a choice. If these choices are tremendous we have to make a lot of IF statements. There is a way to make this easier. We can use…
Read More
Previous Post
Understanding Arrays in Arduino
Next Post
Sending information to the serial monitor using serial print() with Arduino
Menu