# Arduino Programming Tutorial

## Arduino serial begin: Communication of Arduino to other devices

Arduino can communicate with other Arduino, computers, or other devices like Bluetooth, GPS, GSM, and many more. These devices communicate with Arduino using a special communication protocol called serial communication. In this post, you will learn how to start serial communication between Arduino and the computer and print Arduino messages on the computer screen. You …

## Trigonometry functions in Arduino

We have some trigonometry functions in the Arduino. These are sine (sin), cosecant (cos) and tangent (tan). This make our calculation even simpler. Using this we can implement some other trigonometry function also. We will see that later. Let’s  see that one by one. Sine (sin) function sin function calculates the sine of an angle …

## Advance I/O (input/output) in Arduino

We have some advance I/O function in Arduino which allows us to interface some external devices like shift registers, buzzer or some other sensors. Let’s see what those are. tone() noTone() pulseIn() pulseInLong() shiftin() shiftOut() So these are the function that we have in the advanced I/O category. tone() Tone function generates square wave of …

## goto and return statements in Arduino

goto and return are very important control structure in Arduino. These control structures helps us a lot in the program flow and management. Buy Arduino Amazon link (for India) Amazon link (for other countries) goto statement in Arduino goto statement transfers program flow to a labeled point in the code. It can be used to …

## Math and character functions in Arduino

There are many math functions that we can use in Arduino. These functions help us a lot in even in a complex calculation inside the Arduino. Arduino gives us some trigonometry functions also, but we will see that in any other tutorial. Let’s see the list of math functions that Arduino gives us. abs() constrain() …

## Loops in Arduino

Loops are very important control structure in any programming language. It helps to keep our code small, handy and pretty easy to write and understand. There are loops in Arduino programming language as well. How a loops works is shown below with the help of flowchart. It is the basic logic for loops. In any …

## If, else and switch statements in Arduino

If, else and switch…case statements are very important control structure in programming languages. It provides any programming language an important property to perform a specific operation if a certain condition is met. Switch…case statement is almost same as if else statement. In this statement we check more than one condition and execute codes according to …

## Boolean (Logical) operators in Arduino

In previous three posts we have seen about arithmetic, relational and bitwise operators. We have one more operators left, which we will discuss in this tutorial. So, we have total four operators. Arithmetic operators Relational (comparison) operators Bitwise operators Boolean operator Arduino buying links Amazon link for India Amazon link for other countries In this …

## Bitwise operators in Arduino

In previous two tutorials we have discussed about arithmetic and relational operator. There are following types of operator. Arithmetic operators Relational (comparison) operators Bitwise operators Boolean (logical) operator Arduino buying links Amazon link for India Amazon link for other countries In this tutorial we will see about bitwise operators. Bitwise operators Bitwise operators performs bitwise …

## Relational or comparison operators in Arduino

As we know that operators are very important for any programming language. It performs any mathematical or logical operations. We have seen the arithmetic operator in previous post. In this tutorial we will see about relational or comparison operators. Arduino have these kinds of operators in Arduino. Arithmetic operators Relational (comparison) operators Bitwise operators Boolean …