Questions tagged [library]

A library is a file that can be included into the code to add new instructions by combining many existing instructions and creating one easy to use instruction to call.

A library is a file that can be included into the code to add new instructions by combining many existing instructions and creating one easy to use instruction to call.

Here is the list of libraries:

http://arduino.cc/en/Reference/Libraries

Standard Libraries:

  • EEPROM - reading and writing to "permanent" storage
  • Ethernet - for connecting to the internet using the Arduino Ethernet Shield
  • Firmata - for communicating with applications on the computer using a standard serial protocol.
  • GSM - for connecting to a GSM/GRPS network with the GSM shield.
  • LiquidCrystal - for controlling liquid crystal displays (LCDs)
  • SD - for reading and writing SD cards
  • Servo - for controlling servo motors
  • SPI - for communicating with devices using the Serial Peripheral Interface (SPI) Bus
  • SoftwareSerial - for serial communication on any digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart's
    NewSoftSerial library as SoftwareSerial.
  • Stepper - for controlling stepper motors
  • TFT - for drawing text , images, and shapes on the Arduino TFT screen
  • WiFi - for connecting to the internet using the Arduino WiFi shield
  • Wire - Two Wire Interface (TWI/I2C) for sending and receiving data over a net of devices or sensors.
  • The Matrix and Sprite libraries are no longer part of the core distribution.

Due Only Libraries:

  • Audio - Play audio files from a SD card.
  • Scheduler - Manage multiple non-blocking tasks.
  • USBHost - Communicate with USB peripherals like mice and keyboards.

Esplora Only Libraries:

  • Esplora - this library enable you to easily access to various sensors and actuators mounted on the Esplora board.

Arduino Robot Library:

  • Robot - this library enables easy access to the functions of the Arduino Robot

Arduino Yún Bridge Library:

  • Bridge Library - Enables communication between the Linux processor and the Arduino on the Yún.

USB Libraries (Leonardo, Micro, Due, and Esplora)

  • Keyboard - Send keystrokes to an attached computer.
  • Mouse - Control cursor movement on a connected computer.

Contributed Libraries

If you're using one of these libraries, you need to install it first. See these instructions for details on installation. There's also a tutorial on writing your own libraries.

Communication (networking and protocols):

  • Messenger - for processing text-based messages from the computer
  • NewSoftSerial - an improved version of the SoftwareSerial library
  • OneWire - control devices (from Dallas Semiconductor) that use the One Wire protocol.
  • PS2Keyboard - read characters from a PS2 keyboard.
  • Simple Message System - send messages between Arduino and the computer
  • SSerial2Mobile - send text messages or emails using a cell phone (via AT commands over software serial)
  • Webduino - extensible web server library (for use with the Arduino Ethernet Shield)
  • X10 - Sending X10 signals over AC power lines
  • XBee - for communicating with XBees in API mode
  • SerialControl - Remote control other Arduinos over a serial connection

Sensing:

  • Capacitive Sensing - turn two or more pins into capacitive sensors
  • Debounce - for reading noisy digital inputs (e.g. from buttons)

Displays and LEDs:

  • GFX - base class with standard graphics routines (by Adafruit Industries)
  • GLCD - graphics routines for LCD based on the KS0108 or equivalent chipset.
  • Improved LCD library fixes LCD initialization bugs in official Arduino LCD library
  • LedControl - for controlling LED matrices or seven-segment displays with a MAX7221 or MAX7219.
  • LedControl - an alternative to the Matrix library for driving multiple LEDs with Maxim chips.
  • LedDisplay - control of a HCMS-29xx scrolling LED display.
  • Matrix - Basic LED Matrix display manipulation library
  • PCD8544 - for the LCD controller on Nokia 55100-like displays (by Adafruit Industries)
  • Sprite - Basic image sprite manipulation library for use in animations with an LED matrix
  • ST7735 - for the LCD controller on a 1.8", 128x160 TFT screen (by Adafruit Industries)

Audio and Waveforms: FFT - frequency analysis of audio or other analog signals Tone - generate audio frequency square waves in the background on any microcontroller pin Motors and PWM: TLC5940 - 16 channel 12 bit PWM controller.

Timing:

  • DateTime - a library for keeping track of the current date and time in software.
  • Metro - help you time actions at regular intervals
  • MsTimer2 - uses the timer 2 interrupt to trigger an action every N milliseconds.

Utilities:

  • PString - a lightweight class for printing to buffers
  • Streaming - a method to simplify print statements
510 questions
19
votes
7 answers

Loading local libraries

I'm new to Arduino/C development (coming from a JavaScript/Ruby environment), but I was wondering if it was possible to include a library from a custom folder within a sketch? So this is my situation; project.ino libs/ MyNewLib/ MyNewLib.h …
Stefan
  • 291
  • 1
  • 2
  • 6
18
votes
4 answers

Are there any signal smoothing libraries for Arduino?

I am working on a mobile robot controlled via a wireless 2.4 GHz link.The receiver is connected to the Arduino Uno which serves onboard as the main controller. The most critical (and main) input channel coming from the receiver produces a very noisy…
asheeshr
  • 3,687
  • 3
  • 24
  • 61
16
votes
6 answers

How can I get the source files for Arduino libraries?

I've been looking for a while inside Arduino's files to find the core library. However, I haven't found them yet. Where on my hard drive can I obtain the core library files (.cpp and .h) necessary for all Arduino code? Looking around on Google, I…
Anonymous Penguin
  • 6,155
  • 9
  • 31
  • 62
12
votes
7 answers

Where can I find a central repository of all available Arduino libraries?

Currently; when I start a new Arduino project with some new hardware, the first thing I do is to look for 3rd-party libraries that bring Arduino support for this hardware. The first places I look are: The Arduino Playground GitHub Google Generally…
jfpoilpret
  • 8,962
  • 6
  • 35
  • 53
12
votes
3 answers

Writing C Program outside of Arduino IDE?

I like the idea of using the Arduino IDE for simple projects and for getting started with Arduino, but the consensus I've gotten so far is that it is for those who are new to Arduino and/or programming in general. My understanding is that it is…
smeeb
  • 499
  • 2
  • 10
  • 21
11
votes
2 answers

How to manage dependencies?

I want to include a dependency like Logging. On its page it says: Download zip file Put the Logging folder in "libraries\". I don't want to believe (with a Maven mindset) that this is the way we manage dependencies in Arduino projects. That means,…
Markus Malkusch
  • 213
  • 2
  • 6
11
votes
1 answer

What are the steps involved in porting an Arduino library?

I want to use the Adafruit CC3000 and its Arduino libraries on another platform. In this case it's the Arduino pin compatible PSOC4 Pioneer Kit. This is an ARM Cortex M0 based platform. My question is: How would I go about porting a library like…
akellyirl
  • 2,096
  • 1
  • 14
  • 19
10
votes
1 answer

Emulating 1-wire device(s)

What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions. What I want to know is if I can use the one wire library from the arduino site to send data as a slave. For…
RSM
  • 1,437
  • 1
  • 11
  • 25
10
votes
4 answers

What is the proper way to make library pin mappings configurable?

I am working with some libraries that provide APIs for interacting with specific hardware chips (that makes these drivers?). However, different custom boards or shields will have the chip mapped to different pins meaning the library needs to be…
vossad01
  • 203
  • 1
  • 6
9
votes
1 answer

Writing First Library - Serial Stream Object

I have done quite a few projects with Arduino, but have never done more than a "Hello World" in C. I am writing my first library, and a lot of the object oriented stuff is going over my head. Anyway, my library is working as it is supposed to, I…
ahalekelly
  • 275
  • 2
  • 9
9
votes
2 answers

How does this code line detect if a serial interface is connected?

I am working with some code for remote temperature sensor nodes. They turn the debug interface on and off depending on if anything is conneced to the serial port or not. The code is on Github here. Line 111 is the line of interest: if (Serial) debug…
Cybergibbons
  • 5,230
  • 7
  • 32
  • 50
8
votes
7 answers

Is there a way to replace an Arduino core function without modifying the Arduino code?

(Let's just skip the suggestions that it's the wrong idea and interrupts for a while...). Is there a way to replace the digitalWrite() method (for example) so I can add something more to happen in there? But the following rules must be obeyed: A…
P.W.
  • 307
  • 6
  • 14
7
votes
1 answer

ESP8266 & websockets

At the moment, I'm using various operating systems and devices like the Raspberry pi to control lights and other stuff over websockets. I use websockets since they added the support on Chrome. I write a lot of Javascript stuff for fun. Websockets…
cocco
  • 401
  • 3
  • 7
  • 15
7
votes
1 answer

Why does increasing resistance make a capacitive sensor more sensitive?

From the Capacitive Sensor Page on the Arduino website, it states the following: The capacitiveSensor method toggles a microcontroller send pin to a new state and then waits for the receive pin to change to the same state as the send pin. A…
Kenneth .J
  • 393
  • 1
  • 4
  • 11
7
votes
5 answers

Alternatives to Wire library for I2C

I am looking for (reasonably easy to use and well tested) alternatives to the Wire library. Wire works very well, but: I only need the Arduino to act as I2C master and the Wire library seems to be a real waste of resources: My goal is to send out…
fuenfundachtzig
  • 1,485
  • 1
  • 13
  • 25
1
2 3
33 34