Category Archives: Arduino

How to add library in arduino?

Arduino Libraries

Libraries are files written in C or C++ (.c, .cpp) which provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, GSM, GPS, NRF24L01 etc.). Arduino software is kept flexible users can create there own library or add libraries for new devices.

Adding Library to Arduino

Step 1: Download your library zip file example Keypad.

Step 2: Unzip your library file. You will find files “Keypad.cpp”, “Keypad.h” and folder “examples” in a library name folder in our case Keypad. These three are essential parts of any library.

Note that library folder name should not start with numbers and space is not allowed in library folder name. 

Step 3: Find your Arduino Installation Location. By right clicking  on arduino shortcut icon. Click on Properties.

Find location of arduino installation
Find location of arduino installation

Step 4: You will see this screen and Click on Find Target

Find Installation Location
Find Installation Location

Step 5: Locate “libraries” folder and open it

Library Folder
Library Folder

Step 6: Copy and paste your library in this folder in our example it is “Keypad

Library folder
Library folder

Check that you have these files in example library “Keypad” folder

Inside keypad folder
Inside keypad folder

Step 7: Close Arduino IDE and reopen it to see the added library in Examples>>Keypad

Arduino Screen After Adding Library
Arduino Screen After Adding Library

Step 8: To use library you need to add it in your code using include command.
Example:
#include <Keypad.h>

To see the demo of keypad interfacing visit Matrix Keypad interfacing with Arduino

This way you can add libraries in arduino.

Bluetooth Module Serial Communication AT command set

Ref: www.linotux.ch/arduino/

HC-05 embedded Bluetooth serial communication module has two work modes: order-response work mode and automatic connection work mode . And there are three work roles (Master, Slave and Loopback) at the automatic connection work mode. When the module is at the automatic connection work mode, it will follow the default way set lastly to transmit the data automatically. When the module is at the order-response work mode, user can send the AT command to the module to set the control parameters and sent control order. The work mode of module can be switched by controlling the module PIN (PIO11) input level. Continue reading Bluetooth Module Serial Communication AT command set

GSM Modem Interfacing With Arduino

In this tutorial we will learn how to interface GSM Modem and send SMS. GSM Modems are easy long range interface where we need to read sensor data or control electrical equipment. We will start with selection of GSM modem, AT commands and connection of GSM Module with Arduino. A GSM modem is a specialized type of modem or phone hardware on small PCB which accepts a SIM card, and operates over a subscription to a mobile operator, just like a mobile phone. Continue reading GSM Modem Interfacing With Arduino

GSM modem interfacing

The GSM modem, phones provides a low cost, long range, wireless communication channel for embedded, microcontroller based applications that need connectivity rather than high data rates. Machinery such as industrial refrigerators, freezers, HVAC, monitoring and vending machines, vehicle service, warning system, security system, remote control etc. could benefit from being connected to a GSM modem.

This tutorial describes how to use an AVR to control a GSM modem using AT commands. The interface between modem and host is a textual protocol called AT-Commands. These commands enable GSM modem setup, dialing, text messaging etc. This particular application connects an AVR ATmega8 and SIM300, SIM900 module using a RS232 connection. Most GSM modems have same AT commands. Continue reading GSM modem interfacing

Flow Meter using Arduino

In this tutorial we are designing flow meter using arduino, basically we use arduino boot loader controller on our custom made PCB.

A flow meter is a device used to measure the flow rate or quantity of a gas or liquid moving through a pipe. Flow measurement applications are very diverse and each situation has its own constraints and engineering requirements. Flow meters are referred to by many names, such as flow gauge, flow indicator, liquid meter, etc. depending on the particular industry; however the function, to measure flow, remains the same.

Continue reading Flow Meter using Arduino