Arduino Programming: Ternary Operator

nested-ternary-arduino-circuit

If your Arduino code involves decision-making, then it’s very likely you’re using conditional statements. Using if … else… is common;  switch statements as well. But there is a third way, using ternary operator, that will really make your code shorter.   Example Scenario Say we are reading the state of …

Read More »

Arduino Programming: Arrays

An array is a data structure for storing multiple variables of the same data type. Mastering arrays will definitely make your Arduino sketches more efficient. If you’re a beginner when it comes to Arduino array, then this tutorial is for you.

Read More »

Arduino Programming: Classes

The Arduino platform runs on C++ and with this comes all the pros (and cons) of the language. One of those pros is the use of classes and in general, object oriented coding. This article aims to guide you in creating your own Arduino classes which can make your sketches …

Read More »

Calculating Integrals with Arduino

Arduino integrals

The Arduino platform supports math functions like sine, cosine, logarithm, exponential, etc. But can it solve higher math problems like calculus? This two-part tutorial will show you how to make a sketch for Arduino integrals and differentials solver.

Read More »

Arduino Programming: Structs

Arduino Struct

Structs (short for structure) are far less common in Arduino programming because they are mostly used in C whereas Arduino is based on C++. However, they are still a very useful tool especially if there is a need for a user-defined data set. This tutorial aims to help you understand …

Read More »

Arduino Programming: Static Variables

Arduino static variables

Here we are with another tutorial on Arduino programming. This time, we will look at static variables and how you can use them to your advantage. You may need to read about functions and classes before going through this one. What is a Static Variable? A variable is known to …

Read More »