Arduino – Network Communication

July 5, 2019

The CC3000 WiFi module from Texas Instruments is a small silver package, which finally brings easy-to-use, affordable WiFi functionality to your Arduino projects. It uses SPI for communication (not UART!) so you can push data […]

Arduino – Wireless Communication

July 5, 2019

The wireless transmitter and receiver modules work at 315 Mhz. They can easily fit into a breadboard and work well with microcontrollers to create a very simple wireless data link. With one pair of transmitter […]

Arduino – Tone Library

July 5, 2019

In this chapter, we will use the Arduino Tone Library. It is nothing but an Arduino Library, which produces square-wave of a specified frequency (and 50% duty cycle) on any Arduino pin. A duration can […]

Arduino – Stepper Motor

July 5, 2019

A Stepper Motor or a step motor is a brushless, synchronous motor, which divides a full rotation into a number of steps. Unlike a brushless DC motor, which rotates continuously when a fixed DC voltage […]

Arduino – Servo Motor

July 5, 2019

A Servo Motor is a small device that has an output shaft. This shaft can be positioned to specific angular positions by sending the servo a coded signal. As long as the coded signal exists […]

Arduino – DC Motor

July 5, 2019

In this chapter, we will interface different types of motors with the Arduino board (UNO) and show you how to connect the motor and drive it from your board. There are three different type of […]

Arduino – Connecting Switch

July 5, 2019

Pushbuttons or switches connect two open terminals in a circuit. This example turns on the LED on pin 2 when you press the pushbutton switch connected to pin 8.   Pull-down Resistor Pull-down resistors are […]

Arduino – Ultrasonic Sensor

July 5, 2019

The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from […]

Arduino – PIR Sensor

July 5, 2019

PIR sensors allow you to sense motion. They are used to detect whether a human has moved in or out of the sensor’s range. They are commonly found in appliances and gadgets used at home […]

Arduino – Water Detector / Sensor

July 4, 2019

Water sensor brick is designed for water detection, which can be widely used in sensing rainfall, water level, and even liquid leakage. Connecting a water sensor to an Arduino is a great way to detect […]

Arduino – Temperature Sensor

July 4, 2019

The Temperature Sensor LM35 series are precision integrated-circuit temperature devices with an output voltage linearly proportional to the Centigrade temperature. The LM35 device has an advantage over linear temperature sensors calibrated in Kelvin, as the […]

Arduino – Humidity Sensor

July 4, 2019

In this section, we will learn how to interface our Arduino board with different sensors. We will discuss the following sensors − Humidity sensor (DHT22) Temperature sensor (LM35) Water detector sensor (Simple Water Trigger) PIR […]

Arduino – Keyboard Serial

April 25, 2017

This example listens for a byte coming from the serial port. When received, the board sends a keystroke back to the computer. The sent keystroke is one higher than what is received, so if you […]

Arduino – Mouse Button Control

April 25, 2017

Using the Mouse library, you can control a computer's onscreen cursor with an Arduino Leonardo, Micro, or Due. This particular example uses five pushbuttons to move the onscreen cursor. Four of the buttons are directional […]

Arduino – Keyboard Message

April 25, 2017

In this example, when the button is pressed, a text string is sent to the computer as keyboard input. The string reports the number of times the button is pressed. Once you have the Leonardo […]

Arduino – Keyboard Logout

April 25, 2017

This example uses the Keyboard library to log you out of your user session on your computer when pin 2 on the ARDUINO UNO is pulled to ground. The sketch simulates the keypress in sequence […]

Arduino – LED Bar Graph

April 25, 2017

This example shows you how to read an analog input at analog pin 0, convert the values from analogRead() into voltage, and print it out to the serial monitor of the Arduino Software (IDE). Components […]

Arduino – Reading Analog Voltage

April 25, 2017

This example will show you how to read an analog input on analog pin 0. The input is converted from analogRead() into voltage, and printed out to the serial monitor of the Arduino Software (IDE). […]

Arduino – Fading LED

April 25, 2017

This example demonstrates the use of the analogWrite() function in fading an LED off. AnalogWrite uses pulse width modulation (PWM), turning a digital pin on and off very quickly with different ratios between on and […]

Arduino – Blinking LED

April 25, 2017

LEDs are small, powerful lights that are used in many different applications. To start, we will work on blinking an LED, the Hello World of microcontrollers. It is as simple as turning a light on […]

Arduino – Serial Peripheral Interface

April 25, 2017

A Serial Peripheral Interface (SPI) bus is a system for serial communication, which uses up to four conductors, commonly three. One conductor is used for data receiving, one for data sending, one for synchronization and […]

Arduino – Inter Integrated Circuit

April 25, 2017

Inter-integrated circuit (I2C) is a system for serial data exchange between the microcontrollers and specialized integrated circuits of a new generation. It is used when the distance between them is short (receiver and transmitter are […]

Arduino – Communication

April 25, 2017

Hundreds of communication protocols have been defined to achieve this data exchange. Each protocol can be categorized into one of the two categories: parallel or serial. Parallel Communication Parallel connection between the Arduino and peripherals […]

Arduino – Interrupts

April 25, 2017

Interrupts stop the current work of Arduino such that some other work can be done. Suppose you are sitting at home, chatting with someone. Suddenly the telephone rings. You stop chatting, and pick up the […]

Arduino – Random Numbers

April 25, 2017

To generate random numbers, you can use Arduino random number functions. We have two functions − randomSeed(seed) random() randomSeed (seed) The function randomSeed(seed) resets Arduino’s pseudorandom number generator. Although the distribution of the numbers returned […]

Arduino – Pulse Width Modulation

April 25, 2017

Pulse Width Modulation or PWM is a common technique used to vary the width of the pulses in a pulse-train. PWM has many applications such as controlling servos and speed controllers, limiting the effective power […]

Arduino – Due & Zero

April 25, 2017

The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. It is the first Arduino board based on a 32-bit ARM core microcontroller. Important features − It has 54 digital […]

Arduino – Trigonometric Functions

April 25, 2017

You need to use Trigonometry practically like calculating the distance for moving object or angular speed. Arduino provides traditional trigonometric functions (sin, cos, tan, asin, acos, atan) that can be summarized by writing their prototypes. […]

Arduino – Math Library

April 25, 2017

The Arduino Math library (math.h) includes a number of useful mathematical functions for manipulating floating-point numbers. Library Macros Following are the macros defined in the header math.h − Given below is the list of macros […]

Arduino – Character Functions

April 25, 2017

All data is entered into computers as characters, which includes letters, digits and various special symbols. In this section, we discuss the capabilities of C++ for examining and manipulating individual characters. The character-handling library includes […]

Arduino – Advanced I/O Function

April 25, 2017

In this chapter, we will learn some advanced Input and Output Functions. analogReference() Function Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options […]

Arduino – I/O Functions

April 25, 2017

The pins on the Arduino board can be configured as either inputs or outputs. We will explain the functioning of the pins in those modes. It is important to note that a majority of Arduino […]

Arduino – Arrays

April 25, 2017

An array is a consecutive group of memory locations that are of the same type. To refer to a particular location or element in the array, we specify the name of the array and the […]

Arduino – Time

April 25, 2017

arduino provides four different time manipulation functions. They are − S.No. Function & Description 1 delay () function The way the delay() function works is pretty simple. It accepts a single integer (or number) argument. This number […]

Arduino – String Object

April 25, 2017

The second type of string used in Arduino programming is the String Object. What is an Object? An object is a construct that contains both data and functions. A String object can be created just […]

Arduino – Strings

April 25, 2017

Strings are used to store text. They can be used to display text on an LCD or in the Arduino IDE Serial Monitor window. Strings are also useful for storing the user input. For example, […]

1 2