Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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.

Filter by
Sorted by
Tagged with
14
votes
5answers
47k views

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 ...
14
votes
4answers
19k views

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 ...
14
votes
7answers
15k views

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;...
12
votes
4answers
7k views

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 ...
11
votes
8answers
3k views

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:...
11
votes
1answer
2k views

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 ...
9
votes
1answer
8k views

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 ...
8
votes
4answers
473 views

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 ...
8
votes
1answer
5k views

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, ...
8
votes
2answers
2k views

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 ...
7
votes
2answers
12k views

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. ...
7
votes
7answers
3k views

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 ...
7
votes
1answer
3k views

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 ...
6
votes
5answers
10k views

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 ...
6
votes
2answers
1k views

How can I adapt the DallasTemperature library to accept another 1-Wire class?

A commonly used library is the DallasTemperature library, used to access DS18B20 sensors on a 1-Wire bus. When creating a DallasTemperature object you pass a reference to a OneWire object. OneWire can ...
6
votes
2answers
4k views

Problem importing a library in .h file

I have following code: MyApp.ino: #include "DfRobotLcdShield.h" void setup() { } void loop() { } DfRobotLcdShield.h: #include <LiquidCrystal.h> When I try to compile, I'm getting the ...
6
votes
1answer
2k views

Why do I need to include libraries used in other libraries?

I have a simple library which uses another library. Here is the header: #ifndef __DERIVEDCLASS_H__ #define __DERIVEDCLASS_H__ #include <HardwareSerial.h> class DerivedClass { private: ...
5
votes
2answers
881 views

What are the FLASH_ARRAY/FLASH_TABLE macros in this code?

In this code for heating monitor, there appears to be macros called FLASH_ARRAY and FLASH_TABLE. I can't find any reference to them either in this code, Arduino, or on the Internet. What do they do? ...
5
votes
2answers
4k views

Which library to choose? <Wire.h> or “Wire.h”?

I know that in C++, to include a library, you either put the library name in <x> or "x". Now, I believe that this was because of a major change in the C++ language a some time ago. Now, in ...
5
votes
1answer
445 views

Collection of functions for arduino IDE

I am having troubles creating a collection of functions to be used in Arduino sketches and libraries. What I want is not a class, but simply a group of functions which do not require an object to be ...
5
votes
2answers
1k views

How to measure resistance of TFT Touchscreen

I'm using a TFT Touchscreen shield with my Arduino UNO, and I'm running "tftpaint" example by Adafruit. I've noticed that when initializing the Touchscreen object, a resistance value must be provided....
5
votes
2answers
2k views

Can I switch from Arduino IDE to Atmel studio or Visual Micro but still use Arduino library?

If switch from Arduino IDE to Atmel studio or Visual Micro, how to use existing Arduino library? Library serves important function of 'packaging' real and complex hardware (like NRF24L01 radio board)...
5
votes
1answer
144 views

How Do I Send An Email WITHOUT An Ethernet or WiFi Shield

I can only find info relating to the wifi shield, but I want to send an email without the wifi shield. For now, I just plan on leaving my arduino plugged into a computer, so I just want to use the ...
5
votes
1answer
150 views

In Linux, how do I get this Arduino library to work

In Linux Fedora 20 Arduino I want to use the Timer library from here, from which I have downloaded the folder Timer-master.zip, but, when I try to import it, I get the Arduino message that it cannot ...
5
votes
2answers
9k views

Can the Arduino Eclipse plugin use the libraries installed by the Arduino IDE?

In Arduino Eclipse (v3, nightly build) I have not been able to load 'foreign' libraries, those written by me or someone else, so they are not among the available choices in the include-library dialogs....
5
votes
2answers
2k views

Random(min,max) Function only giving ~50 range no matter what the values?

I can't get the min,max range to function properly. Monitoring the serial, only gives out ~50 difference from the min. I then added truerandom.ino to try to fix, but no help. const int ledPin = 13; //...
5
votes
3answers
1k views

Decoding IR codes with IR sensor rather than IR receiver module

I'm looking for a library to decode RAW IR signals from an IR sensor (looks like a black LED, two legged) rather than an IR module (3 legged, rated for a particular frequency - such as 38kHz). Is ...
5
votes
1answer
14k views

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 ...
5
votes
2answers
349 views

Asynchronous control framework

Can anyone recommend an Arduino-based asynchronous scheduling library for controlling a small mobile robot? I'm writing the control code for a small 2-wheeled Arduino-Uno based robot. It has a few ...
5
votes
1answer
407 views

It is possible to program Linino to send HTTP requests and then use the returned values in sketch?

I am new to using Arduino Yun and I would like to know if it is possible to run a command from the Arduino sketch in order to make (probably, through the Bridge Library) Linino to execute a HTTP ...
5
votes
2answers
5k views

Wire.h not found!

Here's the code that's making this error: #include "Wire.h" Here's the error: fatal error: Wire.h: No such file or directory #include "Wire.h" ^ compilation terminated. Error ...
4
votes
3answers
905 views

Binary message formatter

I am currently developing an IoT device with arduino and i want to minimise the data payload. First i used json which is not very efficent in fixed messages (the format will always be the same). Then ...
4
votes
3answers
758 views

How to avoid odd naming rules for Arduino when writing a library?

I'm building a small library that will be used and production and released open source. I'm paying a lot of attention to the "best practices" to make sure this code is reliable and easy to use. I also ...
4
votes
6answers
26k views

How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino

I have bought this shield from ebay and now I don't know how to use it, ESP 12E ESP8266 UART WIFI Wireless Shield for Arduino UNO R3 Bouclier Sans filfr: There are no instructions in the box or ...
4
votes
2answers
86 views

How to document a custom library in Arduino

I have created my own library and it is working flawlessly. Now I want to add some documentation to it that the Arduino IDE can understand. For the functions from the Arduino IDE itself like delay(ms)...
4
votes
1answer
231 views

Referencing local libraries from higher dir levels

How can I include libraries not contained in any direct subdirectories of a sketch, using the Arduino IDE? I want my project structure to look like this: Project └> MCUa └> MCUa.ino └> ...
4
votes
1answer
721 views

Creating a library for attiny85 out of working program

Apologies if this is the wrong sub-forum, the involvement of ATTiny and arduino places this into a strange category. Please correct me if I should post elsewhere. It is important for this to be a ...
4
votes
1answer
694 views

Replacement for #include <pins_arduino.h> on particle photon

I've run into this a couple of times when trying to use libraries written for Arduino on a particle photon. Many have the line: #include <pins_arduino.h> which returns the error on the photon ...
3
votes
4answers
4k views

Are there any detail examples of Si4463

Recently, I bought two Si4463 chips, but I don't know how to use them. It seems complex. I'd like to know if there are any examples of an Si4463 used with an Arduino?
3
votes
3answers
4k views

How to define a SoftwareSerial object inside a class?

I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
3
votes
4answers
12k views

How to develop or edit an Arduino library?

I'm not sure if I should split this question in two. I had to edit some libraries and I plan to make some myself but didn't try yet. Editing a library seems very laborious comared to editing a sketch....
3
votes
3answers
9k views

WARNING: Category '' in library *any library* is not valid. Setting to 'Uncategorized'

I'm using Ubuntu 14.04 with arduino Galileo and the newest arduino IDE from arduino.cc and every time I compile I got this warnings with any library in place of EEPROM, SD, Wire, Wifi and a lot of ...
3
votes
2answers
828 views

producing sine wave variable in amplitude and frequency

How to produce a sine wave with variable frequency and variable amplitude? I found a library to produce variable frequency called sinwave but not produce variable amplitude (I want -2V to 2V amplitude)...
3
votes
2answers
553 views

Why does DHT-library (and others) only allow one object instance?

I came across the problem to handle two DHT22 devices. I use the Adafruit DHT Sensor library. Since my Arduino sketch works as a "relay" for Serial commands on a host, I tried to wire up and ...
3
votes
1answer
368 views

Arduino standard libraries location

I want to read the source code of an arduino library that comes with the IDE. Specifically the GSM.h I dont know the location of the standard libraries that come with the IDE. I only know the ...
3
votes
2answers
4k views

Help Understanding FFT Analysis and analogRead()?

Here's the deal, I'm attempting to learn how to use an FFT (Fast Fourier Transformation) Library for sound analysis (link is here). My issue is that this comes with included C++ code to show users how ...
3
votes
2answers
4k views

How do I connect a PS4 controller connected to an Arduino that's connected to a laptop to another Arduino?

My high school is entering an ROV competition and for next year's competition we want to try and set it up so that we can control it using a PS4 controller. I have done research and found this shield ...
3
votes
2answers
737 views

Replace Wire library with TinyWireM

I want to integrate Pololu's vl53l0x Time of Flight distance sensor into a project of mine. They created a library to interface with the vl53l0x over I2C, which works great on my Uno. The only problem ...
3
votes
2answers
137 views

Servo Driven Through Custom Library Not working Properly

I'm a little new to Arduino, but not to programming or electronics in general. I'm working on a library that will be more fleshed out later, but I'm having issues getting the basics working properly. ...
3
votes
1answer
241 views

Crosspack instead of Arduino IDE, how to include Arduino.h

I quit using the Arduino IDE, instead I am now using Crosspack via the command line on my Mac. It is working totally fine. I use "make" to compile it, "make flash" to upload it to the Arduino. This ...